[discident-glib] ean: Move struct to private header



commit 36e495823ca63b3dc1fe7f47faa76bf7b9322c9a
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Apr 7 00:07:51 2013 +0200

    ean: Move struct to private header

 discident-glib/Makefile.am                  |    3 +-
 discident-glib/discident-ean-glib.c         |    8 +------
 discident-glib/discident-ean-private-glib.h |   28 +++++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 8 deletions(-)
---
diff --git a/discident-glib/Makefile.am b/discident-glib/Makefile.am
index 2ed8d08..04ddf36 100644
--- a/discident-glib/Makefile.am
+++ b/discident-glib/Makefile.am
@@ -15,7 +15,8 @@ public_files =                                                \
 
 libdiscident_glib_la_SOURCES =                         \
        $(public_files)                                 \
-       discident-glib-private.h
+       discident-glib-private.h                        \
+       discident-ean-private-glib.h
 
 libdiscident_glib_la_LIBADD = $(DISCIDENT_LIBS)
 
diff --git a/discident-glib/discident-ean-glib.c b/discident-glib/discident-ean-glib.c
index f590067..bb89857 100644
--- a/discident-glib/discident-ean-glib.c
+++ b/discident-glib/discident-ean-glib.c
@@ -29,6 +29,7 @@
 
 #include "discident-ean-glib.h"
 #include "discident-error.h"
+#include "discident-ean-private-glib.h"
 
 /**
  * SECTION:discident-ean-glib
@@ -44,13 +45,6 @@
 #define SEARCH_URL "http://%s/searchresults.ashx";
 #define SEARCH_QUERY 
"barcode=%s&btype=EAN13&cachedimages=ebay_small,googlelogo_24,thefindlogo&currency=GBP&locale=en_GB&udid=" 
APPID "&v=" EMULATED_VERSION
 
-struct DiscidentEanPrivate {
-       char *server;
-       gboolean enabled;
-       char *message;
-       gboolean login_done;
-};
-
 G_DEFINE_TYPE (DiscidentEan, discident_ean, G_TYPE_OBJECT)
 
 static void
diff --git a/discident-glib/discident-ean-private-glib.h b/discident-glib/discident-ean-private-glib.h
new file mode 100644
index 0000000..796046c
--- /dev/null
+++ b/discident-glib/discident-ean-private-glib.h
@@ -0,0 +1,28 @@
+/*
+   Copyright (C) 2010 Bastien Nocera
+
+   The Gnome Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The Gnome Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the Gnome Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02110-1301  USA.
+
+   Authors: Bastien Nocera <hadess hadess net>
+
+ */
+
+struct DiscidentEanPrivate {
+       char *server;
+       gboolean enabled;
+       char *message;
+       gboolean login_done;
+};


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]