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 df66e79..01f6fd8 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 326e3cb..a4b9b9d 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 1662e56..e62f5aa 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 9193068..2bdab3c 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__ */
+