[grilo] core: Added grl-definitions.h



commit 6714a2eddea334c4ec6537ed6c9fee301613a26a
Author: Iago Toral Quiroga <itoral igalia com>
Date:   Thu Jan 13 17:51:56 2011 +0100

    core: Added grl-definitions.h
    
    This header file will contain some system-wise definitions. At the moment
    only GRL_PADDING used to pad public structures in Grilo.

 src/Makefile.am       |    3 ++-
 src/grilo.h           |    1 +
 src/grl-definitions.h |   34 ++++++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index a2677b7..eec4b7d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -54,7 +54,8 @@ lib GRL_NAME@inc_HEADERS =	\
 	grl-media-source.h	\
 	grl-log.h 		\
 	grl-multiple.h		\
-	grl-util.h
+	grl-util.h		\
+	grl-definitions.h
 
 data_h_headers =		\
 	data/grl-data.h		\
diff --git a/src/grilo.h b/src/grilo.h
index 5db015e..35af856 100644
--- a/src/grilo.h
+++ b/src/grilo.h
@@ -43,6 +43,7 @@
 #include <grl-config.h>
 #include <grl-multiple.h>
 #include <grl-util.h>
+#include <grl-definitions.h>
 
 #undef _GRILO_H_INSIDE_
 
diff --git a/src/grl-definitions.h b/src/grl-definitions.h
new file mode 100644
index 0000000..80910f5
--- /dev/null
+++ b/src/grl-definitions.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2011 Igalia S.L.
+ *
+ * Contact: Iago Toral Quiroga <itoral igalia com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION)
+#error "Only <grilo.h> can be included directly."
+#endif
+
+#ifndef _GRL_DEFINITIONS_H_
+#define _GRL_DEFINITIONS_H_
+
+/* Used to pad public structres in order to avoid ABI
+   breakage when adding new API */
+#define GRL_PADDING 16
+
+#endif



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