| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION) |
| 24 |
#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents." |
| 25 |
#endif |
| 26 |
|
| 27 |
#ifndef DBUS_PENDING_CALL_H |
| 28 |
#define DBUS_PENDING_CALL_H |
| 29 |
|
| 30 |
#include <dbus/dbus-macros.h> |
| 31 |
#include <dbus/dbus-types.h> |
| 32 |
#include <dbus/dbus-connection.h> |
| 33 |
|
| 34 |
DBUS_BEGIN_DECLS |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
#define DBUS_TIMEOUT_INFINITE ((int) 0x7fffffff) |
| 42 |
#define DBUS_TIMEOUT_USE_DEFAULT (-1) |
| 43 |
|
| 44 |
DBUS_EXPORT |
| 45 |
DBusPendingCall* dbus_pending_call_ref (DBusPendingCall *pending); |
| 46 |
DBUS_EXPORT |
| 47 |
void dbus_pending_call_unref (DBusPendingCall *pending); |
| 48 |
DBUS_EXPORT |
| 49 |
dbus_bool_t dbus_pending_call_set_notify (DBusPendingCall *pending, |
| 50 |
DBusPendingCallNotifyFunction function, |
| 51 |
void *user_data, |
| 52 |
DBusFreeFunction free_user_data); |
| 53 |
DBUS_EXPORT |
| 54 |
void dbus_pending_call_cancel (DBusPendingCall *pending); |
| 55 |
DBUS_EXPORT |
| 56 |
dbus_bool_t dbus_pending_call_get_completed (DBusPendingCall *pending); |
| 57 |
DBUS_EXPORT |
| 58 |
DBusMessage* dbus_pending_call_steal_reply (DBusPendingCall *pending); |
| 59 |
DBUS_EXPORT |
| 60 |
void dbus_pending_call_block (DBusPendingCall *pending); |
| 61 |
|
| 62 |
DBUS_EXPORT |
| 63 |
dbus_bool_t dbus_pending_call_allocate_data_slot (dbus_int32_t *slot_p); |
| 64 |
DBUS_EXPORT |
| 65 |
void dbus_pending_call_free_data_slot (dbus_int32_t *slot_p); |
| 66 |
DBUS_EXPORT |
| 67 |
dbus_bool_t dbus_pending_call_set_data (DBusPendingCall *pending, |
| 68 |
dbus_int32_t slot, |
| 69 |
void *data, |
| 70 |
DBusFreeFunction free_data_func); |
| 71 |
DBUS_EXPORT |
| 72 |
void* dbus_pending_call_get_data (DBusPendingCall *pending, |
| 73 |
dbus_int32_t slot); |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
static inline void |
| 88 |
dbus_clear_pending_call (DBusPendingCall **pointer_to_pending_call) |
| 89 |
{ |
| 90 |
_dbus_clear_pointer_impl (DBusPendingCall, pointer_to_pending_call, |
| 91 |
dbus_pending_call_unref); |
| 92 |
} |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
DBUS_END_DECLS |
| 97 |
|
| 98 |
#endif |