bt-api: Fix incorrect macro expansion for service function
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / include / bt-request-sender.h
index 9c40c3b..e26ee49 100644 (file)
@@ -39,6 +39,7 @@ int _bt_sync_send_request(int service_type, int service_function,
                        GArray *in_param3, GArray *in_param4,
                        GArray **out_param1);
 
+/* The caller of this should pass #define macro/enum types as the first two params */
 #define _bt_send_request(a, b, format ...) ( \
        { \
        if ((a != BT_CHECK_PRIVILEGE && (a == BT_BLUEZ_SERVICE || a == BT_OBEX_SERVICE)) && \
@@ -57,6 +58,7 @@ int _bt_async_send_request(int service_type, int service_function,
                        GArray *in_param3, GArray *in_param4,
                        void *callback, void *user_data);
 
+/* The caller of this should pass #define macro/enum types as the first two params */
 #define _bt_send_request_async(a, b, format ...) ( \
        { \
        if ((a != BT_CHECK_PRIVILEGE && (a == BT_BLUEZ_SERVICE || a == BT_OBEX_SERVICE)) && \