X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fjob.h;h=349fb687cfbf1543c18dd18be5dd94104dcba7a6;hb=bfba3256a02a0871579c4ee48d787dfe4585fd8d;hp=2e10143d2bc03b435107ef10bb46ea86b5dfcfd7;hpb=e0209d83e7b30153f43b1a633c955f66eb2c2e4a;p=elogind.git diff --git a/src/core/job.h b/src/core/job.h index 2e10143d2..349fb687c 100644 --- a/src/core/job.h +++ b/src/core/job.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foojobhfoo -#define foojobhfoo +#pragma once /*** This file is part of systemd. @@ -34,11 +33,6 @@ typedef enum JobState JobState; typedef enum JobMode JobMode; typedef enum JobResult JobResult; -#include "manager.h" -#include "unit.h" -#include "hashmap.h" -#include "list.h" - /* Be careful when changing the job types! Adjust job_merging_table[] accordingly! */ enum JobType { JOB_START, /* if a unit does not support being started, we'll just wait until it becomes active */ @@ -107,6 +101,11 @@ enum JobResult { _JOB_RESULT_INVALID = -1 }; +#include "manager.h" +#include "unit.h" +#include "hashmap.h" +#include "list.h" + struct JobDependency { /* Encodes that the 'subject' job needs the 'object' job in * some way. This structure is used only while building a transaction. */ @@ -229,5 +228,3 @@ JobMode job_mode_from_string(const char *s); const char* job_result_to_string(JobResult t); JobResult job_result_from_string(const char *s); - -#endif