summaryrefslogtreecommitdiff
path: root/gobject/gparamspecs.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-10-03 20:14:21 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-10-03 20:14:21 +0000
commit791bfecb790b42763e8f5e955e1c882e5f91edaf (patch)
tree5fc08a6d83d24758fb5720db68e0c34186cd589b /gobject/gparamspecs.h
parent00f672eac5539833c5fb73ad1e338e4383333f74 (diff)
downloadglib-791bfecb790b42763e8f5e955e1c882e5f91edaf.tar.gz
Add support for G_TYPE_INT64 and storing it in GValue (Patch from Mathieu
Wed Oct 3 16:02:24 2001 Owen Taylor <otaylor@redhat.com> * glib-genmarshal.c gparamspecs.[ch] gvalue.h gobject/gvaluetypes.[ch]: Add support for G_TYPE_INT64 and storing it in GValue (Patch from Mathieu Lacage, #59254.)
Diffstat (limited to 'gobject/gparamspecs.h')
-rw-r--r--gobject/gparamspecs.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/gobject/gparamspecs.h b/gobject/gparamspecs.h
index 12dd120a6..ba480539e 100644
--- a/gobject/gparamspecs.h
+++ b/gobject/gparamspecs.h
@@ -90,6 +90,11 @@ typedef struct _GParamSpecPointer GParamSpecPointer;
typedef struct _GParamSpecValueArray GParamSpecValueArray;
typedef struct _GParamSpecClosure GParamSpecClosure;
typedef struct _GParamSpecObject GParamSpecObject;
+#ifdef G_HAVE_GINT64
+typedef struct _GParamSpecInt64 GParamSpecInt64;
+typedef struct _GParamSpecUInt64 GParamSpecUInt64;
+#endif /* G_HAVE_GINT64 */
+
struct _GParamSpecChar
{
GParamSpec parent_instance;
@@ -219,7 +224,24 @@ struct _GParamSpecObject
{
GParamSpec parent_instance;
};
-
+#ifdef G_HAVE_GINT64
+struct _GParamSpecInt64
+{
+ GParamSpec parent_instance;
+
+ gint64 minimum;
+ gint64 maximum;
+ gint64 default_value;
+};
+struct _GParamSpecUInt64
+{
+ GParamSpec parent_instance;
+
+ guint64 minimum;
+ guint64 maximum;
+ guint64 default_value;
+};
+#endif /* G_HAVE_GINT64 */
/* --- GParamSpec prototypes --- */
GParamSpec* g_param_spec_char (const gchar *name,
@@ -333,6 +355,20 @@ GParamSpec* g_param_spec_object (const gchar *name,
const gchar *blurb,
GType object_type,
GParamFlags flags);
+GParamSpec* g_param_spec_int64 (const gchar *name,
+ const gchar *nick,
+ const gchar *blurb,
+ gint64 minimum,
+ gint64 maximum,
+ gint64 default_value,
+ GParamFlags flags);
+GParamSpec* g_param_spec_uint64 (const gchar *name,
+ const gchar *nick,
+ const gchar *blurb,
+ guint64 minimum,
+ guint64 maximum,
+ guint64 default_value,
+ GParamFlags flags);
G_END_DECLS