raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5b99d0f5616d345bc5890cd1260f2bd00e7d30b2

commit 5b99d0f5616d345bc5890cd1260f2bd00e7d30b2
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri May 8 17:14:24 2015 +0900

    efl debug - start on common file for efl_debug tools for protocol
    
    this should reduce duplication between debugd and debug tools
---
 src/Makefile_Efl.am            | 10 ++++++++--
 src/bin/efl/efl_debug.c        |  8 +-------
 src/bin/efl/efl_debug_common.c |  1 +
 src/bin/efl/efl_debug_common.h | 12 ++++++++++++
 src/bin/efl/efl_debugd.c       |  8 +-------
 5 files changed, 23 insertions(+), 16 deletions(-)

diff --git a/src/Makefile_Efl.am b/src/Makefile_Efl.am
index b80a46c..5d45ae0 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 b1cd730..b980098 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 0000000..5b8c6f8
--- /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 0000000..435ddc0
--- /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 7f369ac..c102ed4 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;
 

-- 


Reply via email to