Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

DBusServer implementation details
[D-BUS internal implementation details]

Implementation details of DBusServer. More...

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.


Detailed Description

Implementation details of DBusServer.


Function Documentation

dbus_bool_t _dbus_server_add_timeout DBusServer   server,
DBusTimeout   timeout
 

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.

Parameters:
server the server.
timeout the timeout to add.

Definition at line 192 of file dbus-server.c.

References _dbus_timeout_list_add_timeout().

dbus_bool_t _dbus_server_add_watch DBusServer   server,
DBusWatch   watch
 

Adds a watch for this server, chaining out to application-provided watch handlers.

Parameters:
server the server.
watch the watch to add.

Definition at line 144 of file dbus-server.c.

References _dbus_watch_list_add_watch().

Referenced by _dbus_server_new_for_fd().

void _dbus_server_finalize_base DBusServer   server
 

Finalizes the members of the DBusServer base class.

Chained up to by subclass finalizers.

Parameters:
server the server.

Definition at line 118 of file dbus-server.c.

References _dbus_data_slot_list_free(), _dbus_timeout_list_free(), _dbus_watch_list_free(), dbus_free(), dbus_free_string_array(), dbus_server_disconnect(), and dbus_server_set_new_connection_function().

Referenced by _dbus_server_new_for_fd().

dbus_bool_t _dbus_server_init_base DBusServer   server,
const DBusServerVTable *    vtable,
const DBusString *    address
 

Initializes the members of the DBusServer base class.

Chained up to by subclass constructors.

Parameters:
server the server.
vtable the vtable for the subclass.
address the server's address
Returns:
TRUE on success.

Definition at line 63 of file dbus-server.c.

References _dbus_data_slot_list_init(), _dbus_string_copy_data(), _dbus_timeout_list_free(), _dbus_timeout_list_new(), _dbus_watch_list_free(), _dbus_watch_list_new(), dbus_free(), FALSE, NULL, and TRUE.

Referenced by _dbus_server_new_for_fd().

void _dbus_server_remove_timeout DBusServer   server,
DBusTimeout   timeout
 

Removes a timeout previously added with _dbus_server_add_timeout().

Parameters:
server the server.
timeout the timeout to remove.

Definition at line 205 of file dbus-server.c.

References _dbus_timeout_list_remove_timeout().

void _dbus_server_remove_watch DBusServer   server,
DBusWatch   watch
 

Removes a watch previously added with _dbus_server_remove_watch().

Parameters:
server the server.
watch the watch to remove.

Definition at line 157 of file dbus-server.c.

References _dbus_watch_list_remove_watch().

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.

It's an error to call this function on a timeout that was not previously added.

Parameters:
server the server.
timeout the timeout to toggle.
enabled whether to enable or disable

Definition at line 221 of file dbus-server.c.

References _dbus_timeout_list_toggle_timeout().

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.

It's an error to call this function on a watch that was not previously added.

Parameters:
server the server.
watch the watch to toggle.
enabled whether to enable or disable

Definition at line 173 of file dbus-server.c.

References _dbus_watch_list_toggle_watch().


Generated on Wed Oct 22 14:05:09 2003 for D-BUS by doxygen1.3-rc3