efl debug - start on common file for efl_debug tools for protocol
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 8 May 2015 08:14:24 +0000 (17:14 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 8 May 2015 08:15:03 +0000 (17:15 +0900)
this should reduce duplication between debugd and debug tools

src/Makefile_Efl.am
src/bin/efl/efl_debug.c
src/bin/efl/efl_debug_common.c [new file with mode: 0644]
src/bin/efl/efl_debug_common.h [new file with mode: 0644]
src/bin/efl/efl_debugd.c

index b80a46c..5d45ae0 100644 (file)
@@ -74,12 +74,18 @@ bin_PROGRAMS += \
 bin/efl/efl_debugd \
 bin/efl/efl_debug
 
-bin_efl_efl_debugd_SOURCES = bin/efl/efl_debugd.c
+bin_efl_efl_debugd_SOURCES = \
+bin/efl/efl_debugd.c \
+bin/efl/efl_debug_common.c \
+bin/efl/efl_debug_common.h
 bin_efl_efl_debugd_CPPFLAGS = -I$(top_builddir)/src/bin/efl @EINA_CFLAGS@ @ECORE_CFLAGS@ @ECORE_CON_CFLAGS@
 bin_efl_efl_debugd_LDADD = @USE_EINA_INTERNAL_LIBS@ @USE_ECORE_INTERNAL_LIBS@ @USE_ECORE_CON_INTERNAL_LIBS@
 bin_efl_efl_debugd_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@ @USE_ECORE_INTERNAL_LIBS@ @USE_ECORE_CON_INTERNAL_LIBS@
 
-bin_efl_efl_debug_SOURCES = bin/efl/efl_debug.c
+bin_efl_efl_debug_SOURCES = \
+bin/efl/efl_debug.c \
+bin/efl/efl_debug_common.c \
+bin/efl/efl_debug_common.h
 bin_efl_efl_debug_CPPFLAGS = -I$(top_builddir)/src/bin/efl @EINA_CFLAGS@ @ECORE_CFLAGS@ @ECORE_CON_CFLAGS@
 bin_efl_efl_debug_LDADD = @USE_EINA_INTERNAL_LIBS@ @USE_ECORE_INTERNAL_LIBS@ @USE_ECORE_CON_INTERNAL_LIBS@
 bin_efl_efl_debug_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@ @USE_ECORE_INTERNAL_LIBS@ @USE_ECORE_CON_INTERNAL_LIBS@
index b1cd730..b980098 100644 (file)
@@ -1,10 +1,4 @@
-#include <Eina.h>
-#include <Ecore.h>
-#include <Ecore_Con.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
+#include "efl_debug_common.h"
 
 static unsigned char *buf;
 static unsigned int   buf_size;
diff --git a/src/bin/efl/efl_debug_common.c b/src/bin/efl/efl_debug_common.c
new file mode 100644 (file)
index 0000000..5b8c6f8
--- /dev/null
@@ -0,0 +1 @@
+#include "efl_debug_common.h"
diff --git a/src/bin/efl/efl_debug_common.h b/src/bin/efl/efl_debug_common.h
new file mode 100644 (file)
index 0000000..435ddc0
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef EFL_DEBUG_COMMON_H
+#define EFL_DEBUG_COMMON_H 1
+
+#include <Eina.h>
+#include <Ecore.h>
+#include <Ecore_Con.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+
+#endif
index 7f369ac..c102ed4 100644 (file)
@@ -1,10 +1,4 @@
-#include <Eina.h>
-#include <Ecore.h>
-#include <Ecore_Con.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
+#include "efl_debug_common.h"
 
 typedef struct _Client Client;