File: connman-private.h

package info (click to toggle)
connman-ui 0~20150623-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,520 kB
  • sloc: ansic: 9,565; sh: 627; makefile: 55
file content (74 lines) | stat: -rw-r--r-- 2,227 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 *
 *  Connection Manager UI
 *
 *  Copyright (C) 2012  Intel Corporation. All rights reserved.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as
 *  published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */

#ifndef __CONNMAN_PRIVATE_H__
#define __CONNMAN_PRIVATE_H__

#include <connman-interface.h>

#define CONNMAN_DBUS_NAME "net.connman"
#define CONNMAN_ERROR CONNMAN_DBUS_NAME ".Error"

struct connman_interface {
	DBusConnection *dbus_cnx;
	guint interface_watch_id;

	connman_interface_cb_f interface_connected_cb;
	connman_interface_cb_f interface_disconnected_cb;

	void *user_data;
};

struct property_change {
	int index;

	const char *path;
	const char *name;

	int error;
};

struct property_setting {
	void *data;
	int index;
};

extern struct connman_interface *connman;

typedef void (*connman_manager_get_technologies_cb_f)(DBusMessageIter *iter);
typedef void (*connman_manager_technology_added_cb_f)(DBusMessageIter *iter);
typedef void (*connman_manager_technology_removed_cb_f)(DBusMessageIter *iter);

typedef void (*connman_manager_get_services_cb_f)(DBusMessageIter *iter);
typedef void (*connman_manager_service_changed_cb)(DBusMessageIter *iter);

enum connman_state string2enum_state(const char *state);

int __connman_manager_get_technologies(connman_manager_get_technologies_cb_f cb);

int __connman_manager_register_technology_signals(connman_manager_technology_added_cb_f added_cb,
			connman_manager_technology_removed_cb_f removed_cb);

int __connman_manager_get_services(connman_manager_get_services_cb_f cb);

int __connman_manager_register_service_signal(connman_manager_service_changed_cb cb);

#endif /* __CONNMAN_PRIVATE_H__ */