Initial commit
[atlantis.git] / atlantis-server.h
blob5b130ca9a82bd25662df8f05da556d05daad21e8
1 /*
2 * atlantis-server.h - The Atlantis server
3 * (c) 2008 Sander Dijkhuis <sander.dijkhuis@gmail.com>
4 * Still need to decide about licensing. Ask if interested.
5 */
7 #ifndef ATLANTIS_SERVER_H
8 #define ATLANTIS_SERVER_H
10 G_BEGIN_DECLS
12 #include <glib-object.h>
14 #define ATLANTIS_TYPE_SERVER (atlantis_server_get_type ())
15 #define ATLANTIS_SERVER(obj) (G_TYPE_CHECK_CLASS_CAST \
16 ((obj), ATLANTIS_TYPE_SERVER, AtlantisServer))
17 #define ATLANTIS_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST \
18 ((klass), ATLANTIS_TYPE_SERVER, \
19 AtlantisServerClass))
20 #define ATLANTIS_IS_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE \
21 ((obj), ATLANTIS_TYPE_SERVER))
22 #define ATLANTIS_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS \
23 ((obj), ATLANTIS_TYPE_SERVER, \
24 AtlantisServerClass))
26 typedef struct _AtlantisServer AtlantisServer;
27 typedef struct _AtlantisServerClass AtlantisServerClass;
28 typedef struct _AtlantisServerPrivate AtlantisServerPrivate;
30 struct _AtlantisServer
32 GObject parent;
34 /*< private >*/
35 AtlantisServerPrivate *private;
38 struct _AtlantisServerClass
40 GObjectClass parent;
41 /* class members go here */
44 GType
45 atlantis_server_get_type (void);
47 AtlantisServer *
48 atlantis_server_new (void);
50 gboolean
51 atlantis_server_register_service (AtlantisServer *server,
52 gchar *bus_name,
53 gchar *object_path,
54 gchar *service_id,
55 GError **error);
57 G_END_DECLS
59 #endif