ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=6e461200c68758ddf56a0f3649cb68a289f29e56

commit 6e461200c68758ddf56a0f3649cb68a289f29e56
Author: Andy Williams <a...@andywilliams.me>
Date:   Sat May 16 10:05:54 2015 +0100

    headers: remove includes if they are not needed
    
    Put them in the code that needs them unless they are part of the API
---
 src/lib/Edi.h         |  3 ---
 src/lib/edi.c         |  2 ++
 src/lib/edi_builder.c |  3 +++
 src/lib/edi_create.c  | 15 +++++++++++++++
 src/lib/edi_create.h  | 11 -----------
 5 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/src/lib/Edi.h b/src/lib/Edi.h
index 321ee46..5a256b3 100644
--- a/src/lib/Edi.h
+++ b/src/lib/Edi.h
@@ -2,9 +2,6 @@
 # define EDI_H_
 
 #include <Eina.h>
-#include <Eio.h>
-#include <Ecore.h>
-#include <Ecore_File.h>
 
 #ifdef EAPI
 # undef EAPI
diff --git a/src/lib/edi.c b/src/lib/edi.c
index 768a07f..21fc775 100644
--- a/src/lib/edi.c
+++ b/src/lib/edi.c
@@ -6,6 +6,8 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include <Ecore_File.h>
+
 #include "Edi.h"
 
 #include "edi_private.h"
diff --git a/src/lib/edi_builder.c b/src/lib/edi_builder.c
index 569f6e1..db6dae1 100644
--- a/src/lib/edi_builder.c
+++ b/src/lib/edi_builder.c
@@ -2,6 +2,9 @@
 # include "config.h"
 #endif
 
+#include <unistd.h>
+#include <Ecore.h>
+
 #include "Edi.h"
 
 #include "edi_private.h"
diff --git a/src/lib/edi_create.c b/src/lib/edi_create.c
index 422f5b3..ae33d34 100644
--- a/src/lib/edi_create.c
+++ b/src/lib/edi_create.c
@@ -2,10 +2,25 @@
 # include "config.h"
 #endif
 
+#include <Eio.h>
+#include <Ecore.h>
+#include <Ecore_File.h>
+
 #include "Edi.h"
 
 #include "edi_private.h"
 
+typedef struct _Edi_Create
+{
+   char *path, *temp, *name;
+   char *url, *user, *email;
+
+   Edi_Create_Cb callback;
+   Ecore_Event_Handler *handler;
+
+   int filters;
+} Edi_Create;
+
 static Edi_Create *_edi_create_data;
 
 static const char *
diff --git a/src/lib/edi_create.h b/src/lib/edi_create.h
index 60ca6de..a7398d8 100644
--- a/src/lib/edi_create.h
+++ b/src/lib/edi_create.h
@@ -12,17 +12,6 @@ extern "C" {
 
 typedef void (*Edi_Create_Cb)(const char *path, Eina_Bool success);
 
-typedef struct _Edi_Create
-{
-   char *path, *temp, *name;
-   char *url, *user, *email;
-
-   Edi_Create_Cb callback;
-   Ecore_Event_Handler *handler;
-
-   int filters;
-} Edi_Create;
-
 /**
  * @brief Main builder management
  * @defgroup Creation

-- 


Reply via email to