[gnome-disk-utility/udisks2-port] Add missing files
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Add missing files
- Date: Thu, 10 Mar 2011 19:01:01 +0000 (UTC)
commit 3f0bdc16fd43701a5db8f9340b9fd7540e4d9f10
Author: David Zeuthen <davidz redhat com>
Date: Thu Mar 10 14:00:48 2011 -0500
Add missing files
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduenumtypes.c.template | 40 ++++++++++++++++++++++++++++++++
src/palimpsest/gduenumtypes.h.template | 24 +++++++++++++++++++
2 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gduenumtypes.c.template b/src/palimpsest/gduenumtypes.c.template
new file mode 100644
index 0000000..f81b710
--- /dev/null
+++ b/src/palimpsest/gduenumtypes.c.template
@@ -0,0 +1,40 @@
+/*** BEGIN file-header ***/
+#include "gduenums.h"
+#include "gduenumtypes.h"
+
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+/* enumerations from "@filename@" */
+/*** END file-production ***/
+
+/*** BEGIN value-header ***/
+GType
+ enum_name@_get_type (void)
+{
+ static volatile gsize g_define_type_id__volatile = 0;
+
+ if (g_once_init_enter (&g_define_type_id__volatile))
+ {
+ static const G Type@Value values[] = {
+/*** END value-header ***/
+
+/*** BEGIN value-production ***/
+ { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
+/*** END value-production ***/
+
+/*** BEGIN value-tail ***/
+ { 0, NULL, NULL }
+ };
+ GType g_define_type_id =
+ g_ type@_register_static (g_intern_static_string ("@EnumName@"), values);
+ g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
+ }
+
+ return g_define_type_id__volatile;
+}
+
+/*** END value-tail ***/
+
+/*** BEGIN file-tail ***/
+/*** END file-tail ***/
diff --git a/src/palimpsest/gduenumtypes.h.template b/src/palimpsest/gduenumtypes.h.template
new file mode 100644
index 0000000..5fd02a4
--- /dev/null
+++ b/src/palimpsest/gduenumtypes.h.template
@@ -0,0 +1,24 @@
+/*** BEGIN file-header ***/
+#ifndef __GDU_ENUM_TYPES_H__
+#define __GDU_ENUM_TYPES_H__
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+
+/* enumerations from "@filename@" */
+/*** END file-production ***/
+
+/*** BEGIN value-header ***/
+GType @enum_name _get_type (void) G_GNUC_CONST;
+#define @ENUMPREFIX _TYPE_@ENUMSHORT@ (@enum_name _get_type ())
+/*** END value-header ***/
+
+/*** BEGIN file-tail ***/
+G_END_DECLS
+
+#endif /* __GDU_ENUM_TYPES_H__ */
+/*** END file-tail ***/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]