DBusPendingCall implementation details
[D-BUS internal implementation details]

DBusPendingCall private implementation details. More...

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.
void _dbus_pending_call_notify (DBusPendingCall *pending)
 Calls notifier function for the pending call and sets the call to completed.
dbus_bool_t _dbus_pending_call_test (const char *test_data_dir)
 Unit test for DBusPendingCall.

Detailed Description

DBusPendingCall private implementation details.

The guts of DBusPendingCall and its methods.


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 _dbus_assert, _dbus_data_slot_list_init(), _dbus_timeout_new(), DBusObjectTree::connection, DBusPendingCall::connection, dbus_free(), dbus_new0, dbus_pending_call_allocate_data_slot(), dbus_pending_call_free_data_slot(), NULL, DBusPendingCall::refcount, DBusPendingCall::slot_list, DBusPendingCall::timeout, and DBusAtomic::value.

Referenced by dbus_connection_send_with_reply().

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 111 of file dbus-pending-call.c.

References _dbus_assert, DBusPendingCall::completed, dbus_pending_call_get_data(), DBusPendingCall::function, and TRUE.

Referenced by _dbus_pending_call_complete_and_unlock().

dbus_bool_t _dbus_pending_call_test const char *  test_data_dir  ) 
 

Unit test for DBusPendingCall.

Returns:
TRUE on success.

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

References TRUE.


Generated on Tue Jul 7 15:14:02 2009 for D-BUS by  doxygen 1.4.6