Debian Codegraph @

lib/connman-private.h

raw symbols SCIP
1 /*
2 *
3 * Connection Manager UI
4 *
5 * Copyright (C) 2012 Intel Corporation. All rights reserved.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 */
21
22 #ifndef __CONNMAN_PRIVATE_H__
23 #define __CONNMAN_PRIVATE_H__
24
25 #include <connman-interface.h>
26
27 #define CONNMAN_DBUS_NAME "net.connman"
28 #define CONNMAN_ERROR CONNMAN_DBUS_NAME ".Error"
29
30 struct connman_interface {
31 DBusConnection *dbus_cnx;
32 guint interface_watch_id;
33
34 connman_interface_cb_f interface_connected_cb;
35 connman_interface_cb_f interface_disconnected_cb;
36
37 void *user_data;
38 };
39
40 struct property_change {
41 int index;
42
43 const char *path;
44 const char *name;
45
46 int error;
47 };
48
49 struct property_setting {
50 void *data;
51 int index;
52 };
53
54 extern struct connman_interface *connman;
55
56 typedef void (*connman_manager_get_technologies_cb_f)(DBusMessageIter *iter);
57 typedef void (*connman_manager_technology_added_cb_f)(DBusMessageIter *iter);
58 typedef void (*connman_manager_technology_removed_cb_f)(DBusMessageIter *iter);
59
60 typedef void (*connman_manager_get_services_cb_f)(DBusMessageIter *iter);
61 typedef void (*connman_manager_service_changed_cb)(DBusMessageIter *iter);
62
63 enum connman_state string2enum_state(const char *state);
64
65 int __connman_manager_get_technologies(connman_manager_get_technologies_cb_f cb);
66
67 int __connman_manager_register_technology_signals(connman_manager_technology_added_cb_f added_cb,
68 connman_manager_technology_removed_cb_f removed_cb);
69
70 int __connman_manager_get_services(connman_manager_get_services_cb_f cb);
71
72 int __connman_manager_register_service_signal(connman_manager_service_changed_cb cb);
73
74 #endif /* __CONNMAN_PRIVATE_H__ */