Use g_memdup2 instead of g_memdup 97/267897/1
authordh79pyun <dh79.pyun@samsung.com>
Mon, 13 Dec 2021 04:40:22 +0000 (13:40 +0900)
committerdh79pyun <dh79.pyun@samsung.com>
Mon, 13 Dec 2021 04:40:22 +0000 (13:40 +0900)
Change-Id: I436d0b0fa3993d3718a745632a265067501d465f
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
gdbus/gdbus.h
gobex/gobex-defs.h
src/log.h
src/shared/util.h
tizen_def.h [new file with mode: 0644]

index df66e79458d95d92876a52908717b6156792b7b4..01f6fd8875b9cea92d100aec7053c77c56c27752 100755 (executable)
@@ -31,6 +31,10 @@ extern "C" {
 #include <dbus/dbus.h>
 #include <glib.h>
 
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+#include "tizen_def.h"
+#endif
+
 typedef struct GDBusArgInfo GDBusArgInfo;
 typedef struct GDBusMethodTable GDBusMethodTable;
 typedef struct GDBusSignalTable GDBusSignalTable;
index 326e3cb09ab1059572afc968464fef9c8bfb8577..a4b9b9defc599d5aa552e39d445d5bb4c7326f70 100755 (executable)
 
 #include <glib.h>
 
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+#include "tizen_def.h"
+#endif
+
 typedef enum {
        G_OBEX_DATA_INHERIT,
        G_OBEX_DATA_COPY,
index 1662e564abeb4279eb2e20ef5121d6b31ab9edc1..e62f5aaa5f488b44b314b4e78383284c9d180a09 100755 (executable)
--- a/src/log.h
+++ b/src/log.h
 
 #include <stdint.h>
 
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+#include "tizen_def.h"
+#endif
+
 void info(const char *format, ...) __attribute__((format(printf, 1, 2)));
 
 void btd_log(uint16_t index, int priority, const char *format, ...)
index 9193068d17555682ac2ba2d73c84d545b9ac214b..2bdab3c108f8c81c8bb2ed61c23c5e69f5f8fb8e 100755 (executable)
 #include <byteswap.h>
 #include <string.h>
 
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+#include "tizen_def.h"
+#endif
+
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN
diff --git a/tizen_def.h b/tizen_def.h
new file mode 100644 (file)
index 0000000..a271592
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ */
+
+#ifndef __TIZEN_DEF_H__
+#define __TIZEN_DEF_H__
+
+#define g_memdup g_memdup2
+
+#endif /* __TIZEN_DEF_H__ */
+