summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-08 17:14:24 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-08 17:15:03 +0900
commit5b99d0f5616d345bc5890cd1260f2bd00e7d30b2 (patch)
treeb4110fb72321c41e3a26e587ae08ac425c84c159
parent5c1157d4ec956b3a38d1abb27297c368c91b049a (diff)
downloadefl-5b99d0f5616d345bc5890cd1260f2bd00e7d30b2.tar.gz
efl debug - start on common file for efl_debug tools for protocol
this should reduce duplication between debugd and debug tools
-rw-r--r--src/Makefile_Efl.am10
-rw-r--r--src/bin/efl/efl_debug.c8
-rw-r--r--src/bin/efl/efl_debug_common.c1
-rw-r--r--src/bin/efl/efl_debug_common.h12
-rw-r--r--src/bin/efl/efl_debugd.c8
5 files changed, 23 insertions, 16 deletions
diff --git a/src/Makefile_Efl.am b/src/Makefile_Efl.am
index b80a46c210..5d45ae03ae 100644
--- a/src/Makefile_Efl.am
+++ b/src/Makefile_Efl.am
@@ -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@
diff --git a/src/bin/efl/efl_debug.c b/src/bin/efl/efl_debug.c
index b1cd730ea4..b9800988ce 100644
--- a/src/bin/efl/efl_debug.c
+++ b/src/bin/efl/efl_debug.c
@@ -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
index 0000000000..5b8c6f8f50
--- /dev/null
+++ b/src/bin/efl/efl_debug_common.c
@@ -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
index 0000000000..435ddc0923
--- /dev/null
+++ b/src/bin/efl/efl_debug_common.h
@@ -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
diff --git a/src/bin/efl/efl_debugd.c b/src/bin/efl/efl_debugd.c
index 7f369ac636..c102ed4a9b 100644
--- a/src/bin/efl/efl_debugd.c
+++ b/src/bin/efl/efl_debugd.c
@@ -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;