enum UnitType {
UNIT_SERVICE = 0,
- UNIT_TIMER,
UNIT_SOCKET,
UNIT_TARGET,
UNIT_DEVICE,
UNIT_MOUNT,
UNIT_AUTOMOUNT,
UNIT_SNAPSHOT,
+ UNIT_TIMER,
_UNIT_TYPE_MAX,
_UNIT_TYPE_INVALID = -1
};
/* Instances make no sense for this type */
bool no_instances:1;
+ /* Execlude this type from snapshots */
+ bool no_snapshots:1;
+
/* This should reset all type-specific variables. This should
* not allocate memory, and is either called with 0
* initialized data, or with data left from done() */
/* Called whenever a bus PID lookup finishes */
void (*bus_query_pid_done)(Unit *u, const char *name, pid_t pid);
+ /* Called for each message received on the bus */
+ DBusHandlerResult (*bus_message_handler)(Unit *u, DBusMessage *message);
+
/* This is called for each unit type and should be used to
* enumerate existing devices and load them. However,
* everything that is loaded here should still stay in