summaryrefslogtreecommitdiff
path: root/json-glib/json-parser.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2009-10-28 16:23:39 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2009-10-28 16:23:39 +0000
commit8f8ce87730fc0bf102a707e84c4f6106b215cfab (patch)
tree974c53123f5b9873e85c976a98185643120f2563 /json-glib/json-parser.c
parent00b4d200849e232cd904d23d3593d6f95252b483 (diff)
downloadjson-glib-8f8ce87730fc0bf102a707e84c4f6106b215cfab.tar.gz
gobject: Use from/to data naming convention
Be more GLib-like, and use <namespace>_<type>_from_data() <namespace>_<type>_to_data() Instead of the homebrew "construct" and "serialize", when dealing with string buffers. This means: • adding json_gobject_from_data() to deprecate json_construct_gobject() • adding json_gobject_to_data() to deprecate json_serialize_gobject() The json_construct_gobject() function also contains a mistake: it uses gsize with the special value of -1 meaning "slurp the whole string", but gsize is an unsigned type. The newly added json_gobject_from_data() correctly uses gssize instead.
Diffstat (limited to 'json-glib/json-parser.c')
0 files changed, 0 insertions, 0 deletions