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:
507c457
)
android/client: Add NELEM macro for count elements
author
Jerzy Kasenberg
<jerzy.kasenberg@tieto.com>
Fri, 8 Nov 2013 12:48:24 +0000
(13:48 +0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 8 Nov 2013 13:12:57 +0000
(15:12 +0200)
NELEM macro will be used in several places.
android/client/if-main.h
patch
|
blob
|
history
diff --git
a/android/client/if-main.h
b/android/client/if-main.h
index
647162c
..
dea7237
100644
(file)
--- a/
android/client/if-main.h
+++ b/
android/client/if-main.h
@@
-144,6
+144,8
@@
struct method *get_command(const char *name);
const struct method *get_interface_method(const char *iname,
const char *mname);
+#define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0])))
+
/* Helper macro for executing function on interface and printing BT_STATUS */
#define EXEC(f, ...) \
{ \