Update to upstream 1.0.1
[profile/ivi/gsignond.git] / src / daemon / plugins / gsignond-plugin-remote.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) 2013 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 __GSIGNOND_PLUGIN_REMOTE_H_
27 #define __GSIGNOND_PLUGIN_REMOTE_H_
28
29 #include <glib.h>
30 #include <daemon/dbus/gsignond-dbus-remote-plugin-gen.h>
31 #include <gsignond/gsignond-config.h>
32
33 G_BEGIN_DECLS
34
35 #define GSIGNOND_TYPE_PLUGIN_REMOTE \
36     (gsignond_plugin_remote_get_type())
37 #define GSIGNOND_PLUGIN_REMOTE(obj)  (G_TYPE_CHECK_INSTANCE_CAST((obj),\
38     GSIGNOND_TYPE_PLUGIN_REMOTE, GSignondPluginRemote))
39 #define GSIGNOND_PLUGIN_REMOTE_CLASS(klass)\
40     (G_TYPE_CHECK_CLASS_CAST((klass), GSIGNOND_TYPE_PLUGIN_REMOTE, \
41     GSignondPluginRemoteClass))
42 #define GSIGNOND_IS_PLUGIN_REMOTE(obj)         \
43     (G_TYPE_CHECK_INSTANCE_TYPE((obj), GSIGNOND_TYPE_PLUGIN_REMOTE))
44 #define GSIGNOND_IS_PLUGIN_REMOTE_CLASS(klass) \
45     (G_TYPE_CHECK_CLASS_TYPE((klass), GSIGNOND_TYPE_PLUGIN_REMOTE))
46 #define GSIGNOND_PLUGIN_REMOTE_GET_CLASS(obj)  \
47     (G_TYPE_INSTANCE_GET_CLASS((obj), GSIGNOND_TYPE_PLUGIN_REMOTE, \
48     GSignondPluginRemoteClass))
49
50 typedef struct _GSignondPluginRemote GSignondPluginRemote;
51 typedef struct _GSignondPluginRemoteClass GSignondPluginRemoteClass;
52 typedef struct _GSignondPluginRemotePrivate GSignondPluginRemotePrivate;
53
54 struct _GSignondPluginRemote
55 {
56     GObject parent;
57
58     /* priv */
59     GSignondPluginRemotePrivate *priv;
60 };
61
62 struct _GSignondPluginRemoteClass
63 {
64     GObjectClass parent_class;
65 };
66
67 GType
68 gsignond_plugin_remote_get_type (void) G_GNUC_CONST;
69
70 GSignondPluginRemote *
71 gsignond_plugin_remote_new (
72         const gchar *loader_path,
73         const gchar *plugin_type);
74
75 G_END_DECLS
76
77 #endif /* __GSIGNOND_PLUGIN_REMOTE_H_ */