Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

DBusPendingCall implementation details
[D-BUS internal implementation details]


Data Structures

struct  DBusPendingCall
 Internals of DBusPendingCall. More...


Functions

DBusPendingCall_dbus_pending_call_new (DBusConnection *connection, int timeout_milliseconds, DBusTimeoutHandler timeout_handler)
 Creates a new pending reply object. More...

void _dbus_pending_call_notify (DBusPendingCall *pending)
 Calls notifier function for the pending call and sets the call to completed. More...

dbus_bool_t _dbus_pending_call_test (const char *test_data_dir)

Function Documentation

DBusPendingCall* _dbus_pending_call_new DBusConnection   connection,
int    timeout_milliseconds,
DBusTimeoutHandler    timeout_handler
 

Creates a new pending reply object.

Parameters:
connection  connection where reply will arrive
timeout_milliseconds  length of timeout, -1 for default
timeout_handler  timeout handler, takes pending call as data
Returns:
a new DBusPendingCall or NULL if no memory.

Definition at line 52 of file dbus-pending-call.c.

References DBusPendingCall::connection, DBusPendingCall::refcount, DBusPendingCall::slot_list, DBusPendingCall::timeout, and DBusAtomic::value.

void _dbus_pending_call_notify DBusPendingCall   pending
 

Calls notifier function for the pending call and sets the call to completed.

Parameters:
pending  the pending call

Definition at line 103 of file dbus-pending-call.c.

References DBusPendingCall::completed, and DBusPendingCall::function.

dbus_bool_t _dbus_pending_call_test const char *    test_data_dir
 

Unit test for DBusPendingCall.

Returns:
TRUE on success.

Definition at line 429 of file dbus-pending-call.c.


Generated on Wed Jun 9 05:01:27 2004 for D-BUS by doxygen1.2.15