First tlm release
[platform/core/system/tlm.git] / src / daemon / dbus / tlm-dbus-server-p2p.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 tlm
5  *
6  * Copyright (C) 2014 Intel Corporation.
7  *
8  * Contact: Imran Zaman <imran.zaman@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 __TLM_DBUS_SERVER_P2P_H_
27 #define __TLM_DBUS_SERVER_P2P_H_
28
29 #include <glib.h>
30 #include <glib-object.h>
31 #include <pwd.h>
32
33 G_BEGIN_DECLS
34
35 #define TLM_TYPE_DBUS_SERVER_P2P            (tlm_dbus_server_p2p_get_type())
36 #define TLM_DBUS_SERVER_P2P(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),\
37         TLM_TYPE_DBUS_SERVER_P2P, TlmDbusServerP2P))
38 #define TLM_DBUS_SERVER_P2P_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),\
39         TLM_TYPE_DBUS_SERVER_P2P, TlmDbusServerP2PClass))
40 #define TLM_IS_DBUS_SERVER_P2P(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
41         TLM_TYPE_DBUS_SERVER_P2P))
42 #define TLM_IS_DBUS_SERVER_P2P_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
43         TLM_TYPE_DBUS_SERVER_P2P))
44 #define TLM_DBUS_SERVER_P2P_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),\
45         TLM_TYPE_DBUS_SERVER_P2P, TlmDbusServerP2PClass))
46
47 typedef struct _TlmDbusServerP2P TlmDbusServerP2P;
48 typedef struct _TlmDbusServerP2PClass TlmDbusServerP2PClass;
49 typedef struct _TlmDbusServerP2PPrivate TlmDbusServerP2PPrivate;
50
51 struct _TlmDbusServerP2P
52 {
53     GObject parent;
54
55     /* priv */
56     TlmDbusServerP2PPrivate *priv;
57 };
58
59 struct _TlmDbusServerP2PClass
60 {
61     GObjectClass parent_class;
62 };
63
64 GType
65 tlm_dbus_server_p2p_get_type();
66
67 TlmDbusServerP2P *
68 tlm_dbus_server_p2p_new (
69         const gchar *address,
70         uid_t uid);
71
72 #endif /* __TLM_DBUS_SERVER_P2P_H_ */