diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-05-08 17:14:24 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-05-08 17:15:03 +0900 |
commit | 5b99d0f5616d345bc5890cd1260f2bd00e7d30b2 (patch) | |
tree | b4110fb72321c41e3a26e587ae08ac425c84c159 | |
parent | 5c1157d4ec956b3a38d1abb27297c368c91b049a (diff) | |
download | efl-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.am | 10 | ||||
-rw-r--r-- | src/bin/efl/efl_debug.c | 8 | ||||
-rw-r--r-- | src/bin/efl/efl_debug_common.c | 1 | ||||
-rw-r--r-- | src/bin/efl/efl_debug_common.h | 12 | ||||
-rw-r--r-- | 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 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; |