[discident-glib] Add include guards
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [discident-glib] Add include guards
- Date: Thu, 18 Mar 2010 20:59:58 +0000 (UTC)
commit 8a592232bee3e63c064e7749686176adab7470f4
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 18 20:59:35 2010 +0000
Add include guards
discident-glib/discident-glib-private.h | 9 +++++++++
discident-glib/discident-glib.h | 8 ++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/discident-glib/discident-glib-private.h b/discident-glib/discident-glib-private.h
index 9792d50..5b27577 100644
--- a/discident-glib/discident-glib-private.h
+++ b/discident-glib/discident-glib-private.h
@@ -20,8 +20,17 @@
*/
+#ifndef DISCIDENT_GLIB_PRIVATE_H
+#define DISCIDENT_GLIB_PRIVATE_H
+
+#include <glib.h>
+
#define QUERY_GTIN "http://discident.com/v1/%s/"
+G_BEGIN_DECLS
+
char *generate_hash (const char *str, gssize len);
char *discident_get_title_for_gtin (const char *gtin,
GError **error);
+
+#endif /* DISCIDENT_GLIB_PRIVATE_H */
diff --git a/discident-glib/discident-glib.h b/discident-glib/discident-glib.h
index ad9d343..91d5372 100644
--- a/discident-glib/discident-glib.h
+++ b/discident-glib/discident-glib.h
@@ -20,9 +20,14 @@
*/
+#ifndef DISCIDENT_GLIB_H
+#define DISCIDENT_GLIB_H
+
#include <glib.h>
#include <gio/gio.h>
+G_BEGIN_DECLS
+
char *discident_get_gtin_file (GFile *directory,
GError **error);
void discident_get_gtin_file_async (GFile *directory,
@@ -43,3 +48,6 @@ char *discident_get_title_file_finish (GFile *directory,
GAsyncResult *res,
GError **error);
+G_END_DECLS
+
+#endif /* DISCIDENT_GLIB_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]