[evolution-data-server/mmeeks-gdbus-import] rename everything to e*



commit ff309787d5991c1f63b58fc8bcb6cc4af9cdd6d0
Author: Michael Meeks <michael meeks novell com>
Date:   Fri Feb 26 10:37:45 2010 +0000

    rename everything to e*

 configure.ac                                       |    1 +
 libedbus/{gbitlock.c => ebitlock.c}                |    0
 libedbus/{gbitlock.h => ebitlock.h}                |    0
 libedbus/{gdbus-marshal.c => edbus-marshal.c}      |    0
 libedbus/{gdbus-marshal.h => edbus-marshal.h}      |    0
 .../{gdbus-marshal.list => edbus-marshal.list}     |    0
 libedbus/{gdbus.h => edbus.h}                      |    0
 libedbus/{gdbusconnection.c => edbusconnection.c}  |    0
 libedbus/{gdbusconnection.h => edbusconnection.h}  |    0
 libedbus/{gdbusconversion.c => edbusconversion.c}  |    0
 libedbus/{gdbusconversion.h => edbusconversion.h}  |    0
 libedbus/{gdbusenums.h => edbusenums.h}            |    0
 libedbus/{gdbusenumtypes.c => edbusenumtypes.c}    |    8 +-
 libedbus/edbusenumtypes.c.template                 |   39 +++++++++++++
 libedbus/{gdbusenumtypes.h => edbusenumtypes.h}    |   12 ++--
 libedbus/edbusenumtypes.h.template                 |   24 ++++++++
 libedbus/{gdbuserror.c => edbuserror.c}            |    0
 libedbus/{gdbuserror.h => edbuserror.h}            |    0
 .../{gdbusintrospection.c => edbusintrospection.c} |    0
 .../{gdbusintrospection.h => edbusintrospection.h} |    0
 ...smethodinvocation.c => edbusmethodinvocation.c} |    0
 ...smethodinvocation.h => edbusmethodinvocation.h} |    0
 libedbus/{gdbusnameowning.c => edbusnameowning.c}  |    0
 libedbus/{gdbusnameowning.h => edbusnameowning.h}  |    0
 .../{gdbusnamewatching.c => edbusnamewatching.c}   |    0
 .../{gdbusnamewatching.h => edbusnamewatching.h}   |    0
 libedbus/{gdbusprivate.c => edbusprivate.c}        |    0
 libedbus/{gdbusprivate.h => edbusprivate.h}        |    0
 libedbus/{gdbusproxy.c => edbusproxy.c}            |    0
 libedbus/{gdbusproxy.h => edbusproxy.h}            |    0
 .../{gdbusproxywatching.c => edbusproxywatching.c} |    0
 .../{gdbusproxywatching.h => edbusproxywatching.h} |    0
 libedbus/{gdbusserver.c => edbusserver.c}          |    0
 libedbus/{gdbusserver.h => edbusserver.h}          |    0
 libedbus/{gdbustypes.h => edbustypes.h}            |    0
 libedbus/{gvariant-core.c => evariant-core.c}      |    0
 .../{gvariant-printer.c => evariant-printer.c}     |    0
 .../{gvariant-private.h => evariant-private.h}     |    0
 ...gvariant-serialiser.c => evariant-serialiser.c} |    0
 ...gvariant-serialiser.h => evariant-serialiser.h} |    0
 libedbus/{gvariant-util.c => evariant-util.c}      |    0
 libedbus/{gvariant-valist.c => evariant-valist.c}  |    0
 libedbus/{gvariant.h => evariant.h}                |    0
 libedbus/{gvarianttype.c => evarianttype.c}        |    0
 libedbus/{gvarianttype.h => evarianttype.h}        |    0
 .../{gvarianttypeinfo.c => evarianttypeinfo.c}     |    0
 .../{gvarianttypeinfo.h => evarianttypeinfo.h}     |    0
 libedbus/tests/Makefile.decl                       |   59 ++++++++++++++++++++
 48 files changed, 133 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ce64a0f..ff111c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1495,6 +1495,7 @@ camel/tests/stream/Makefile
 camel/camel.pc
 camel/camel-provider.pc
 libedbus/Makefile
