54 #ifndef QDBUS_SYMBOLS_P_H 55 #define QDBUS_SYMBOLS_P_H 57 #include <QtCore/qglobal.h> 58 #include <dbus/dbus.h> 64 #if !defined QT_LINKED_LIBDBUS 70 # define DEFINEFUNC(ret, func, args, argcall, funcret) \ 71 typedef ret (* _q_PTR_##func) args; \ 72 static inline ret q_##func args \ 74 static _q_PTR_##func ptr; \ 76 ptr = (_q_PTR_##func) qdbus_resolve_me(#func); \ 77 funcret ptr argcall; \ 80 #else // defined QT_LINKED_LIBDBUS 84 # define DEFINEFUNC(ret, func, args, argcall, funcret) \ 85 static inline ret q_##func args { funcret func argcall; } 87 #endif // defined QT_LINKED_LIBDBUS 93 (connection, rule,
error), )
97 (connection, rule,
error), )
100 (connection,
error),
return)
105 (connection),
return)
109 DBusHandleMessageFunction
function,
111 DBusFreeFunction free_data_function),
112 (connection,
function, user_data, free_data_function),
return)
114 (connection),
return)
116 (connection),
return)
118 (connection),
return)
120 (connection),
return)
123 (address,
error),
return)
125 (connection),
return)
127 DBusMessage *message,
128 dbus_uint32_t *client_serial),
129 (connection, message, client_serial),
return)
131 DBusMessage *message,
132 DBusPendingCall **pending_return,
133 int timeout_milliseconds),
134 (connection, message, pending_return, timeout_milliseconds),
return)
136 DBusMessage *message,
137 int timeout_milliseconds,
139 (connection, message, timeout_milliseconds,
error),
return)
141 dbus_bool_t exit_on_disconnect),
142 (connection, exit_on_disconnect), )
144 DBusAddTimeoutFunction add_function,
145 DBusRemoveTimeoutFunction remove_function,
146 DBusTimeoutToggledFunction toggled_function,
148 DBusFreeFunction free_data_function),
149 (connection, add_function, remove_function, toggled_function,
data, free_data_function),
return)
151 DBusAddWatchFunction add_function,
152 DBusRemoveWatchFunction remove_function,
153 DBusWatchToggledFunction toggled_function,
155 DBusFreeFunction free_data_function),
156 (connection, add_function, remove_function, toggled_function,
data, free_data_function),
return)
158 DBusWakeupMainFunction wakeup_main_function,
160 DBusFreeFunction free_data_function),
161 (connection, wakeup_main_function,
data, free_data_function), )
163 DBusDispatchStatusFunction
function,
165 DBusFreeFunction free_data_function),
166 (connection,
function,
data, free_data_function), )
185 (watch, flags),
return)
224 (iter,
type, value),
return)
229 (iter, element_type, value, n_elements),
return)
231 DBusMessageIter *sub),
243 (iter, value, n_elements),
return)
247 DBusMessageIter *iter),
248 (message, iter),
return)
250 DBusMessageIter *iter),
251 (message, iter),
return)
256 const char *contained_signature,
257 DBusMessageIter *sub),
258 (iter,
type, contained_signature, sub),
return)
260 DBusMessageIter *sub),
263 (message_type),
return)
266 const char *interface,
268 (bus_name, path, interface, method),
return)
270 const char *interface,
272 (path, interface,
name),
return)
276 dbus_bool_t auto_start),
277 (message, auto_start),
return)
279 const char *destination),
280 (message, destination),
return)
283 (message,
name),
return)
285 dbus_bool_t no_reply),
286 (message, no_reply),
return)
288 const char *object_path),
289 (message, object_path),
return)
291 dbus_uint32_t reply_serial),
292 (message, reply_serial),
return)
295 (message, sender),
return)
305 DBusPendingCallNotifyFunction
function,
307 DBusFreeFunction free_user_data),
308 (pending,
function, user_data, free_user_data),
return)
331 (address,
error),
return)
335 DBusFreeFunction free_data_func),
338 DBusNewConnectionFunction
function,
340 DBusFreeFunction free_data_function),
341 (
server,
function,
data, free_data_function), )
343 DBusAddTimeoutFunction add_function,
344 DBusRemoveTimeoutFunction remove_function,
345 DBusTimeoutToggledFunction toggled_function,
347 DBusFreeFunction free_data_function),
348 (
server, add_function, remove_function, toggled_function,
data, free_data_function),
return)
350 DBusAddWatchFunction add_function,
351 DBusRemoveWatchFunction remove_function,
352 DBusWatchToggledFunction toggled_function,
354 DBusFreeFunction free_data_function),
355 (
server, add_function, remove_function, toggled_function,
data, free_data_function),
return)
365 #endif // QDBUS_SYMBOLS_P_H void dbus_bus_remove_match(DBusConnection *connection, const char *rule, DBusError *error)
char * dbus_server_get_address(DBusServer *server)
dbus_bool_t dbus_connection_get_is_connected(DBusConnection *connection)
char * dbus_get_local_machine_id(void)
void dbus_error_free(DBusError *error)
dbus_bool_t dbus_connection_set_timeout_functions(DBusConnection *connection, DBusAddTimeoutFunction add_function, DBusRemoveTimeoutFunction remove_function, DBusTimeoutToggledFunction toggled_function, void *data, DBusFreeFunction free_data_function)
void * qdbus_resolve_conditionally(const char *name)
void dbus_connection_set_dispatch_status_function(DBusConnection *connection, DBusDispatchStatusFunction function, void *data, DBusFreeFunction free_data_function)
#define QT_END_NAMESPACE
This macro expands to.
dbus_bool_t dbus_pending_call_set_notify(DBusPendingCall *pending, DBusPendingCallNotifyFunction function, void *user_data, DBusFreeFunction free_user_data)
dbus_bool_t dbus_connection_set_watch_functions(DBusConnection *connection, DBusAddWatchFunction add_function, DBusRemoveWatchFunction remove_function, DBusWatchToggledFunction toggled_function, void *data, DBusFreeFunction free_data_function)
dbus_bool_t dbus_message_iter_close_container(DBusMessageIter *iter, DBusMessageIter *sub)
dbus_bool_t dbus_connection_send(DBusConnection *connection, DBusMessage *message, dbus_uint32_t *client_serial)
char * dbus_message_iter_get_signature(DBusMessageIter *iter)
void dbus_connection_set_exit_on_disconnect(DBusConnection *connection, dbus_bool_t exit_on_disconnect)
void dbus_message_unref(DBusMessage *message)
#define DEFINEFUNC(ret, func, args, argcall, funcret)
dbus_bool_t dbus_connection_add_filter(DBusConnection *connection, DBusHandleMessageFunction function, void *user_data, DBusFreeFunction free_data_function)
dbus_bool_t dbus_timeout_handle(DBusTimeout *timeout)
dbus_bool_t dbus_server_set_timeout_functions(DBusServer *server, DBusAddTimeoutFunction add_function, DBusRemoveTimeoutFunction remove_function, DBusTimeoutToggledFunction toggled_function, void *data, DBusFreeFunction free_data_function)
dbus_bool_t dbus_server_allocate_data_slot(dbus_int32_t *slot_p)
void dbus_server_set_new_connection_function(DBusServer *server, DBusNewConnectionFunction function, void *data, DBusFreeFunction free_data_function)
dbus_uint32_t dbus_message_get_serial(DBusMessage *message)
dbus_bool_t dbus_message_set_sender(DBusMessage *message, const char *sender)
void dbus_pending_call_unref(DBusPendingCall *pending)
void dbus_server_unref(DBusServer *server)
dbus_bool_t dbus_connection_send_with_reply(DBusConnection *connection, DBusMessage *message, DBusPendingCall **pending_return, int timeout_milliseconds)
DBusDispatchStatus dbus_connection_get_dispatch_status(DBusConnection *connection)
int dbus_message_get_type(DBusMessage *message)
dbus_bool_t dbus_message_get_no_reply(DBusMessage *message)
void dbus_error_init(DBusError *error)
const char * dbus_message_get_interface(DBusMessage *message)
dbus_bool_t dbus_timeout_get_enabled(DBusTimeout *timeout)
dbus_bool_t dbus_pending_call_get_completed(DBusPendingCall *pending)
dbus_bool_t dbus_message_set_error_name(DBusMessage *message, const char *name)
dbus_bool_t dbus_server_set_watch_functions(DBusServer *server, DBusAddWatchFunction add_function, DBusRemoveWatchFunction remove_function, DBusWatchToggledFunction toggled_function, void *data, DBusFreeFunction free_data_function)
void dbus_free(void *memory)
const char * dbus_message_get_error_name(DBusMessage *message)
DBusMessage * dbus_message_new_method_call(const char *bus_name, const char *path, const char *interface, const char *method)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void dbus_message_iter_init_append(DBusMessage *message, DBusMessageIter *iter)
void dbus_connection_set_wakeup_main_function(DBusConnection *connection, DBusWakeupMainFunction wakeup_main_function, void *data, DBusFreeFunction free_data_function)
DBusMessage * dbus_message_new_signal(const char *path, const char *interface, const char *name)
void dbus_pending_call_cancel(DBusPendingCall *pending)
dbus_bool_t dbus_watch_get_enabled(DBusWatch *watch)
DBusServer * dbus_server_listen(const char *address, DBusError *error)
void dbus_bus_add_match(DBusConnection *connection, const char *rule, DBusError *error)
dbus_bool_t dbus_bus_register(DBusConnection *connection, DBusError *error)
int dbus_message_iter_get_element_type(DBusMessageIter *iter)
dbus_bool_t dbus_message_iter_next(DBusMessageIter *iter)
static const char * data(const QByteArray &arr)
DBusConnection * dbus_connection_ref(DBusConnection *connection)
const char * dbus_message_get_sender(DBusMessage *message)
DBusDispatchStatus dbus_connection_dispatch(DBusConnection *connection)
void dbus_server_disconnect(DBusServer *server)
dbus_bool_t dbus_watch_handle(DBusWatch *watch, unsigned int flags)
DBusMessage * dbus_connection_send_with_reply_and_block(DBusConnection *connection, DBusMessage *message, int timeout_milliseconds, DBusError *error)
dbus_bool_t dbus_message_iter_init(DBusMessage *message, DBusMessageIter *iter)
dbus_bool_t dbus_threads_init_default()
void dbus_message_iter_recurse(DBusMessageIter *iter, DBusMessageIter *sub)
unsigned int dbus_watch_get_flags(DBusWatch *watch)
void dbus_message_iter_get_fixed_array(DBusMessageIter *iter, void *value, int *n_elements)
void dbus_pending_call_block(DBusPendingCall *pending)
dbus_bool_t dbus_message_iter_append_basic(DBusMessageIter *iter, int type, const void *value)
static QAuServer & server()
void dbus_connection_unref(DBusConnection *connection)
dbus_bool_t dbus_message_set_reply_serial(DBusMessage *message, dbus_uint32_t reply_serial)
void * qdbus_resolve_me(const char *name)
dbus_bool_t dbus_message_get_auto_start(DBusMessage *message)
const char * dbus_message_get_signature(DBusMessage *message)
dbus_bool_t dbus_server_get_is_connected(DBusServer *server)
const char * dbus_message_get_member(DBusMessage *message)
DBusMessage * dbus_pending_call_steal_reply(DBusPendingCall *pending)
int dbus_watch_get_fd(DBusWatch *watch)
const char * dbus_message_get_path(DBusMessage *message)
void dbus_message_set_no_reply(DBusMessage *message, dbus_bool_t no_reply)
DBusMessage * dbus_message_copy(const DBusMessage *message)
const char * dbus_bus_get_unique_name(DBusConnection *connection)
dbus_bool_t dbus_error_is_set(const DBusError *error)
dbus_bool_t dbus_server_set_data(DBusServer *server, int slot, void *data, DBusFreeFunction free_data_func)
DBusMessage * dbus_message_ref(DBusMessage *message)
dbus_bool_t dbus_message_set_path(DBusMessage *message, const char *object_path)
int dbus_message_iter_get_arg_type(DBusMessageIter *iter)
int dbus_timeout_get_interval(DBusTimeout *timeout)
DBusConnection * dbus_bus_get_private(DBusBusType type, DBusError *error)
DBusConnection * dbus_connection_open_private(const char *address, DBusError *error)
DBusMessage * dbus_message_new(int message_type)
void dbus_connection_close(DBusConnection *connection)
void dbus_message_set_auto_start(DBusMessage *message, dbus_bool_t auto_start)
dbus_bool_t dbus_message_set_destination(DBusMessage *message, const char *destination)
dbus_bool_t dbus_message_iter_open_container(DBusMessageIter *iter, int type, const char *contained_signature, DBusMessageIter *sub)
void dbus_message_iter_get_basic(DBusMessageIter *iter, void *value)
dbus_bool_t dbus_message_iter_append_fixed_array(DBusMessageIter *iter, int element_type, const void *value, int n_elements)