diff options
author | Havoc Pennington <hp@redhat.com> | 2004-06-01 03:02:26 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2004-06-01 03:02:26 +0000 |
commit | e12863aae85dc131fcdd552edd6b32bd15702e12 (patch) | |
tree | ed7c53b2388c7136069043f3fa72f64927c95b6f /glib/dbus-gutils.c | |
parent | 23e9d3d5040f51870f212ea70a94c9913c90e66b (diff) |
2004-05-31 Havoc Pennington <hp@redhat.com>
* glib/dbus-gidl.c (method_info_add_arg): keep args sorted with
"in" before "out"
* glib/dbus-gobject.c (dbus_type_to_string): move to dbus-gutils.c
* glib/dbus-glib-tool.c (main): set up to have a --self-test
option that runs the tests, and start filling in some code
including for starters just dumping the interfaces to stdout
* glib/Makefile.am (INCLUDES): define DBUS_LOCALEDIR
* test/data/valid-introspection-files/lots-of-types.xml: test of
an example introspection file
* glib/dbus-gparser.c (parser_check_doctype): doctype should be
"node" (I think...)
Diffstat (limited to 'glib/dbus-gutils.c')
-rw-r--r-- | glib/dbus-gutils.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/glib/dbus-gutils.c b/glib/dbus-gutils.c index eeaa7f94..8c4d3d09 100644 --- a/glib/dbus-gutils.c +++ b/glib/dbus-gutils.c @@ -77,6 +77,40 @@ _dbus_gutils_split_path (const char *path) return split; } +const char * +_dbus_gutils_type_to_string (int type) +{ + switch (type) + { + case DBUS_TYPE_INVALID: + return "invalid"; + case DBUS_TYPE_NIL: + return "nil"; + case DBUS_TYPE_BOOLEAN: + return "boolean"; + case DBUS_TYPE_INT32: + return "int32"; + case DBUS_TYPE_UINT32: + return "uint32"; + case DBUS_TYPE_DOUBLE: + return "double"; + case DBUS_TYPE_STRING: + return "string"; + case DBUS_TYPE_CUSTOM: + return "custom"; + case DBUS_TYPE_ARRAY: + return "array"; + case DBUS_TYPE_DICT: + return "dict"; + case DBUS_TYPE_INT64: + return "int64"; + case DBUS_TYPE_UINT64: + return "uint64"; + default: + return "unknown"; + } +} + #ifdef DBUS_BUILD_TESTS /** |