Diff between 507c457d3ce5dd5921b6eaffdb365a33ec086720 and 464d9b64afeb5cfc4cd9fefc53d346702fe13344

Changed Files

File Additions Deletions Status
android/client/if-main.h +2 -0 modified

Full Patch

diff --git a/android/client/if-main.h b/android/client/if-main.h
index 647162c..dea7237 100644
--- 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, ...) \
 	{ \