1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 * This file is part of tlm
6 * Copyright (C) 2014 Intel Corporation.
8 * Contact: Imran Zaman <imran.zaman@intel.com>
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.
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.
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
26 #ifndef __TLM_DBUS_LOGIN_ADAPTER_H_
27 #define __TLM_DBUS_LOGIN_ADAPTER_H_
31 #include "common/dbus/tlm-dbus-login-gen.h"
32 #include "tlm-dbus-utils.h"
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, \
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))
52 typedef struct _TlmDbusLoginAdapter TlmDbusLoginAdapter;
53 typedef struct _TlmDbusLoginAdapterClass TlmDbusLoginAdapterClass;
54 typedef struct _TlmDbusLoginAdapterPrivate TlmDbusLoginAdapterPrivate;
56 struct _TlmDbusLoginAdapter
61 TlmDbusLoginAdapterPrivate *priv;
64 struct _TlmDbusLoginAdapterClass
66 GObjectClass parent_class;
69 GType tlm_dbus_login_adapter_get_type (void) G_GNUC_CONST;
72 tlm_dbus_login_adapter_new_with_connection (
73 GDBusConnection *connection);
76 tlm_dbus_login_adapter_request_completed (
77 TlmDbusRequest *request,
82 #endif /* __TLM_DBUS_LOGIN_ADAPTER_H_ */