First tlm release
[platform/core/system/tlm.git] / src / daemon / dbus / tlm-dbus-login-adapter.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_LOGIN_ADAPTER_H_
27 #define __TLM_DBUS_LOGIN_ADAPTER_H_
28
29 #include <config.h>
30 #include <glib.h>
31 #include "common/dbus/tlm-dbus-login-gen.h"
32 #include "tlm-dbus-utils.h"
33
34 G_BEGIN_DECLS
35
36 #define TLM_TYPE_LOGIN_ADAPTER                \
37     (tlm_dbus_login_adapter_get_type())
38 #define TLM_DBUS_LOGIN_ADAPTER(obj)            \
39     (G_TYPE_CHECK_INSTANCE_CAST((obj), TLM_TYPE_LOGIN_ADAPTER, \
40             TlmDbusLoginAdapter))
41 #define TLM_DBUS_LOGIN_ADAPTER_CLASS(klass)    \
42     (G_TYPE_CHECK_CLASS_CAST((klass), TLM_TYPE_LOGIN_ADAPTER, \
43             TlmDbusLoginAdapterClass))
44 #define TLM_IS_DBUS_LOGIN_ADAPTER(obj)         \
45     (G_TYPE_CHECK_INSTANCE_TYPE((obj), TLM_TYPE_LOGIN_ADAPTER))
46 #define TLM_IS_DBUS_LOGIN_ADAPTER_CLASS(klass) \
47     (G_TYPE_CHECK_CLASS_TYPE((klass), TLM_TYPE_LOGIN_ADAPTER))
48 #define TLM_DBUS_LOGIN_ADAPTER_GET_CLASS(obj)  \
49     (G_TYPE_INSTANCE_GET_CLASS((obj), TLM_TYPE_LOGIN_ADAPTER, \
50             TlmDbusLoginAdapterClass))
51
52 typedef struct _TlmDbusLoginAdapter TlmDbusLoginAdapter;
53 typedef struct _TlmDbusLoginAdapterClass TlmDbusLoginAdapterClass;
54 typedef struct _TlmDbusLoginAdapterPrivate TlmDbusLoginAdapterPrivate;
55
56 struct _TlmDbusLoginAdapter
57 {
58     GObject parent;
59
60     /* priv */
61     TlmDbusLoginAdapterPrivate *priv;
62 };
63
64 struct _TlmDbusLoginAdapterClass
65 {
66     GObjectClass parent_class;
67 };
68
69 GType tlm_dbus_login_adapter_get_type (void) G_GNUC_CONST;
70
71 TlmDbusLoginAdapter *
72 tlm_dbus_login_adapter_new_with_connection (
73         GDBusConnection *connection);
74
75 void
76 tlm_dbus_login_adapter_request_completed (
77         TlmDbusRequest *request,
78         GError *error);
79
80 G_END_DECLS
81
82 #endif /* __TLM_DBUS_LOGIN_ADAPTER_H_ */