File indexing completed on 2025-01-18 09:55:13
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
0024 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
0025 #endif
0026
0027 #ifndef DBUS_PENDING_CALL_H
0028 #define DBUS_PENDING_CALL_H
0029
0030 #include <dbus/dbus-macros.h>
0031 #include <dbus/dbus-types.h>
0032 #include <dbus/dbus-connection.h>
0033
0034 DBUS_BEGIN_DECLS
0035
0036
0037
0038
0039
0040
0041 #define DBUS_TIMEOUT_INFINITE ((int) 0x7fffffff)
0042 #define DBUS_TIMEOUT_USE_DEFAULT (-1)
0043
0044 DBUS_EXPORT
0045 DBusPendingCall* dbus_pending_call_ref (DBusPendingCall *pending);
0046 DBUS_EXPORT
0047 void dbus_pending_call_unref (DBusPendingCall *pending);
0048 DBUS_EXPORT
0049 dbus_bool_t dbus_pending_call_set_notify (DBusPendingCall *pending,
0050 DBusPendingCallNotifyFunction function,
0051 void *user_data,
0052 DBusFreeFunction free_user_data);
0053 DBUS_EXPORT
0054 void dbus_pending_call_cancel (DBusPendingCall *pending);
0055 DBUS_EXPORT
0056 dbus_bool_t dbus_pending_call_get_completed (DBusPendingCall *pending);
0057 DBUS_EXPORT
0058 DBusMessage* dbus_pending_call_steal_reply (DBusPendingCall *pending);
0059 DBUS_EXPORT
0060 void dbus_pending_call_block (DBusPendingCall *pending);
0061
0062 DBUS_EXPORT
0063 dbus_bool_t dbus_pending_call_allocate_data_slot (dbus_int32_t *slot_p);
0064 DBUS_EXPORT
0065 void dbus_pending_call_free_data_slot (dbus_int32_t *slot_p);
0066 DBUS_EXPORT
0067 dbus_bool_t dbus_pending_call_set_data (DBusPendingCall *pending,
0068 dbus_int32_t slot,
0069 void *data,
0070 DBusFreeFunction free_data_func);
0071 DBUS_EXPORT
0072 void* dbus_pending_call_get_data (DBusPendingCall *pending,
0073 dbus_int32_t slot);
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087 static inline void
0088 dbus_clear_pending_call (DBusPendingCall **pointer_to_pending_call)
0089 {
0090 _dbus_clear_pointer_impl (DBusPendingCall, pointer_to_pending_call,
0091 dbus_pending_call_unref);
0092 }
0093
0094
0095
0096 DBUS_END_DECLS
0097
0098 #endif