[evolution-data-server] Add EDBusServerExitCode enum type.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Add EDBusServerExitCode enum type.
- Date: Wed, 11 Apr 2012 01:00:15 +0000 (UTC)
commit f6e64518e7541ec0fd540a7b627811edb02d7334
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Apr 10 19:26:57 2012 -0400
Add EDBusServerExitCode enum type.
.../reference/libebackend/libebackend-sections.txt | 3 ++
libebackend/Makefile.am | 12 ++++++
libebackend/e-backend-enums.h | 38 ++++++++++++++++++++
3 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/libebackend/libebackend-sections.txt b/docs/reference/libebackend/libebackend-sections.txt
index c54cdbc..01043b3 100644
--- a/docs/reference/libebackend/libebackend-sections.txt
+++ b/docs/reference/libebackend/libebackend-sections.txt
@@ -61,6 +61,7 @@ e_data_factory_get_type
<FILE>e-dbus-server</FILE>
<TITLE>EDBusServer</TITLE>
EDBusServer
+EDBusServerExitCode
e_dbus_server_run
e_dbus_server_quit
e_dbus_server_hold
@@ -73,10 +74,12 @@ E_TYPE_DBUS_SERVER
E_DBUS_SERVER_CLASS
E_IS_DBUS_SERVER_CLASS
E_DBUS_SERVER_GET_CLASS
+E_TYPE_DBUS_SERVER_EXIT_CODE
EDBusServerClass
<SUBSECTION Private>
EDBusServerPrivate
e_dbus_server_get_type
+e_dbus_server_exit_code_get_type
</SECTION>
<SECTION>
diff --git a/libebackend/Makefile.am b/libebackend/Makefile.am
index 3e2de98..895818e 100644
--- a/libebackend/Makefile.am
+++ b/libebackend/Makefile.am
@@ -1,3 +1,13 @@
+include $(top_srcdir)/glib-gen.mak
+glib_enum_headers=e-backend-enums.h
+glib_enum_output=e-backend-enumtypes
+glib_enum_define=E
+glib_enum_prefix=e
+
+ENUM_GENERATED = e-backend-enumtypes.h e-backend-enumtypes.c
+
+BUILT_SOURCES = $(ENUM_GENERATED)
+
lib_LTLIBRARIES = libebackend-1.2.la
libebackend_1_2_la_CPPFLAGS = \
@@ -12,6 +22,7 @@ libebackend_1_2_la_CPPFLAGS = \
$(NULL)
libebackend_1_2_la_SOURCES = \
+ $(BUILT_SOURCES) \
e-backend.c \
e-backend-factory.c \
e-data-factory.c \
@@ -41,6 +52,7 @@ libebackendincludedir = $(privincludedir)/libebackend
libebackendinclude_HEADERS = \
e-backend.h \
+ e-backend-enums.h \
e-backend-factory.h \
e-data-factory.h \
e-dbus-server.h \
diff --git a/libebackend/e-backend-enums.h b/libebackend/e-backend-enums.h
new file mode 100644
index 0000000..40c92a7
--- /dev/null
+++ b/libebackend/e-backend-enums.h
@@ -0,0 +1,38 @@
+/*
+ * e-backend-enums.h
+ *
+ * This program 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; either
+ * version 2 of the License, or (at your option) version 3.
+ *
+ * This program 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 the program; if not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+#ifndef E_BACKEND_ENUMS_H
+#define E_BACKEND_ENUMS_H
+
+/**
+ * EDBusServerExitCode:
+ * @E_DBUS_SERVER_EXIT_NONE:
+ * The server's run state is unchanged.
+ * @E_DBUS_SERVER_EXIT_NORMAL:
+ * Normal termination. The process itself may now terminate.
+ *
+ * Exit codes submitted to e_dbus_server_quit() and returned by
+ * e_dbus_server_run().
+ **/
+typedef enum {
+ E_DBUS_SERVER_EXIT_NONE,
+ E_DBUS_SERVER_EXIT_NORMAL
+} EDBusServerExitCode;
+
+#endif /* E_BACKEND_ENUMS_H */
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]