diff options
author | Havoc Pennington <hp@redhat.com> | 2004-12-30 22:34:17 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2004-12-30 22:34:17 +0000 |
commit | daaee020dc47f7da7e2b29f130166cfa3a4acf32 (patch) | |
tree | 30f1561db6acdca00636385b917fda0bd872db74 /dbus/dbus-marshal-basic.h | |
parent | 7da3315f8cfc599d4b4ac2a21834550b0f10f344 (diff) |
- remove DICT type
- add SIGNATURE type
- fix max name len of 256, should be 255 so it fits in a byte if it's going to be a number
near 256
- generalize some of the recursive type marshaling code to share between arrays and variants
- just started on implementing variant
Diffstat (limited to 'dbus/dbus-marshal-basic.h')
-rw-r--r-- | dbus/dbus-marshal-basic.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dbus/dbus-marshal-basic.h b/dbus/dbus-marshal-basic.h index 968d22cc..df3794d1 100644 --- a/dbus/dbus-marshal-basic.h +++ b/dbus/dbus-marshal-basic.h @@ -79,12 +79,12 @@ #define DBUS_TYPE_STRING_AS_STRING "s" #define DBUS_TYPE_OBJECT_PATH ((int) 'o') #define DBUS_TYPE_OBJECT_PATH_AS_STRING "o" +#define DBUS_TYPE_SIGNATURE ((int) 'g') +#define DBUS_TYPE_SIGNATURE_AS_STRING "g" /* Compound types */ #define DBUS_TYPE_ARRAY ((int) 'a') #define DBUS_TYPE_ARRAY_AS_STRING "a" -#define DBUS_TYPE_DICT ((int) 'm') /* not parameterized; always map<string,variant> */ -#define DBUS_TYPE_DICT_AS_STRING "m" #define DBUS_TYPE_VARIANT ((int) 'v') #define DBUS_TYPE_VARIANT_AS_STRING "v" @@ -103,6 +103,8 @@ #define DBUS_STRUCT_END_CHAR ((int) ')') #define DBUS_STRUCT_END_CHAR_AS_STRING ")" +#define DBUS_MAXIMUM_SIGNATURE_LENGTH 255 + static const char * _hack_dbus_type_to_string (int type) { @@ -120,12 +122,14 @@ _hack_dbus_type_to_string (int type) return "double"; case DBUS_TYPE_STRING: return "string"; + case DBUS_TYPE_OBJECT_PATH: + return "object_path"; + case DBUS_TYPE_SIGNATURE: + return "signature"; case DBUS_TYPE_STRUCT: return "struct"; case DBUS_TYPE_ARRAY: return "array"; - case DBUS_TYPE_DICT: - return "dict"; case DBUS_TYPE_VARIANT: return "variant"; case DBUS_STRUCT_BEGIN_CHAR: |