summaryrefslogtreecommitdiff
path: root/gobject/gparamspecs.h
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2000-12-13 08:36:17 +0000
committerTim Janik <timj@src.gnome.org>2000-12-13 08:36:17 +0000
commit484f2ee732717dca83fbbb13c3addde474c62c85 (patch)
treea7a1158c04a183d97703c28cb19f3718488888f7 /gobject/gparamspecs.h
parent9edb08492d09a36caf389f639f45c8c1c8315f10 (diff)
downloadglib-484f2ee732717dca83fbbb13c3addde474c62c85.tar.gz
urg managed to forget this last time ;(
Wed Dec 13 09:31:26 2000 Tim Janik <timj@gtk.org> * gparamspecs.[hc]: add G_TYPE_PARAM_BOXED implementation. * gobject.[hc]: minor fixes.
Diffstat (limited to 'gobject/gparamspecs.h')
-rw-r--r--gobject/gparamspecs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gobject/gparamspecs.h b/gobject/gparamspecs.h
index 5fb0b0011..d70b1d26b 100644
--- a/gobject/gparamspecs.h
+++ b/gobject/gparamspecs.h
@@ -24,6 +24,7 @@
#include <gobject/gvalue.h>
#include <gobject/genums.h>
+#include <gobject/gboxed.h>
#include <gobject/gobject.h>
@@ -63,6 +64,8 @@ extern "C" {
#define G_PARAM_SPEC_POINTER(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_POINTER, GParamSpecPointer))
#define G_IS_PARAM_SPEC_CCALLBACK(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_CCALLBACK))
#define G_PARAM_SPEC_CCALLBACK(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_CCALLBACK, GParamSpecCCallback))
+#define G_IS_PARAM_SPEC_BOXED(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_BOXED))
+#define G_PARAM_SPEC_BOXED(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_BOXED, GParamSpecBoxed))
#define G_IS_PARAM_SPEC_OBJECT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_OBJECT))
#define G_PARAM_SPEC_OBJECT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_OBJECT, GParamSpecObject))
@@ -83,6 +86,7 @@ typedef struct _GParamSpecString GParamSpecString;
typedef struct _GParamSpecParam GParamSpecParam;
typedef struct _GParamSpecPointer GParamSpecPointer;
typedef struct _GParamSpecCCallback GParamSpecCCallback;
+typedef struct _GParamSpecBoxed GParamSpecBoxed;
typedef struct _GParamSpecObject GParamSpecObject;
struct _GParamSpecChar
{
@@ -195,6 +199,12 @@ struct _GParamSpecCCallback
{
GParamSpec parent_instance;
};
+struct _GParamSpecBoxed
+{
+ GParamSpec parent_instance;
+
+ GType boxed_type;
+};
struct _GParamSpecObject
{
GParamSpec parent_instance;
@@ -300,6 +310,11 @@ GParamSpec* g_param_spec_ccallback (const gchar *name,
const gchar *nick,
const gchar *blurb,
GParamFlags flags);
+GParamSpec* g_param_spec_boxed (const gchar *name,
+ const gchar *nick,
+ const gchar *blurb,
+ GType boxed_type,
+ GParamFlags flags);
GParamSpec* g_param_spec_object (const gchar *name,
const gchar *nick,
const gchar *blurb,