OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c6e02b
)
android/client: Add init/cleanup for GATT
author
Jerzy Kasenberg
<jerzy.kasenberg@tieto.com>
Thu, 31 Oct 2013 10:45:09 +0000
(11:45 +0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 31 Oct 2013 13:59:34 +0000
(15:59 +0200)
This patch adds gatt functions code.
android/client/if-gatt.c
patch
|
blob
|
history
diff --git
a/android/client/if-gatt.c
b/android/client/if-gatt.c
index
1d3730d
..
d5e2d72
100644
(file)
--- a/
android/client/if-gatt.c
+++ b/
android/client/if-gatt.c
@@
-496,12
+496,20
@@
static const btgatt_callbacks_t gatt_cbacks = {
static void init_p(int argc, const char **argv)
{
+ RETURN_IF_NULL(if_gatt);
+
+ EXEC(if_gatt->init, &gatt_cbacks);
}
/* cleanup */
static void cleanup_p(int argc, const char **argv)
{
+ RETURN_IF_NULL(if_gatt);
+
+ EXECV(if_gatt->cleanup);
+
+ if_gatt = NULL;
}
static struct method methods[] = {