1 #ifndef __MSGPORT_SERVICE_H
2 #define __MSGPORT_SERVICE_H
6 #include <glib-object.h>
7 #include <message-port.h>
11 #define MSGPORT_TYPE_SERVICE (msgport_service_get_type())
12 #define MSGPORT_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MSGPORT_TYPE_SERVICE, MsgPortService))
13 #define MSGPORT_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MSGPORT_TYPE_SERVICE))
14 #define MSGPORT_SERVICE_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST((cls), MSGPORT_TYPE_SERVICE, MsgPortServiceClass))
15 #define MSGPORT_IS_SERVICE_CLASS(cls) (G_TYPE_CHECK_CLASS_TYPE((cls), MSGPORT_TYPE_SERVICE))
17 typedef struct _MsgPortService MsgPortService;
18 typedef struct _MsgPortServiceClass MsgPortServiceClass;
20 struct _MsgPortServiceClass
22 GObjectClass parent_class;
25 GType msgport_service_get_type(void);
28 msgport_service_new (GDBusConnection *connection, const gchar *path, messageport_message_cb message_cb);
31 msgport_service_name (MsgPortService *service);
34 msgport_service_is_trusted (MsgPortService *service);
37 msgport_service_id (MsgPortService *service);
40 msgport_service_unregister (MsgPortService *service);
43 msgport_service_send_message (MsgPortService *service, guint remote_service_id, GVariant *message);
47 #endif /* __MSGPORT_SERVICE_H */