• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *
3  *  BlueZ - Bluetooth protocol stack for Linux
4  *
5  *  Copyright (C) 2010 GSyC/LibreSoft, Universidad Rey Juan Carlos.
6  *  Authors:
7  *  Santiago Carot Nemesio <sancane at gmail.com>
8  *  Jose Antonio Santos-Cadenas <santoscadenas at gmail.com>
9  *
10  *  This program is free software; you can redistribute it and/or modify
11  *  it under the terms of the GNU General Public License as published by
12  *  the Free Software Foundation; either version 2 of the License, or
13  *  (at your option) any later version.
14  *
15  *  This program is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *  GNU General Public License for more details.
19  *
20  *  You should have received a copy of the GNU General Public License
21  *  along with this program; if not, write to the Free Software
22  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23  *
24  */
25 
26 #ifndef __HDP_UTIL_H__
27 #define __HDP_UTIL_H__
28 
29 typedef void (*hdp_continue_mdep_f)(uint8_t mdep, gpointer user_data,
30 								GError *err);
31 typedef void (*hdp_continue_dcpsm_f)(uint16_t dcpsm, gpointer user_data,
32 								GError *err);
33 typedef void (*hdp_continue_proc_f)(gpointer user_data, GError *err);
34 
35 struct hdp_application *hdp_get_app_config(DBusMessageIter *iter, GError **err);
36 gboolean hdp_update_sdp_record(struct hdp_adapter *adapter, GSList *app_list);
37 gboolean hdp_get_mdep(struct hdp_device *device, struct hdp_application *app,
38 				hdp_continue_mdep_f func,
39 				gpointer data, GDestroyNotify destroy,
40 				GError **err);
41 
42 gboolean hdp_establish_mcl(struct hdp_device *device,
43 						hdp_continue_proc_f func,
44 						gpointer data,
45 						GDestroyNotify destroy,
46 						GError **err);
47 
48 gboolean hdp_get_dcpsm(struct hdp_device *device, hdp_continue_dcpsm_f func,
49 							gpointer data,
50 							GDestroyNotify destroy,
51 							GError **err);
52 
53 
54 struct hdp_application *hdp_application_ref(struct hdp_application *app);
55 void hdp_application_unref(struct hdp_application *app);
56 
57 struct hdp_device *health_device_ref(struct hdp_device *hdp_dev);
58 void health_device_unref(struct hdp_device *hdp_dev);
59 
60 
61 #endif /* __HDP_UTIL_H__ */
62