OSDN Git Service

Add RTL8723BS Bluetooth tool
[android-x86/external-bluetooth-bluez.git] / client / gatt.h
1 /*
2  *
3  *  BlueZ - Bluetooth protocol stack for Linux
4  *
5  *  Copyright (C) 2014  Intel Corporation. All rights reserved.
6  *
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21  *
22  */
23
24 void gatt_add_service(GDBusProxy *proxy);
25 void gatt_remove_service(GDBusProxy *proxy);
26
27 void gatt_add_characteristic(GDBusProxy *proxy);
28 void gatt_remove_characteristic(GDBusProxy *proxy);
29
30 void gatt_add_descriptor(GDBusProxy *proxy);
31 void gatt_remove_descriptor(GDBusProxy *proxy);
32
33 void gatt_list_attributes(const char *device);
34 GDBusProxy *gatt_select_attribute(GDBusProxy *parent, const char *path);
35 char *gatt_attribute_generator(const char *text, int state);
36
37 void gatt_read_attribute(GDBusProxy *proxy);
38 void gatt_write_attribute(GDBusProxy *proxy, const char *arg);
39 void gatt_notify_attribute(GDBusProxy *proxy, bool enable);
40
41 void gatt_add_manager(GDBusProxy *proxy);
42 void gatt_remove_manager(GDBusProxy *proxy);
43
44 void gatt_register_profile(DBusConnection *conn, GDBusProxy *proxy,
45                                                                 wordexp_t *w);
46 void gatt_unregister_profile(DBusConnection *conn, GDBusProxy *proxy);