summaryrefslogtreecommitdiff
path: root/gobject/gparamspecs.h
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2001-03-06 00:29:46 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-03-06 00:29:46 +0000
commitdf417ac379e3e639cc708e3191b23ee827e0ef72 (patch)
tree017b8f957f37610ac6365303fb87bc78b48a0190 /gobject/gparamspecs.h
parent0504a005ebcf0382cf57e37bd8b09fc8afcd35fa (diff)
downloadglib-df417ac379e3e639cc708e3191b23ee827e0ef72.tar.gz
add a new param spec to handle interfaces.
Mon Mar 5 15:26:30 2001 Jonathan Blandford <jrb@redhat.com> * gparamspecs.c (g_param_spec_interface): add a new param spec to handle interfaces.
Diffstat (limited to 'gobject/gparamspecs.h')
-rw-r--r--gobject/gparamspecs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gobject/gparamspecs.h b/gobject/gparamspecs.h
index a4550639e..a3dc72394 100644
--- a/gobject/gparamspecs.h
+++ b/gobject/gparamspecs.h
@@ -68,6 +68,8 @@ extern "C" {
#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))
+#define G_IS_PARAM_SPEC_INTERFACE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_INTERFACE))
+#define G_PARAM_SPEC_INTERFACE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_INTERFACE, GParamSpecInterface))
/* --- typedefs & structures --- */
@@ -88,6 +90,7 @@ typedef struct _GParamSpecPointer GParamSpecPointer;
typedef struct _GParamSpecCCallback GParamSpecCCallback;
typedef struct _GParamSpecBoxed GParamSpecBoxed;
typedef struct _GParamSpecObject GParamSpecObject;
+typedef struct _GParamSpecInterface GParamSpecInterface;
struct _GParamSpecChar
{
GParamSpec parent_instance;
@@ -205,6 +208,10 @@ struct _GParamSpecObject
{
GParamSpec parent_instance;
};
+struct _GParamSpecInterface
+{
+ GParamSpec parent_instance;
+};
/* --- GParamSpec prototypes --- */
@@ -314,6 +321,11 @@ GParamSpec* g_param_spec_object (const gchar *name,
const gchar *blurb,
GType object_type,
GParamFlags flags);
+GParamSpec* g_param_spec_interface (const gchar *name,
+ const gchar *nick,
+ const gchar *blurb,
+ GType object_type,
+ GParamFlags flags);
#ifdef __cplusplus