Typedefs | |
typedef dbus_bool_t(* | DBusWatchAddFunction )(DBusWatchList *list, DBusWatch *watch) |
typedef void(* | DBusWatchRemoveFunction )(DBusWatchList *list, DBusWatch *watch) |
typedef void(* | DBusWatchToggleFunction )(DBusWatchList *list, DBusWatch *watch, dbus_bool_t enabled) |
typedef dbus_bool_t(* | DBusTimeoutAddFunction )(DBusTimeoutList *list, DBusTimeout *timeout) |
typedef void(* | DBusTimeoutRemoveFunction )(DBusTimeoutList *list, DBusTimeout *timeout) |
typedef void(* | DBusTimeoutToggleFunction )(DBusTimeoutList *list, DBusTimeout *timeout, dbus_bool_t enabled) |
Functions | |
dbus_bool_t | _dbus_server_init_base (DBusServer *server, const DBusServerVTable *vtable, const DBusString *address) |
Initializes the members of the DBusServer base class. | |
void | _dbus_server_finalize_base (DBusServer *server) |
Finalizes the members of the DBusServer base class. | |
dbus_bool_t | _dbus_server_add_watch (DBusServer *server, DBusWatch *watch) |
Adds a watch for this server, chaining out to application-provided watch handlers. | |
void | _dbus_server_remove_watch (DBusServer *server, DBusWatch *watch) |
Removes a watch previously added with _dbus_server_remove_watch(). | |
void | _dbus_server_toggle_watch (DBusServer *server, DBusWatch *watch, dbus_bool_t enabled) |
Toggles a watch and notifies app via server's DBusWatchToggledFunction if available. | |
dbus_bool_t | _dbus_server_add_timeout (DBusServer *server, DBusTimeout *timeout) |
Adds a timeout for this server, chaining out to application-provided timeout handlers. | |
void | _dbus_server_remove_timeout (DBusServer *server, DBusTimeout *timeout) |
Removes a timeout previously added with _dbus_server_add_timeout(). | |
void | _dbus_server_toggle_timeout (DBusServer *server, DBusTimeout *timeout, dbus_bool_t enabled) |
Toggles a timeout and notifies app via server's DBusTimeoutToggledFunction if available. |
|
Adds a timeout for this server, chaining out to application-provided timeout handlers. The timeout should be repeatedly handled with dbus_timeout_handle() at its given interval until it is removed.
Definition at line 403 of file dbus-server.c. References _dbus_timeout_list_add_timeout(), FALSE, and NULL. |
|
Adds a watch for this server, chaining out to application-provided watch handlers.
Definition at line 287 of file dbus-server.c. References _dbus_watch_list_add_watch(), FALSE, and NULL. Referenced by _dbus_server_new_for_fd(). |
|
Finalizes the members of the DBusServer base class. Chained up to by subclass finalizers.
Definition at line 195 of file dbus-server.c. References _dbus_assert, _dbus_data_slot_list_free(), _dbus_mutex_free(), _dbus_string_free(), _dbus_timeout_list_free(), _dbus_watch_list_free(), DBusServer::address, DBusServer::auth_mechanisms, dbus_free(), dbus_free_string_array(), dbus_server_set_new_connection_function(), DBusServer::disconnected, DBusServer::guid_hex, DBusServer::have_server_lock, DBusServer::mutex, NULL, DBusServer::slot_list, DBusServer::timeouts, and DBusServer::watches. Referenced by _dbus_server_debug_pipe_new(), and _dbus_server_new_for_fd(). |
|
Initializes the members of the DBusServer base class. Chained up to by subclass constructors.
Definition at line 114 of file dbus-server.c. References _dbus_data_slot_list_init(), _dbus_mutex_free(), _dbus_mutex_new(), _dbus_string_free(), _dbus_string_hex_encode(), _dbus_string_init(), _dbus_string_init_const_len(), _dbus_timeout_list_free(), _dbus_timeout_list_new(), _dbus_watch_list_free(), _dbus_watch_list_new(), DBusServer::address, DBusGUID::as_bytes, dbus_free(), FALSE, DBusServer::guid, DBusServer::guid_hex, DBusServer::mutex, NULL, DBusServer::refcount, DBusServer::slot_list, DBusServer::timeouts, TRUE, DBusAtomic::value, DBusServer::vtable, and DBusServer::watches. Referenced by _dbus_server_debug_pipe_new(), and _dbus_server_new_for_fd(). |
|
Removes a timeout previously added with _dbus_server_add_timeout().
Definition at line 418 of file dbus-server.c. References _dbus_timeout_list_remove_timeout(), FALSE, and NULL. |
|
Removes a watch previously added with _dbus_server_remove_watch().
Definition at line 303 of file dbus-server.c. References _dbus_watch_list_remove_watch(), FALSE, and NULL. |
|
Toggles a timeout and notifies app via server's DBusTimeoutToggledFunction if available. It's an error to call this function on a timeout that was not previously added.
Definition at line 437 of file dbus-server.c. References _dbus_timeout_list_toggle_timeout(), and NULL. |
|
Toggles a watch and notifies app via server's DBusWatchToggledFunction if available. It's an error to call this function on a watch that was not previously added.
Definition at line 323 of file dbus-server.c. References _dbus_assert, _dbus_watch_list_toggle_watch(), and NULL. |