| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#pragma once |
| 23 |
|
| 24 |
#include <gio/gio.h> |
| 25 |
|
| 26 |
#ifdef G_OS_UNIX |
| 27 |
# include <gio/gunixfdlist.h> |
| 28 |
#endif |
| 29 |
|
| 30 |
#include "dex-features.h" |
| 31 |
#include "dex-future.h" |
| 32 |
|
| 33 |
G_BEGIN_DECLS |
| 34 |
|
| 35 |
#ifdef DEX_FEATURE_GDBUS_CODEGEN |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
typedef enum |
| 50 |
{ |
| 51 |
DEX_DBUS_INTERFACE_SKELETON_FLAGS_NONE = 0, |
| 52 |
DEX_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_FIBER = (1 << 0), |
| 53 |
} DexDBusInterfaceSkeletonFlags; |
| 54 |
|
| 55 |
#define DEX_TYPE_DBUS_INTERFACE_SKELETON (dex_dbus_interface_skeleton_get_type ()) |
| 56 |
DEX_AVAILABLE_IN_1_1 |
| 57 |
G_DECLARE_DERIVABLE_TYPE (DexDBusInterfaceSkeleton, |
| 58 |
dex_dbus_interface_skeleton, |
| 59 |
DEX, DBUS_INTERFACE_SKELETON, |
| 60 |
GDBusInterfaceSkeleton) |
| 61 |
|
| 62 |
struct _DexDBusInterfaceSkeletonClass |
| 63 |
{ |
| 64 |
GDBusInterfaceSkeletonClass parent_class; |
| 65 |
}; |
| 66 |
|
| 67 |
DEX_AVAILABLE_IN_1_1 |
| 68 |
void dex_dbus_interface_skeleton_cancel (DexDBusInterfaceSkeleton *interface_); |
| 69 |
DEX_AVAILABLE_IN_1_1 |
| 70 |
DexDBusInterfaceSkeletonFlags dex_dbus_interface_skeleton_get_flags (DexDBusInterfaceSkeleton *interface_); |
| 71 |
DEX_AVAILABLE_IN_1_1 |
| 72 |
void dex_dbus_interface_skeleton_set_flags (DexDBusInterfaceSkeleton *interface_, |
| 73 |
DexDBusInterfaceSkeletonFlags flags); |
| 74 |
#endif |
| 75 |
|
| 76 |
DEX_AVAILABLE_IN_ALL |
| 77 |
DexFuture *dex_bus_get (GBusType bus_type) G_GNUC_WARN_UNUSED_RESULT; |
| 78 |
DEX_AVAILABLE_IN_1_1 |
| 79 |
void dex_bus_own_name_on_connection (GDBusConnection *connection, |
| 80 |
const char *name, |
| 81 |
GBusNameOwnerFlags flags, |
| 82 |
DexFuture **out_name_acquired_future, |
| 83 |
DexFuture **out_name_lost_future); |
| 84 |
DEX_AVAILABLE_IN_ALL |
| 85 |
DexFuture *dex_dbus_connection_call (GDBusConnection *connection, |
| 86 |
const char *bus_name, |
| 87 |
const char *object_path, |
| 88 |
const char *interface_name, |
| 89 |
const char *method_name, |
| 90 |
GVariant *parameters, |
| 91 |
const GVariantType *reply_type, |
| 92 |
GDBusCallFlags flags, |
| 93 |
int timeout_msec) G_GNUC_WARN_UNUSED_RESULT; |
| 94 |
DEX_AVAILABLE_IN_ALL |
| 95 |
DexFuture *dex_dbus_connection_close (GDBusConnection *connection) G_GNUC_WARN_UNUSED_RESULT; |
| 96 |
DEX_AVAILABLE_IN_ALL |
| 97 |
DexFuture *dex_dbus_connection_send_message_with_reply (GDBusConnection *connection, |
| 98 |
GDBusMessage *message, |
| 99 |
GDBusSendMessageFlags flags, |
| 100 |
int timeout_msec, |
| 101 |
guint32 *out_serial) G_GNUC_WARN_UNUSED_RESULT; |
| 102 |
#ifdef G_OS_UNIX |
| 103 |
DEX_AVAILABLE_IN_ALL |
| 104 |
DexFuture *dex_dbus_connection_call_with_unix_fd_list (GDBusConnection *connection, |
| 105 |
const char *bus_name, |
| 106 |
const char *object_path, |
| 107 |
const char *interface_name, |
| 108 |
const char *method_name, |
| 109 |
GVariant *parameters, |
| 110 |
const GVariantType *reply_type, |
| 111 |
GDBusCallFlags flags, |
| 112 |
int timeout_msec, |
| 113 |
GUnixFDList *fd_list) G_GNUC_WARN_UNUSED_RESULT; |
| 114 |
#endif |
| 115 |
|
| 116 |
G_END_DECLS |