X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Funit.h;h=1f8874f4cc41058bdce74c62a22b0b78020b830d;hb=e55224ca655e6c4ec745a84ae5a051a9e6e5f74f;hp=fdf1b3691404d8bbfe97fa8dfabd1ae0cafa795c;hpb=cca098b09535f58c638ed41310be60504be49bc4;p=elogind.git diff --git a/src/unit.h b/src/unit.h index fdf1b3691..1f8874f4c 100644 --- a/src/unit.h +++ b/src/unit.h @@ -40,7 +40,7 @@ typedef enum UnitDependency UnitDependency; #include "execute.h" #define UNIT_NAME_MAX 128 -#define DEFAULT_TIMEOUT_USEC (20*USEC_PER_SEC) +#define DEFAULT_TIMEOUT_USEC (60*USEC_PER_SEC) #define DEFAULT_RESTART_USEC (100*USEC_PER_MSEC) typedef enum KillMode { @@ -187,7 +187,7 @@ struct Meta { /* When deserializing, temporarily store the job type for this * unit here, if there was a job scheduled */ - JobType deserialized_job; + int deserialized_job; /* This is actually of type JobType */ bool in_load_queue:1; bool in_dbus_queue:1; @@ -285,6 +285,9 @@ struct UnitVTable { * ran empty */ void (*cgroup_notify_empty)(Unit *u); + /* Called whenever a process of this unit sends us a message */ + void (*notify_message)(Unit *u, char **tags); + /* Called whenever a name thus Unit registered for comes or * goes away. */ void (*bus_name_owner_change)(Unit *u, const char *name, const char *old_owner, const char *new_owner);