28 #include <dbus/dbus-string.h> 
   29 #include <dbus/dbus-errors.h> 
   30 #include <dbus/dbus-watch.h> 
   34 typedef void (* DBusSpawnChildSetupFunc) (
void *user_data);
 
   38 typedef void (* DBusBabysitterFinishedFunc) (
DBusBabysitter *sitter,
 
   42   DBUS_SPAWN_REDIRECT_OUTPUT = (1 << 0),
 
   51                                                    DBusSpawnChildSetupFunc    child_setup,
 
   55                                                    DBusBabysitterFinishedFunc finished,
 
   71 void        _dbus_babysitter_block_for_child_exit (
DBusBabysitter            *sitter);
 
  
DBusBabysitter * _dbus_babysitter_ref(DBusBabysitter *sitter)
Increment the reference count on the babysitter object.
dbus_bool_t _dbus_babysitter_get_child_exited(DBusBabysitter *sitter)
Checks whether the child has exited, without blocking.
int status
Exit status code.
void _dbus_babysitter_set_child_exit_error(DBusBabysitter *sitter, DBusError *error)
Sets the DBusError with an explanation of why the spawned child process exited (on a signal,...
void(* DBusFreeFunction)(void *memory)
char * log_name
the name under which to log messages about this process being spawned
dbus_bool_t _dbus_spawn_async_with_babysitter(DBusBabysitter **sitter_p, const char *log_name, char *const *argv, char **env, DBusSpawnFlags flags, DBusSpawnChildSetupFunc child_setup, void *user_data, DBusError *error)
Spawns a new process.
dbus_bool_t _dbus_babysitter_set_watch_functions(DBusBabysitter *sitter, DBusAddWatchFunction add_function, DBusRemoveWatchFunction remove_function, DBusWatchToggledFunction toggled_function, void *data, DBusFreeFunction free_data_function)
Sets watch functions to notify us when the babysitter object needs to read/write file descriptors.
dbus_bool_t(* DBusAddWatchFunction)(DBusWatch *watch, void *data)
Called when libdbus needs a new watch to be monitored by the main loop.
Babysitter implementation details.
void(* DBusWatchToggledFunction)(DBusWatch *watch, void *data)
Called when dbus_watch_get_enabled() may return a different value than it did before.
void _dbus_babysitter_unref(DBusBabysitter *sitter)
Decrement the reference count on the babysitter object.
Object representing an exception.
void(* DBusRemoveWatchFunction)(DBusWatch *watch, void *data)
Called when libdbus no longer needs a watch to be monitored by the main loop.
void _dbus_babysitter_kill_child(DBusBabysitter *sitter)
Blocks until the babysitter process gives us the PID of the spawned grandchild, then kills the spawne...
dbus_bool_t _dbus_babysitter_get_child_exit_status(DBusBabysitter *sitter, int *status)
Gets the exit status of the child.
dbus_uint32_t dbus_bool_t