Update to upstream 1.0.1
[profile/ivi/gsignond.git] / src / gplugind / gsignond-plugin-daemon.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_DAEMON_H_
27 #define __GSIGNOND_PLUGIN_DAEMON_H_
28
29 #include <glib.h>
30 #include <glib-object.h>
31
32 G_BEGIN_DECLS
33
34 #define GSIGNOND_TYPE_PLUGIN_DAEMON  (gsignond_plugin_daemon_get_type())
35 #define GSIGNOND_PLUGIN_DAEMON(obj)  (G_TYPE_CHECK_INSTANCE_CAST((obj), \
36         GSIGNOND_TYPE_PLUGIN_DAEMON, GSignondPluginDaemon))
37 #define GSIGNOND_PLUGIN_DAEMON_CLASS(klass)  (G_TYPE_CHECK_CLASS_CAST((klass), \
38         GSIGNOND_TYPE_PLUGIN_DAEMON, GSignondPluginDaemonClass))
39 #define GSIGNOND_IS_PLUGIN_DAEMON(obj)  (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
40         GSIGNOND_TYPE_PLUGIN_DAEMON))
41 #define GSIGNOND_IS_PLUGIN_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
42         GSIGNOND_TYPE_PLUGIN_DAEMON))
43 #define GSIGNOND_PLUGIN_DAEMON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),\
44         GSIGNOND_TYPE_PLUGIN_DAEMON, GSignondPluginDaemonClass))
45
46 typedef struct _GSignondPluginDaemon GSignondPluginDaemon;
47 typedef struct _GSignondPluginDaemonClass GSignondPluginDaemonClass;
48 typedef struct _GSignondPluginDaemonPrivate GSignondPluginDaemonPrivate;
49
50 struct _GSignondPluginDaemon
51 {
52     GObject parent;
53
54     /* priv */
55     GSignondPluginDaemonPrivate *priv;
56 };
57
58 struct _GSignondPluginDaemonClass
59 {
60     GObjectClass parent_class;
61 };
62
63 GType gsignond_plugin_daemon_get_type();
64
65 GSignondPluginDaemon *
66 gsignond_plugin_daemon_new (
67         const gchar* filename,
68         const gchar* plugin_type,
69         gint in_fd,
70         gint out_fd);
71
72 #endif /* __GSIGNOND_PLUGIN_DAEMON_H_ */