Fundamental types

Fundamental types — Types for 16-bit integers

Synopsis

#define             EGG_DBUS_TYPE_INT16
#define             EGG_DBUS_TYPE_UINT16
                    EggDBusParamSpecInt16;
                    EggDBusParamSpecUInt16;
GParamSpec*         egg_dbus_param_spec_int16           (const gchar *name,
                                                         const gchar *nick,
                                                         const gchar *blurb,
                                                         gint16 minimum,
                                                         gint16 maximum,
                                                         gint16 default_value,
                                                         GParamFlags flags);
GParamSpec*         egg_dbus_param_spec_uint16          (const gchar *name,
                                                         const gchar *nick,
                                                         const gchar *blurb,
                                                         guint16 minimum,
                                                         guint16 maximum,
                                                         guint16 default_value,
                                                         GParamFlags flags);
#define             EGG_DBUS_VALUE_HOLDS_INT16          (value)
#define             EGG_DBUS_VALUE_HOLDS_UINT16         (value)
void                egg_dbus_value_set_int16            (GValue *value,
                                                         gint16 v_int16);
gint16              egg_dbus_value_get_int16            (const GValue *value);
void                egg_dbus_value_set_uint16           (GValue *value,
                                                         guint16 v_uint16);
guint16             egg_dbus_value_get_uint16           (const GValue *value);

Description

This really should be in GObject but it isn't.

Details

EGG_DBUS_TYPE_INT16

#define EGG_DBUS_TYPE_INT16                     (egg_dbus_int16_get_type())

A fundamental type corresponding to gint16.


EGG_DBUS_TYPE_UINT16

#define EGG_DBUS_TYPE_UINT16                    (egg_dbus_uint16_get_type())

A fundamental type corresponding to guint16.


EggDBusParamSpecInt16

typedef struct {
  GParamSpec    parent_instance;

  gint16        minimum;
  gint16        maximum;
  gint16        default_value;
} EggDBusParamSpecInt16;

A GParamSpec derived structure that contains the meta data for 16bit integer properties.

GParamSpec parent_instance; private GParamSpec portion
gint16 minimum; minimum value for the property specified
gint16 maximum; maximum value for the property specified
gint16 default_value; default value for the property specified

EggDBusParamSpecUInt16

typedef struct {
  GParamSpec    parent_instance;

  guint16       minimum;
  guint16       maximum;
  guint16       default_value;
} EggDBusParamSpecUInt16;

A GParamSpec derived structure that contains the meta data for unsigned 16bit integer properties.

GParamSpec parent_instance; private GParamSpec portion
guint16 minimum; minimum value for the property specified
guint16 maximum; maximum value for the property specified
guint16 default_value; default value for the property specified

egg_dbus_param_spec_int16 ()

GParamSpec*         egg_dbus_param_spec_int16           (const gchar *name,
                                                         const gchar *nick,
                                                         const gchar *blurb,
                                                         gint16 minimum,
                                                         gint16 maximum,
                                                         gint16 default_value,
                                                         GParamFlags flags);

Creates a new EggDBusParamSpecInt16 instance specifying a EGG_DBUS_TYPE_INT16 property.

See g_param_spec_internal() for details on property names.

name : canonical name of the property specified
nick : nick name for the property specified
blurb : description of the property specified
minimum : minimum value for the property specified
maximum : maximum value for the property specified
default_value : default value for the property specified
flags : flags for the property specified
Returns : a newly created parameter specification

egg_dbus_param_spec_uint16 ()

GParamSpec*         egg_dbus_param_spec_uint16          (const gchar *name,
                                                         const gchar *nick,
                                                         const gchar *blurb,
                                                         guint16 minimum,
                                                         guint16 maximum,
                                                         guint16 default_value,
                                                         GParamFlags flags);

Creates a new EggDBusParamSpecUInt16 instance specifying a EGG_DBUS_TYPE_UINT16 property.

See g_param_spec_internal() for details on property names.

name : canonical name of the property specified
nick : nick name for the property specified
blurb : description of the property specified
minimum : minimum value for the property specified
maximum : maximum value for the property specified
default_value : default value for the property specified
flags : flags for the property specified
Returns : a newly created parameter specification

EGG_DBUS_VALUE_HOLDS_INT16()

#define EGG_DBUS_VALUE_HOLDS_INT16(value)       (G_TYPE_CHECK_VALUE_TYPE ((value), EGG_DBUS_TYPE_INT16))

Checks whether the given GValue can hold values of type EGG_DBUS_TYPE_INT16.

value : a valid GValue structure
Returns : TRUE on success.

EGG_DBUS_VALUE_HOLDS_UINT16()

#define EGG_DBUS_VALUE_HOLDS_UINT16(value)      (G_TYPE_CHECK_VALUE_TYPE ((value), EGG_DBUS_TYPE_UINT16))

Checks whether the given GValue can hold values of type EGG_DBUS_TYPE_UINT16.

value : a valid GValue structure
Returns : TRUE on success.

egg_dbus_value_set_int16 ()

void                egg_dbus_value_set_int16            (GValue *value,
                                                         gint16 v_int16);

Set the contents of a EGG_DBUS_TYPE_INT16 GValue to v_int16.

value : a valid GValue of type EGG_DBUS_TYPE_INT16
v_int16 : 16bit integer value to be set

egg_dbus_value_get_int16 ()

gint16              egg_dbus_value_get_int16            (const GValue *value);

Get the contents of a EGG_DBUS_TYPE_INT16 GValue.

value : a valid GValue of type EGG_DBUS_TYPE_INT16
Returns : 16bit integer contents of value

egg_dbus_value_set_uint16 ()

void                egg_dbus_value_set_uint16           (GValue *value,
                                                         guint16 v_uint16);

Set the contents of a EGG_DBUS_TYPE_UINT16 GValue to v_uint16.

value : a valid GValue of type EGG_DBUS_TYPE_UINT16
v_uint16 : unsigned 16bit integer value to be set

egg_dbus_value_get_uint16 ()

guint16             egg_dbus_value_get_uint16           (const GValue *value);

Get the contents of a EGG_DBUS_TYPE_UINT16 GValue.

value : a valid GValue of type EGG_DBUS_TYPE_UINT16
Returns : unsigned 16bit integer contents of value