X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systembsd.git;a=blobdiff_plain;f=src%2Finterfaces%2Fhostnamed%2Fhostnamed-gen.h;h=a7b6076d9aed0d807be7977afee34554030cdb07;hp=cf049f5afbff131aef809d912fe944376b835182;hb=355f60ae9b0585f1910b8d61e09ff7be57b9fb96;hpb=9c62dcb8c491ca195141a39ef715b55ca1dfda6e diff --git a/src/interfaces/hostnamed/hostnamed-gen.h b/src/interfaces/hostnamed/hostnamed-gen.h index cf049f5..a7b6076 100644 --- a/src/interfaces/hostnamed/hostnamed-gen.h +++ b/src/interfaces/hostnamed/hostnamed-gen.h @@ -12,574 +12,6 @@ G_BEGIN_DECLS -/* ------------------------------------------------------------------------ */ -/* Declarations for org.freedesktop.DBus.Peer */ - -#define TYPE_DBUS_PEER (dbus_peer_get_type ()) -#define DBUS_PEER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DBUS_PEER, DBusPeer)) -#define IS_DBUS_PEER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DBUS_PEER)) -#define DBUS_PEER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_DBUS_PEER, DBusPeerIface)) - -struct _DBusPeer; -typedef struct _DBusPeer DBusPeer; -typedef struct _DBusPeerIface DBusPeerIface; - -struct _DBusPeerIface -{ - GTypeInterface parent_iface; - - gboolean (*handle_get_machine_id) ( - DBusPeer *object, - GDBusMethodInvocation *invocation); - - gboolean (*handle_ping) ( - DBusPeer *object, - GDBusMethodInvocation *invocation); - -}; - -GType dbus_peer_get_type (void) G_GNUC_CONST; - -GDBusInterfaceInfo *dbus_peer_interface_info (void); -guint dbus_peer_override_properties (GObjectClass *klass, guint property_id_begin); - - -/* D-Bus method call completion functions: */ -void dbus_peer_complete_ping ( - DBusPeer *object, - GDBusMethodInvocation *invocation); - -void dbus_peer_complete_get_machine_id ( - DBusPeer *object, - GDBusMethodInvocation *invocation, - const gchar *machine_uuid); - - - -/* D-Bus method calls: */ -void dbus_peer_call_ping ( - DBusPeer *proxy, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); - -gboolean dbus_peer_call_ping_finish ( - DBusPeer *proxy, - GAsyncResult *res, - GError **error); - -gboolean dbus_peer_call_ping_sync ( - DBusPeer *proxy, - GCancellable *cancellable, - GError **error); - -void dbus_peer_call_get_machine_id ( - DBusPeer *proxy, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); - -gboolean dbus_peer_call_get_machine_id_finish ( - DBusPeer *proxy, - gchar **out_machine_uuid, - GAsyncResult *res, - GError **error); - -gboolean dbus_peer_call_get_machine_id_sync ( - DBusPeer *proxy, - gchar **out_machine_uuid, - GCancellable *cancellable, - GError **error); - - - -/* ---- */ - -#define TYPE_DBUS_PEER_PROXY (dbus_peer_proxy_get_type ()) -#define DBUS_PEER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DBUS_PEER_PROXY, DBusPeerProxy)) -#define DBUS_PEER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DBUS_PEER_PROXY, DBusPeerProxyClass)) -#define DBUS_PEER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DBUS_PEER_PROXY, DBusPeerProxyClass)) -#define IS_DBUS_PEER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DBUS_PEER_PROXY)) -#define IS_DBUS_PEER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DBUS_PEER_PROXY)) - -typedef struct _DBusPeerProxy DBusPeerProxy; -typedef struct _DBusPeerProxyClass DBusPeerProxyClass; -typedef struct _DBusPeerProxyPrivate DBusPeerProxyPrivate; - -struct _DBusPeerProxy -{ - /*< private >*/ - GDBusProxy parent_instance; - DBusPeerProxyPrivate *priv; -}; - -struct _DBusPeerProxyClass -{ - GDBusProxyClass parent_class; -}; - -GType dbus_peer_proxy_get_type (void) G_GNUC_CONST; - -void dbus_peer_proxy_new ( - GDBusConnection *connection, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); -DBusPeer *dbus_peer_proxy_new_finish ( - GAsyncResult *res, - GError **error); -DBusPeer *dbus_peer_proxy_new_sync ( - GDBusConnection *connection, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GError **error); - -void dbus_peer_proxy_new_for_bus ( - GBusType bus_type, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); -DBusPeer *dbus_peer_proxy_new_for_bus_finish ( - GAsyncResult *res, - GError **error); -DBusPeer *dbus_peer_proxy_new_for_bus_sync ( - GBusType bus_type, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GError **error); - - -/* ---- */ - -#define TYPE_DBUS_PEER_SKELETON (dbus_peer_skeleton_get_type ()) -#define DBUS_PEER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DBUS_PEER_SKELETON, DBusPeerSkeleton)) -#define DBUS_PEER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DBUS_PEER_SKELETON, DBusPeerSkeletonClass)) -#define DBUS_PEER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DBUS_PEER_SKELETON, DBusPeerSkeletonClass)) -#define IS_DBUS_PEER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DBUS_PEER_SKELETON)) -#define IS_DBUS_PEER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DBUS_PEER_SKELETON)) - -typedef struct _DBusPeerSkeleton DBusPeerSkeleton; -typedef struct _DBusPeerSkeletonClass DBusPeerSkeletonClass; -typedef struct _DBusPeerSkeletonPrivate DBusPeerSkeletonPrivate; - -struct _DBusPeerSkeleton -{ - /*< private >*/ - GDBusInterfaceSkeleton parent_instance; - DBusPeerSkeletonPrivate *priv; -}; - -struct _DBusPeerSkeletonClass -{ - GDBusInterfaceSkeletonClass parent_class; -}; - -GType dbus_peer_skeleton_get_type (void) G_GNUC_CONST; - -DBusPeer *dbus_peer_skeleton_new (void); - - -/* ------------------------------------------------------------------------ */ -/* Declarations for org.freedesktop.DBus.Introspectable */ - -#define TYPE_DBUS_INTROSPECTABLE (dbus_introspectable_get_type ()) -#define DBUS_INTROSPECTABLE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DBUS_INTROSPECTABLE, DBusIntrospectable)) -#define IS_DBUS_INTROSPECTABLE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DBUS_INTROSPECTABLE)) -#define DBUS_INTROSPECTABLE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_DBUS_INTROSPECTABLE, DBusIntrospectableIface)) - -struct _DBusIntrospectable; -typedef struct _DBusIntrospectable DBusIntrospectable; -typedef struct _DBusIntrospectableIface DBusIntrospectableIface; - -struct _DBusIntrospectableIface -{ - GTypeInterface parent_iface; - - gboolean (*handle_introspect) ( - DBusIntrospectable *object, - GDBusMethodInvocation *invocation); - -}; - -GType dbus_introspectable_get_type (void) G_GNUC_CONST; - -GDBusInterfaceInfo *dbus_introspectable_interface_info (void); -guint dbus_introspectable_override_properties (GObjectClass *klass, guint property_id_begin); - - -/* D-Bus method call completion functions: */ -void dbus_introspectable_complete_introspect ( - DBusIntrospectable *object, - GDBusMethodInvocation *invocation, - const gchar *data); - - - -/* D-Bus method calls: */ -void dbus_introspectable_call_introspect ( - DBusIntrospectable *proxy, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); - -gboolean dbus_introspectable_call_introspect_finish ( - DBusIntrospectable *proxy, - gchar **out_data, - GAsyncResult *res, - GError **error); - -gboolean dbus_introspectable_call_introspect_sync ( - DBusIntrospectable *proxy, - gchar **out_data, - GCancellable *cancellable, - GError **error); - - - -/* ---- */ - -#define TYPE_DBUS_INTROSPECTABLE_PROXY (dbus_introspectable_proxy_get_type ()) -#define DBUS_INTROSPECTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DBUS_INTROSPECTABLE_PROXY, DBusIntrospectableProxy)) -#define DBUS_INTROSPECTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DBUS_INTROSPECTABLE_PROXY, DBusIntrospectableProxyClass)) -#define DBUS_INTROSPECTABLE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DBUS_INTROSPECTABLE_PROXY, DBusIntrospectableProxyClass)) -#define IS_DBUS_INTROSPECTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DBUS_INTROSPECTABLE_PROXY)) -#define IS_DBUS_INTROSPECTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DBUS_INTROSPECTABLE_PROXY)) - -typedef struct _DBusIntrospectableProxy DBusIntrospectableProxy; -typedef struct _DBusIntrospectableProxyClass DBusIntrospectableProxyClass; -typedef struct _DBusIntrospectableProxyPrivate DBusIntrospectableProxyPrivate; - -struct _DBusIntrospectableProxy -{ - /*< private >*/ - GDBusProxy parent_instance; - DBusIntrospectableProxyPrivate *priv; -}; - -struct _DBusIntrospectableProxyClass -{ - GDBusProxyClass parent_class; -}; - -GType dbus_introspectable_proxy_get_type (void) G_GNUC_CONST; - -void dbus_introspectable_proxy_new ( - GDBusConnection *connection, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); -DBusIntrospectable *dbus_introspectable_proxy_new_finish ( - GAsyncResult *res, - GError **error); -DBusIntrospectable *dbus_introspectable_proxy_new_sync ( - GDBusConnection *connection, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GError **error); - -void dbus_introspectable_proxy_new_for_bus ( - GBusType bus_type, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); -DBusIntrospectable *dbus_introspectable_proxy_new_for_bus_finish ( - GAsyncResult *res, - GError **error); -DBusIntrospectable *dbus_introspectable_proxy_new_for_bus_sync ( - GBusType bus_type, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GError **error); - - -/* ---- */ - -#define TYPE_DBUS_INTROSPECTABLE_SKELETON (dbus_introspectable_skeleton_get_type ()) -#define DBUS_INTROSPECTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DBUS_INTROSPECTABLE_SKELETON, DBusIntrospectableSkeleton)) -#define DBUS_INTROSPECTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DBUS_INTROSPECTABLE_SKELETON, DBusIntrospectableSkeletonClass)) -#define DBUS_INTROSPECTABLE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DBUS_INTROSPECTABLE_SKELETON, DBusIntrospectableSkeletonClass)) -#define IS_DBUS_INTROSPECTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DBUS_INTROSPECTABLE_SKELETON)) -#define IS_DBUS_INTROSPECTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DBUS_INTROSPECTABLE_SKELETON)) - -typedef struct _DBusIntrospectableSkeleton DBusIntrospectableSkeleton; -typedef struct _DBusIntrospectableSkeletonClass DBusIntrospectableSkeletonClass; -typedef struct _DBusIntrospectableSkeletonPrivate DBusIntrospectableSkeletonPrivate; - -struct _DBusIntrospectableSkeleton -{ - /*< private >*/ - GDBusInterfaceSkeleton parent_instance; - DBusIntrospectableSkeletonPrivate *priv; -}; - -struct _DBusIntrospectableSkeletonClass -{ - GDBusInterfaceSkeletonClass parent_class; -}; - -GType dbus_introspectable_skeleton_get_type (void) G_GNUC_CONST; - -DBusIntrospectable *dbus_introspectable_skeleton_new (void); - - -/* ------------------------------------------------------------------------ */ -/* Declarations for org.freedesktop.DBus.Properties */ - -#define TYPE_DBUS_PROPERTIES (dbus_properties_get_type ()) -#define DBUS_PROPERTIES(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DBUS_PROPERTIES, DBusProperties)) -#define IS_DBUS_PROPERTIES(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DBUS_PROPERTIES)) -#define DBUS_PROPERTIES_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_DBUS_PROPERTIES, DBusPropertiesIface)) - -struct _DBusProperties; -typedef struct _DBusProperties DBusProperties; -typedef struct _DBusPropertiesIface DBusPropertiesIface; - -struct _DBusPropertiesIface -{ - GTypeInterface parent_iface; - - - gboolean (*handle_get) ( - DBusProperties *object, - GDBusMethodInvocation *invocation, - const gchar *arg_interface, - const gchar *arg_property); - - gboolean (*handle_get_all) ( - DBusProperties *object, - GDBusMethodInvocation *invocation, - const gchar *arg_interface); - - gboolean (*handle_set) ( - DBusProperties *object, - GDBusMethodInvocation *invocation, - const gchar *arg_interface, - const gchar *arg_property, - GVariant *arg_value); - - void (*properties_changed) ( - DBusProperties *object, - const gchar *arg_interface, - GVariant *arg_changed_properties, - const gchar *const *arg_invalidated_properties); - -}; - -GType dbus_properties_get_type (void) G_GNUC_CONST; - -GDBusInterfaceInfo *dbus_properties_interface_info (void); -guint dbus_properties_override_properties (GObjectClass *klass, guint property_id_begin); - - -/* D-Bus method call completion functions: */ -void dbus_properties_complete_get ( - DBusProperties *object, - GDBusMethodInvocation *invocation, - GVariant *value); - -void dbus_properties_complete_get_all ( - DBusProperties *object, - GDBusMethodInvocation *invocation, - GVariant *properties); - -void dbus_properties_complete_set ( - DBusProperties *object, - GDBusMethodInvocation *invocation); - - - -/* D-Bus signal emissions functions: */ -void dbus_properties_emit_properties_changed ( - DBusProperties *object, - const gchar *arg_interface, - GVariant *arg_changed_properties, - const gchar *const *arg_invalidated_properties); - - - -/* D-Bus method calls: */ -void dbus_properties_call_get ( - DBusProperties *proxy, - const gchar *arg_interface, - const gchar *arg_property, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); - -gboolean dbus_properties_call_get_finish ( - DBusProperties *proxy, - GVariant **out_value, - GAsyncResult *res, - GError **error); - -gboolean dbus_properties_call_get_sync ( - DBusProperties *proxy, - const gchar *arg_interface, - const gchar *arg_property, - GVariant **out_value, - GCancellable *cancellable, - GError **error); - -void dbus_properties_call_get_all ( - DBusProperties *proxy, - const gchar *arg_interface, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); - -gboolean dbus_properties_call_get_all_finish ( - DBusProperties *proxy, - GVariant **out_properties, - GAsyncResult *res, - GError **error); - -gboolean dbus_properties_call_get_all_sync ( - DBusProperties *proxy, - const gchar *arg_interface, - GVariant **out_properties, - GCancellable *cancellable, - GError **error); - -void dbus_properties_call_set ( - DBusProperties *proxy, - const gchar *arg_interface, - const gchar *arg_property, - GVariant *arg_value, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); - -gboolean dbus_properties_call_set_finish ( - DBusProperties *proxy, - GAsyncResult *res, - GError **error); - -gboolean dbus_properties_call_set_sync ( - DBusProperties *proxy, - const gchar *arg_interface, - const gchar *arg_property, - GVariant *arg_value, - GCancellable *cancellable, - GError **error); - - - -/* ---- */ - -#define TYPE_DBUS_PROPERTIES_PROXY (dbus_properties_proxy_get_type ()) -#define DBUS_PROPERTIES_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DBUS_PROPERTIES_PROXY, DBusPropertiesProxy)) -#define DBUS_PROPERTIES_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DBUS_PROPERTIES_PROXY, DBusPropertiesProxyClass)) -#define DBUS_PROPERTIES_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DBUS_PROPERTIES_PROXY, DBusPropertiesProxyClass)) -#define IS_DBUS_PROPERTIES_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DBUS_PROPERTIES_PROXY)) -#define IS_DBUS_PROPERTIES_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DBUS_PROPERTIES_PROXY)) - -typedef struct _DBusPropertiesProxy DBusPropertiesProxy; -typedef struct _DBusPropertiesProxyClass DBusPropertiesProxyClass; -typedef struct _DBusPropertiesProxyPrivate DBusPropertiesProxyPrivate; - -struct _DBusPropertiesProxy -{ - /*< private >*/ - GDBusProxy parent_instance; - DBusPropertiesProxyPrivate *priv; -}; - -struct _DBusPropertiesProxyClass -{ - GDBusProxyClass parent_class; -}; - -GType dbus_properties_proxy_get_type (void) G_GNUC_CONST; - -void dbus_properties_proxy_new ( - GDBusConnection *connection, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); -DBusProperties *dbus_properties_proxy_new_finish ( - GAsyncResult *res, - GError **error); -DBusProperties *dbus_properties_proxy_new_sync ( - GDBusConnection *connection, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GError **error); - -void dbus_properties_proxy_new_for_bus ( - GBusType bus_type, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); -DBusProperties *dbus_properties_proxy_new_for_bus_finish ( - GAsyncResult *res, - GError **error); -DBusProperties *dbus_properties_proxy_new_for_bus_sync ( - GBusType bus_type, - GDBusProxyFlags flags, - const gchar *name, - const gchar *object_path, - GCancellable *cancellable, - GError **error); - - -/* ---- */ - -#define TYPE_DBUS_PROPERTIES_SKELETON (dbus_properties_skeleton_get_type ()) -#define DBUS_PROPERTIES_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DBUS_PROPERTIES_SKELETON, DBusPropertiesSkeleton)) -#define DBUS_PROPERTIES_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DBUS_PROPERTIES_SKELETON, DBusPropertiesSkeletonClass)) -#define DBUS_PROPERTIES_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DBUS_PROPERTIES_SKELETON, DBusPropertiesSkeletonClass)) -#define IS_DBUS_PROPERTIES_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DBUS_PROPERTIES_SKELETON)) -#define IS_DBUS_PROPERTIES_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DBUS_PROPERTIES_SKELETON)) - -typedef struct _DBusPropertiesSkeleton DBusPropertiesSkeleton; -typedef struct _DBusPropertiesSkeletonClass DBusPropertiesSkeletonClass; -typedef struct _DBusPropertiesSkeletonPrivate DBusPropertiesSkeletonPrivate; - -struct _DBusPropertiesSkeleton -{ - /*< private >*/ - GDBusInterfaceSkeleton parent_instance; - DBusPropertiesSkeletonPrivate *priv; -}; - -struct _DBusPropertiesSkeletonClass -{ - GDBusInterfaceSkeletonClass parent_class; -}; - -GType dbus_properties_skeleton_get_type (void) G_GNUC_CONST; - -DBusProperties *dbus_properties_skeleton_new (void); - - /* ------------------------------------------------------------------------ */ /* Declarations for org.freedesktop.hostname1 */ @@ -919,6 +351,148 @@ GType hostname1_skeleton_get_type (void) G_GNUC_CONST; Hostname1 *hostname1_skeleton_new (void); +/* ---- */ + +#define TYPE_OBJECT (object_get_type ()) +#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) +#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) +#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) + +struct _Object; +typedef struct _Object Object; +typedef struct _ObjectIface ObjectIface; + +struct _ObjectIface +{ + GTypeInterface parent_iface; +}; + +GType object_get_type (void) G_GNUC_CONST; + +Hostname1 *object_get_hostname1 (Object *object); +Hostname1 *object_peek_hostname1 (Object *object); + +#define TYPE_OBJECT_PROXY (object_proxy_get_type ()) +#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) +#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) +#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) +#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) +#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) + +typedef struct _ObjectProxy ObjectProxy; +typedef struct _ObjectProxyClass ObjectProxyClass; +typedef struct _ObjectProxyPrivate ObjectProxyPrivate; + +struct _ObjectProxy +{ + /*< private >*/ + GDBusObjectProxy parent_instance; + ObjectProxyPrivate *priv; +}; + +struct _ObjectProxyClass +{ + GDBusObjectProxyClass parent_class; +}; + +GType object_proxy_get_type (void) G_GNUC_CONST; +ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); + +#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) +#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) +#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) +#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) +#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) +#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) + +typedef struct _ObjectSkeleton ObjectSkeleton; +typedef struct _ObjectSkeletonClass ObjectSkeletonClass; +typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; + +struct _ObjectSkeleton +{ + /*< private >*/ + GDBusObjectSkeleton parent_instance; + ObjectSkeletonPrivate *priv; +}; + +struct _ObjectSkeletonClass +{ + GDBusObjectSkeletonClass parent_class; +}; + +GType object_skeleton_get_type (void) G_GNUC_CONST; +ObjectSkeleton *object_skeleton_new (const gchar *object_path); +void object_skeleton_set_hostname1 (ObjectSkeleton *object, Hostname1 *interface_); + +/* ---- */ + +#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) +#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) +#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) +#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) +#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) +#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) + +typedef struct _ObjectManagerClient ObjectManagerClient; +typedef struct _ObjectManagerClientClass ObjectManagerClientClass; +typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; + +struct _ObjectManagerClient +{ + /*< private >*/ + GDBusObjectManagerClient parent_instance; + ObjectManagerClientPrivate *priv; +}; + +struct _ObjectManagerClientClass +{ + GDBusObjectManagerClientClass parent_class; +}; + +GType object_manager_client_get_type (void) G_GNUC_CONST; + +GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); + +void object_manager_client_new ( + GDBusConnection *connection, + GDBusObjectManagerClientFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GDBusObjectManager *object_manager_client_new_finish ( + GAsyncResult *res, + GError **error); +GDBusObjectManager *object_manager_client_new_sync ( + GDBusConnection *connection, + GDBusObjectManagerClientFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error); + +void object_manager_client_new_for_bus ( + GBusType bus_type, + GDBusObjectManagerClientFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GDBusObjectManager *object_manager_client_new_for_bus_finish ( + GAsyncResult *res, + GError **error); +GDBusObjectManager *object_manager_client_new_for_bus_sync ( + GBusType bus_type, + GDBusObjectManagerClientFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error); + + G_END_DECLS #endif /* __SRC_INTERFACES_HOSTNAMED_HOSTNAMED_GEN_H__ */