diff options
author | Evan Nemerson <evan@coeus-group.com> | 2012-04-30 23:01:36 -0700 |
---|---|---|
committer | Evan Nemerson <evan@coeus-group.com> | 2012-05-03 18:42:34 -0700 |
commit | b449fd9067cc4267057ef751032dcf0225e6e51d (patch) | |
tree | 5b1716e602cb5c68bd5fdc0df7d02e48fba129e7 | |
parent | 90fc96bd7e3169b50a7a6ee511cdcddd2d82d013 (diff) |
rest-param: register RestParam as boxed type.
-rw-r--r-- | rest/rest-param.c | 2 | ||||
-rw-r--r-- | rest/rest-param.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/rest/rest-param.c b/rest/rest-param.c index 29b209e..7a4f25d 100644 --- a/rest/rest-param.c +++ b/rest/rest-param.c @@ -52,6 +52,8 @@ struct _RestParam { GDestroyNotify owner_dnotify; }; +G_DEFINE_BOXED_TYPE (RestParam, rest_param, rest_param_ref, rest_param_unref) + /** * rest_param_new_full: * @name: the parameter name diff --git a/rest/rest-param.h b/rest/rest-param.h index 49bf0e1..8e72f97 100644 --- a/rest/rest-param.h +++ b/rest/rest-param.h @@ -30,6 +30,8 @@ G_BEGIN_DECLS +#define REST_TYPE_PARAM (gtk_css_section_get_type ()) + /** * RestMemoryUse: * @REST_MEMORY_STATIC: the memory block can be assumed to always exist for the @@ -47,6 +49,8 @@ typedef enum { typedef struct _RestParam RestParam; +GType rest_param_get_type (void) G_GNUC_CONST; + RestParam *rest_param_new_string (const char *name, RestMemoryUse use, const char *string); |