+libedbus/tests/Makefile
 libebackend/Makefile
 libebackend/libebackend.pc
 libedataserver/Makefile
diff --git a/libedbus/gbitlock.c b/libedbus/ebitlock.c
similarity index 100%
rename from libedbus/gbitlock.c
rename to libedbus/ebitlock.c
diff --git a/libedbus/gbitlock.h b/libedbus/ebitlock.h
similarity index 100%
rename from libedbus/gbitlock.h
rename to libedbus/ebitlock.h
diff --git a/libedbus/gdbus-marshal.c b/libedbus/edbus-marshal.c
similarity index 100%
rename from libedbus/gdbus-marshal.c
rename to libedbus/edbus-marshal.c
diff --git a/libedbus/gdbus-marshal.h b/libedbus/edbus-marshal.h
similarity index 100%
rename from libedbus/gdbus-marshal.h
rename to libedbus/edbus-marshal.h
diff --git a/libedbus/gdbus-marshal.list b/libedbus/edbus-marshal.list
similarity index 100%
rename from libedbus/gdbus-marshal.list
rename to libedbus/edbus-marshal.list
diff --git a/libedbus/gdbus.h b/libedbus/edbus.h
similarity index 100%
rename from libedbus/gdbus.h
rename to libedbus/edbus.h
diff --git a/libedbus/gdbusconnection.c b/libedbus/edbusconnection.c
similarity index 100%
rename from libedbus/gdbusconnection.c
rename to libedbus/edbusconnection.c
diff --git a/libedbus/gdbusconnection.h b/libedbus/edbusconnection.h
similarity index 100%
rename from libedbus/gdbusconnection.h
rename to libedbus/edbusconnection.h
diff --git a/libedbus/gdbusconversion.c b/libedbus/edbusconversion.c
similarity index 100%
rename from libedbus/gdbusconversion.c
rename to libedbus/edbusconversion.c
diff --git a/libedbus/gdbusconversion.h b/libedbus/edbusconversion.h
similarity index 100%
rename from libedbus/gdbusconversion.h
rename to libedbus/edbusconversion.h
diff --git a/libedbus/gdbusenums.h b/libedbus/edbusenums.h
similarity index 100%
rename from libedbus/gdbusenums.h
rename to libedbus/edbusenums.h
diff --git a/libedbus/gdbusenumtypes.c b/libedbus/edbusenumtypes.c
similarity index 98%
rename from libedbus/gdbusenumtypes.c
rename to libedbus/edbusenumtypes.c
index e20109a..39fb906 100644
--- a/libedbus/gdbusenumtypes.c
+++ b/libedbus/edbusenumtypes.c
@@ -3,7 +3,7 @@
 
 #include <gdbus.h>
 
-/* enumerations from "gvariant.h" */
+/* enumerations from "evariant.h" */
 GType
 struct_struct_get_type (void)
 {
@@ -84,9 +84,9 @@ e_variant_flags_get_type (void)
   return g_define_type_id__volatile;
 }
 
-/* enumerations from "gdbusenums.h" */
+/* enumerations from "edbusenums.h" */
 GType
-e_bus_type_get_type (void)
+g_bus_type_get_type (void)
 {
   static volatile gsize g_define_type_id__volatile = 0;
 
@@ -108,7 +108,7 @@ e_bus_type_get_type (void)
 }
 
 GType
