diff options
| author | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-10-17 10:52:43 +0100 | 
|---|---|---|
| committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-10-17 10:56:41 +0100 | 
| commit | c2429c07107edd6acf95e80b82d968771c669c35 (patch) | |
| tree | 3390fd1ef0cd3223c1272d041483b02d820f5c16 /json-glib/json-gobject.h | |
| parent | f0dad4508b63359123926f699a66aead9c782ce1 (diff) | |
| download | json-glib-c2429c07107edd6acf95e80b82d968771c669c35.tar.gz | |
Use the new GLib deprecation scheme
Instead of using a defined symbol to remove the deprecated functions
from the library, we should use compiler warnings.
Diffstat (limited to 'json-glib/json-gobject.h')
| -rw-r--r-- | json-glib/json-gobject.h | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/json-glib/json-gobject.h b/json-glib/json-gobject.h index 2e06d88..791fc9b 100644 --- a/json-glib/json-gobject.h +++ b/json-glib/json-gobject.h @@ -168,12 +168,14 @@ gchar *   json_gobject_to_data                 (GObject                 *gobject                                                  gsize                   *length);  #ifndef JSON_DISABLE_DEPRECATED +JSON_DEPRECATED_FOR(json_gobject_from_data)  GObject * json_construct_gobject               (GType                    gtype,                                                  const gchar             *data,                                                  gsize                    length, -                                                GError                 **error) G_GNUC_DEPRECATED; +                                                GError                 **error); +JSON_DEPRECATED_FOR(json_gobject_to_data)  gchar *   json_serialize_gobject               (GObject                 *gobject, -                                                gsize                   *length) G_GNUC_MALLOC G_GNUC_DEPRECATED; +                                                gsize                   *length) G_GNUC_MALLOC;  #endif /* JSON_DISABLE_DEPRECATED */ | 
