gsignond first release 0.0.1
[profile/ivi/gsignond.git] / src / daemon / dbus / gsignond-dbus-server.h
1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 /*
4  * This file is part of gsignond
5  *
6  * Copyright (C) 2012 Intel Corporation.
7  *
8  * Contact: Amarnath Valluri <amarnath.valluri@linux.intel.com>
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23  * 02110-1301 USA
24  */
25
26 #ifndef __GSIGNOND_DBUS_SERVER_H_
27 #define __GSIGNOND_DBUS_SERVER_H_
28
29 #include <config.h>
30 #include <glib.h>
31 #include <glib-object.h>
32
33 G_BEGIN_DECLS
34
35 #define GSIGNOND_TYPE_DBUS_SERVER            (gsignond_dbus_server_get_type())
36 #define GSIGNOND_DBUS_SERVER(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), GSIGNOND_TYPE_DBUS_SERVER, GSignondDbusServer))
37 #define GSIGNOND_DBUS_SERVER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), GSIGNOND_TYPE_DBUS_SERVER, GSignondDbusServerClass))
38 #define GSIGNOND_IS_DBUS_SERVER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), GSIGNOND_TYPE_DBUS_SERVER))
39 #define GSIGNOND_IS_DBUS_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GSIGNOND_TYPE_DBUS_SERVER))
40 #define GSIGNOND_DBUS_SERVER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), GSIGNOND_TYPE_DBUS_SERVER, GSignondDbusServerClass))
41
42 typedef struct _GSignondDbusServer GSignondDbusServer;
43 typedef struct _GSignondDbusServerClass GSignondDbusServerClass;
44 typedef struct _GSignondDbusServerPrivate GSignondDbusServerPrivate;
45
46 struct _GSignondDbusServer
47 {
48     GObject parent;
49
50     /* priv */
51     GSignondDbusServerPrivate *priv;
52 };
53
54 struct _GSignondDbusServerClass
55 {
56     GObjectClass parent_class;
57 };
58
59 GType gsignond_dbus_server_get_type();
60
61 #ifdef USE_P2P
62 GSignondDbusServer * gsignond_dbus_server_new_with_address (const gchar *address);
63
64 const gchar *
65 gsignond_dbus_server_get_address (GSignondDbusServer *server) G_GNUC_CONST;
66
67 #endif
68 GSignondDbusServer * gsignond_dbus_server_new ();
69
70 #endif /* __GSIGNOND_DBUS_SERVER_H_ */