759c13a9fbbc04eb21bd35579db316d25d0ab850
[profile/ivi/gsignond.git] / src / daemon / plugins / gsignond-plugin-remote-private.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@linux.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_PRIVATE_H__
27 #define __GSIGNOND_PLUGIN_REMOTE_PRIVATE_H__
28
29 #include <glib.h>
30 #include <daemon/dbus/gsignond-dbus-remote-plugin-gen.h>
31 #include "daemon/dbus/gsignond-dbus.h"
32
33 G_BEGIN_DECLS
34
35 struct _GSignondPluginRemotePrivate
36 {
37     GDBusConnection   *connection;
38     GSignondDbusRemotePlugin *dbus_plugin_proxy;
39     gchar *plugin_type;
40     gchar **plugin_mechanisms;
41     GPid cpid;
42     guint child_watch_id;
43
44     GIOChannel *err_watch_ch;
45     guint err_watch_id;
46
47     GMainLoop *main_loop;
48     gboolean is_plugind_up;
49
50     gboolean unref_in_down_cb;
51
52     /* Signals */
53     gulong signal_response;
54     gulong signal_response_final;
55     gulong signal_store;
56     gulong signal_error;
57     gulong signal_user_action_required;
58     gulong signal_refreshed;
59     gulong signal_status_changed;
60 };
61
62 G_END_DECLS
63
64 #endif /* __GSIGNOND_PLUGIN_REMOTE_PRIVATE_H__ */