-e_bus_name_owner_flags_get_type (void)
+g_bus_name_owner_flags_get_type (void)
 {
   static volatile gsize g_define_type_id__volatile = 0;
 
diff --git a/libedbus/edbusenumtypes.c.template b/libedbus/edbusenumtypes.c.template
new file mode 100644
index 0000000..317fa22
--- /dev/null
+++ b/libedbus/edbusenumtypes.c.template
@@ -0,0 +1,39 @@
+/*** BEGIN file-header ***/
+#include <gdbus.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/libedbus/gdbusenumtypes.h b/libedbus/edbusenumtypes.h
similarity index 78%
rename from libedbus/gdbusenumtypes.h
rename to libedbus/edbusenumtypes.h
index ef037a0..03e5368 100644
--- a/libedbus/gdbusenumtypes.h
+++ b/libedbus/edbusenumtypes.h
@@ -8,7 +8,7 @@
 
 G_BEGIN_DECLS
 
-/* enumerations from "gvariant.h" */
+/* enumerations from "evariant.h" */
 GType struct_struct_get_type (void) G_GNUC_CONST;
 #define STRUCT_TYPE_STRUCT (struct_struct_get_type ())
 GType e_variant_builder_error_get_type (void) G_GNUC_CONST;
@@ -16,11 +16,11 @@ GType e_variant_builder_error_get_type (void) G_GNUC_CONST;
 GType e_variant_flags_get_type (void) G_GNUC_CONST;
 #define E_TYPE_VARIANT_FLAGS (e_variant_flags_get_type ())
 
-/* enumerations from "gdbusenums.h" */
-GType e_bus_type_get_type (void) G_GNUC_CONST;
-#define G_TYPE_BUS_TYPE (e_bus_type_get_type ())
-GType e_bus_name_owner_flags_get_type (void) G_GNUC_CONST;
-#define G_TYPE_BUS_NAME_OWNER_FLAGS (e_bus_name_owner_flags_get_type ())
+/* enumerations from "edbusenums.h" */
+GType g_bus_type_get_type (void) G_GNUC_CONST;
+#define G_TYPE_BUS_TYPE (g_bus_type_get_type ())
+GType g_bus_name_owner_flags_get_type (void) G_GNUC_CONST;
+#define G_TYPE_BUS_NAME_OWNER_FLAGS (g_bus_name_owner_flags_get_type ())
 GType e_dbus_proxy_flags_get_type (void) G_GNUC_CONST;
 #define E_TYPE_DBUS_PROXY_FLAGS (e_dbus_proxy_flags_get_type ())
 GType e_dbus_error_get_type (void) G_GNUC_CONST;
diff --git a/libedbus/edbusenumtypes.h.template b/libedbus/edbusenumtypes.h.template
new file mode 100644
index 0000000..b905a8f
--- /dev/null
+++ b/libedbus/edbusenumtypes.h.template
@@ -0,0 +1,24 @@
+/*** BEGIN file-header ***/
+#ifndef __G_DBUS_ENUM_TYPES_H__
+#define __G_DBUS_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 /* __G_DBUS_ENUM_TYPES_H__ */
+/*** END file-tail ***/
diff --git a/libedbus/gdbuserror.c b/libedbus/edbuserror.c
similarity index 100%
rename from libedbus/gdbuserror.c
rename to libedbus/edbuserror.c
diff --git a/libedbus/gdbuserror.h b/libedbus/edbuserror.h
similarity index 100%
rename from libedbus/gdbuserror.h
rename to libedbus/edbuserror.h
diff --git a/libedbus/gdbusintrospection.c b/libedbus/edbusintrospection.c
similarity index 100%
rename from libedbus/gdbusintrospection.c
rename to libedbus/edbusintrospection.c
diff --git a/libedbus/gdbusintrospection.h b/libedbus/edbusintrospection.h
similarity index 100%
rename from libedbus/gdbusintrospection.h
rename to libedbus/edbusintrospection.h
diff --git a/libedbus/gdbusmethodinvocation.c b/libedbus/edbusmethodinvocation.c
similarity index 100%
rename from libedbus/gdbusmethodinvocation.c
rename to libedbus/edbusmethodinvocation.c
diff --git a/libedbus/gdbusmethodinvocation.h b/libedbus/edbusmethodinvocation.h
similarity index 100%
rename from libedbus/gdbusmethodinvocation.h
rename to libedbus/edbusmethodinvocation.h
diff --git a/libedbus/gdbusnameowning.c b/libedbus/edbusnameowning.c
similarity index 100%
rename from libedbus/gdbusnameowning.c
rename to libedbus/edbusnameowning.c
diff --git a/libedbus/gdbusnameowning.h b/libedbus/edbusnameowning.h
similarity index 100%
rename from libedbus/gdbusnameowning.h
rename to libedbus/edbusnameowning.h
diff --git a/libedbus/gdbusnamewatching.c b/libedbus/edbusnamewatching.c
similarity index 100%
rename from libedbus/gdbusnamewatching.c
rename to libedbus/edbusnamewatching.c
diff --git a/libedbus/gdbusnamewatching.h b/libedbus/edbusnamewatching.h
similarity index 100%
rename from libedbus/gdbusnamewatching.h
rename to libedbus/edbusnamewatching.h
diff --git a/libedbus/gdbusprivate.c b/libedbus/edbusprivate.c
similarity index 100%
rename from libedbus/gdbusprivate.c
rename to libedbus/edbusprivate.c
diff --git a/libedbus/gdbusprivate.h b/libedbus/edbusprivate.h
similarity index 100%
rename from libedbus/gdbusprivate.h
rename to libedbus/edbusprivate.h
diff --git a/libedbus/gdbusproxy.c b/libedbus/edbusproxy.c
similarity index 100%
rename from libedbus/gdbusproxy.c
rename to libedbus/edbusproxy.c
diff --git a/libedbus/gdbusproxy.h b/libedbus/edbusproxy.h
similarity index 100%
rename from libedbus/gdbusproxy.h
rename to libedbus/edbusproxy.h
diff --git a/libedbus/gdbusproxywatching.c b/libedbus/edbusproxywatching.c
similarity index 100%
rename from libedbus/gdbusproxywatching.c
rename to libedbus/edbusproxywatching.c
diff --git a/libedbus/gdbusproxywatching.h b/libedbus/edbusproxywatching.h
similarity index 100%
rename from libedbus/gdbusproxywatching.h
rename to libedbus/edbusproxywatching.h
diff --git a/libedbus/gdbusserver.c b/libedbus/edbusserver.c
similarity index 100%
rename from libedbus/gdbusserver.c
rename to libedbus/edbusserver.c
diff --git a/libedbus/gdbusserver.h b/libedbus/edbusserver.h
similarity index 100%
rename from libedbus/gdbusserver.h
rename to libedbus/edbusserver.h
diff --git a/libedbus/gdbustypes.h b/libedbus/edbustypes.h
similarity index 100%
rename from libedbus/gdbustypes.h
rename to libedbus/edbustypes.h
diff --git a/libedbus/gvariant-core.c b/libedbus/evariant-core.c
similarity index 100%
rename from libedbus/gvariant-core.c
rename to libedbus/evariant-core.c
diff --git a/libedbus/gvariant-printer.c b/libedbus/evariant-printer.c
similarity index 100%
rename from libedbus/gvariant-printer.c
rename to libedbus/evariant-printer.c
diff --git a/libedbus/gvariant-private.h b/libedbus/evariant-private.h
similarity index 100%
rename from libedbus/gvariant-private.h
rename to libedbus/evariant-private.h
diff --git a/libedbus/gvariant-serialiser.c b/libedbus/evariant-serialiser.c
similarity index 100%
rename from libedbus/gvariant-serialiser.c
rename to libedbus/evariant-serialiser.c
diff --git a/libedbus/gvariant-serialiser.h b/libedbus/evariant-serialiser.h
similarity index 100%
rename from libedbus/gvariant-serialiser.h
rename to libedbus/evariant-serialiser.h
diff --git a/libedbus/gvariant-util.c b/libedbus/evariant-util.c
similarity index 100%
rename from libedbus/gvariant-util.c
rename to libedbus/evariant-util.c
diff --git a/libedbus/gvariant-valist.c b/libedbus/evariant-valist.c
similarity index 100%
rename from libedbus/gvariant-valist.c
rename to libedbus/evariant-valist.c
diff --git a/libedbus/gvariant.h b/libedbus/evariant.h
similarity index 100%
rename from libedbus/gvariant.h
rename to libedbus/evariant.h
diff --git a/libedbus/gvarianttype.c b/libedbus/evarianttype.c
similarity index 100%
rename from libedbus/gvarianttype.c
rename to libedbus/evarianttype.c
diff --git a/libedbus/gvarianttype.h b/libedbus/evarianttype.h
similarity index 100%
rename from libedbus/gvarianttype.h
rename to libedbus/evarianttype.h
diff --git a/libedbus/gvarianttypeinfo.c b/libedbus/evarianttypeinfo.c
similarity index 100%
rename from libedbus/gvarianttypeinfo.c
rename to libedbus/evarianttypeinfo.c
diff --git a/libedbus/gvarianttypeinfo.h b/libedbus/evarianttypeinfo.h
similarity index 100%
rename from libedbus/gvarianttypeinfo.h
rename to libedbus/evarianttypeinfo.h
diff --git a/libedbus/tests/Makefile.decl b/libedbus/tests/Makefile.decl
new file mode 100644
index 0000000..1d23a64
--- /dev/null
+++ b/libedbus/tests/Makefile.decl
@@ -0,0 +1,59 @@
+# GLIB - Library of useful C routines
+
+GTESTER = gtester 			# for non-GLIB packages
+#GTESTER = $(top_builddir)/glib/gtester			# for the GLIB package
+#GTESTER_REPORT = $(top_builddir)/glib/gtester-report	# for the GLIB package
+
+# initialize variables for unconditional += appending
+EXTRA_DIST =
+TEST_PROGS =
+
+### testing rules
+
+# test: run all tests in cwd and subdirs
+test:	${TEST_PROGS}
+	@test -z "${TEST_PROGS}" || ${GTESTER} --verbose ${TEST_PROGS}
+	@ for subdir in $(SUBDIRS) . ; do \
+	    test "$$subdir" = "." -o "$$subdir" = "po" || \
+	    ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
+	  done
+
+# test-report: run tests in subdirs and generate report
+# perf-report: run tests in subdirs with -m perf and generate report
+# full-report: like test-report: with -m perf and -m slow
+test-report perf-report full-report:	${TEST_PROGS}
+	@test -z "${TEST_PROGS}" || { \
+	  case $@ in \
+	  test-report) test_options="-k";; \
+	  perf-report) test_options="-k -m=perf";; \
+	  full-report) test_options="-k -m=perf -m=slow";; \
+	  esac ; \
+	  if test -z "$$GTESTER_LOGDIR" ; then	\
+	    ${GTESTER} --verbose $$test_options -o test-report.xml ${TEST_PROGS} ; \
+	  elif test -n "${TEST_PROGS}" ; then \
+	    ${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \
+	  fi ; \
+	}
+	@ ignore_logdir=true ; \
+	  if test -z "$$GTESTER_LOGDIR" ; then \
+	    GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \
+	    ignore_logdir=false ; \
+	  fi ; \
+	  for subdir in $(SUBDIRS) . ; do \
+	    test "$$subdir" = "." -o "$$subdir" = "po" || \
+	    ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
+	  done ; \
+	  $$ignore_logdir || { \
+	    echo '<?xml version="1.0"?>' > $  xml ; \
+	    echo '<report-collection>'  >> $  xml ; \
+	    for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
+	      sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $  xml ; \
+	    done ; \
+	    echo >> $  xml ; \
+	    echo '</report-collection>' >> $  xml ; \
+	    rm -rf "$$GTESTER_LOGDIR"/ ; \
+	    ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $  xml >$  html ; \
+	  }
+.PHONY: test test-report perf-report full-report
+# run make test as part of make check
+check-local: test



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