[librest] rest-param: register RestParam as boxed type.



commit b449fd9067cc4267057ef751032dcf0225e6e51d
Author: Evan Nemerson <evan coeus-group com>
Date:   Mon Apr 30 23:01:36 2012 -0700

    rest-param: register RestParam as boxed type.

 rest/rest-param.c |    2 ++
 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]