OSDN Git Service

Add macro UNUSED() to bt_utils.h
authorMike J. Chen <mjchen@google.com>
Sat, 1 Feb 2014 02:13:09 +0000 (18:13 -0800)
committerMike J. Chen <mjchen@google.com>
Tue, 11 Feb 2014 17:48:31 +0000 (09:48 -0800)
Also include bt_utils.h in some other header files commonly
included by some subsystems.

Change-Id: I1e6be2abae503c4303c92d97eeeb29981beacd10
Signed-off-by: Mike J. Chen <mjchen@google.com>
audio_a2dp_hw/Android.mk
bta/Android.mk
bta/include/utl.h
btif/include/btif_util.h
utils/include/bt_utils.h

index ee113b1..f9fd0a1 100644 (file)
@@ -5,7 +5,7 @@ include $(CLEAR_VARS)
 LOCAL_SRC_FILES:= \
        audio_a2dp_hw.c
 
-LOCAL_C_INCLUDES+= .
+LOCAL_C_INCLUDES+= . $(LOCAL_PATH)/../utils/include
 
 LOCAL_SHARED_LIBRARIES := \
        libcutils liblog
index f4b8a7e..bca6c08 100644 (file)
@@ -98,6 +98,7 @@ LOCAL_C_INCLUDES+= . \
                    $(LOCAL_PATH)/../hcis/patchram \
                    $(LOCAL_PATH)/../udrv/include \
                    $(LOCAL_PATH)/../brcm/include \
+                   $(LOCAL_PATH)/../utils/include \
                    $(bdroid_C_INCLUDES) \
 
 
index df08b5a..e26cded 100644 (file)
@@ -25,6 +25,7 @@
 #define UTL_H
 
 #include "data_types.h"
+#include "bt_utils.h"
 
 /*****************************************************************************
 **  Constants
index 30bff69..95969dd 100755 (executable)
@@ -26,6 +26,7 @@
 
 #include "data_types.h"
 #include "bt_types.h"
+#include "bt_utils.h"
 
 /*******************************************************************************
 **  Constants & Macros
index ac18f07..d601f2e 100644 (file)
@@ -40,4 +40,6 @@ void bt_utils_init();
 void bt_utils_cleanup();
 void raise_priority_a2dp(tHIGH_PRIORITY_TASK high_task);
 
+#define UNUSED(x) (void)(x)
+
 #endif /* BT_UTILS_H */