Top | ![]() |
![]() |
![]() |
![]() |
#define | BONOBO_ARG_GET_GENERAL() |
#define | BONOBO_ARG_SET_GENERAL() |
#define | BONOBO_ARG_GET_BOOLEAN() |
#define | BONOBO_ARG_SET_BOOLEAN() |
#define | BONOBO_ARG_GET_SHORT() |
#define | BONOBO_ARG_SET_SHORT() |
#define | BONOBO_ARG_GET_INT() |
#define | BONOBO_ARG_SET_INT() |
#define | BONOBO_ARG_GET_LONG() |
#define | BONOBO_ARG_SET_LONG() |
#define | BONOBO_ARG_GET_LONGLONG() |
#define | BONOBO_ARG_SET_LONGLONG() |
#define | BONOBO_ARG_GET_FLOAT() |
#define | BONOBO_ARG_SET_FLOAT() |
#define | BONOBO_ARG_GET_DOUBLE() |
#define | BONOBO_ARG_SET_DOUBLE() |
#define | BONOBO_ARG_GET_CHAR() |
#define | BONOBO_ARG_SET_CHAR() |
#define | BONOBO_ARG_GET_STRING() |
#define | BONOBO_ARG_SET_STRING() |
BonoboArg * | bonobo_arg_new () |
BonoboArg * | bonobo_arg_new_from () |
void | bonobo_arg_release () |
BonoboArg * | bonobo_arg_copy () |
void | bonobo_arg_from_gvalue () |
BonoboArgType | bonobo_arg_type_from_gtype () |
void | bonobo_arg_to_gvalue () |
GType | bonobo_arg_type_to_gtype () |
gboolean | bonobo_arg_is_equal () |
gboolean | bonobo_arg_type_is_equal () |
typedef | BonoboArg |
typedef | BonoboArgType |
#define | BONOBO_ARG_NULL |
#define | BONOBO_ARG_BOOLEAN |
#define | BONOBO_ARG_SHORT |
#define | BONOBO_ARG_INT |
#define | BONOBO_ARG_LONG |
#define | BONOBO_ARG_LONGLONG |
#define | BONOBO_ARG_FLOAT |
#define | BONOBO_ARG_DOUBLE |
#define | BONOBO_ARG_CHAR |
#define | BONOBO_ARG_STRING |
# define BONOBO_ARG_GET_GENERAL(a,c,t,e) ({g_assert (bonobo_arg_type_is_equal ((a)->_type, c, e)); *((t *)((a)->_value)); })
# define BONOBO_ARG_SET_GENERAL(a,v,c,t,e) ({g_assert (bonobo_arg_type_is_equal ((a)->_type, c, e)); *((t *)((a)->_value)) = (t)(v); })
#define BONOBO_ARG_GET_BOOLEAN(a) (BONOBO_ARG_GET_GENERAL (a, TC_CORBA_boolean, CORBA_boolean, NULL))
#define BONOBO_ARG_SET_BOOLEAN(a,v) (BONOBO_ARG_SET_GENERAL (a, v, TC_CORBA_boolean, CORBA_boolean, NULL))
#define BONOBO_ARG_GET_SHORT(a) (BONOBO_ARG_GET_GENERAL (a, TC_CORBA_short, CORBA_short, NULL))
#define BONOBO_ARG_SET_SHORT(a,v) (BONOBO_ARG_SET_GENERAL (a, v, TC_CORBA_short, CORBA_short, NULL))
#define BONOBO_ARG_GET_INT(a) (BONOBO_ARG_GET_GENERAL (a, TC_CORBA_long, CORBA_long, NULL))
#define BONOBO_ARG_SET_INT(a,v) (BONOBO_ARG_SET_GENERAL (a, v, TC_CORBA_long, CORBA_long, NULL))
#define BONOBO_ARG_GET_LONG(a) (BONOBO_ARG_GET_GENERAL (a, TC_CORBA_long, CORBA_long, NULL))
#define BONOBO_ARG_SET_LONG(a,v) (BONOBO_ARG_SET_GENERAL (a, v, TC_CORBA_long, CORBA_long, NULL))
#define BONOBO_ARG_GET_LONGLONG(a) (BONOBO_ARG_GET_GENERAL (a, TC_CORBA_long_long, CORBA_long_long, NULL))
#define BONOBO_ARG_SET_LONGLONG(a,v) (BONOBO_ARG_SET_GENERAL (a, v, TC_CORBA_long_long, CORBA_long_long, NULL))
#define BONOBO_ARG_GET_FLOAT(a) (BONOBO_ARG_GET_GENERAL (a, TC_CORBA_float, CORBA_float, NULL))
#define BONOBO_ARG_SET_FLOAT(a,v) (BONOBO_ARG_SET_GENERAL (a, v, TC_CORBA_float, CORBA_float, NULL))
#define BONOBO_ARG_GET_DOUBLE(a) (BONOBO_ARG_GET_GENERAL (a, TC_CORBA_double, CORBA_double, NULL))
#define BONOBO_ARG_SET_DOUBLE(a,v) (BONOBO_ARG_SET_GENERAL (a, v, TC_CORBA_double, CORBA_double, NULL))
#define BONOBO_ARG_GET_CHAR(a) (BONOBO_ARG_GET_GENERAL (a, TC_CORBA_char, CORBA_char, NULL))
#define BONOBO_ARG_SET_CHAR(a,v) (BONOBO_ARG_SET_GENERAL (a, v, TC_CORBA_char, CORBA_char, NULL))
#define BONOBO_ARG_GET_STRING(a) ({g_assert ((a)->_type->kind == CORBA_tk_string); *((CORBA_char **)((a)->_value)); })
#define BONOBO_ARG_SET_STRING(a,v) ({g_assert ((a)->_type->kind == CORBA_tk_string); CORBA_free (*(char **)(a)->_value); *((CORBA_char **)((a)->_value)) = CORBA_string_dup ((v)?(v):""); })
BonoboArg *
bonobo_arg_new (BonoboArgType t
);
Create a new BonoboArg with the specified type the value of the BonoboArg is initially empty.
BonoboArg * bonobo_arg_new_from (BonoboArgType t
,gconstpointer data
);
Create a new BonoboArg with the specified type and data
void
bonobo_arg_release (BonoboArg *arg
);
This frees the memory associated with arg
BonoboArg *
bonobo_arg_copy (const BonoboArg *arg
);
This function duplicates a
by a deep copy
void bonobo_arg_from_gvalue (BonoboArg *a
,const GValue *value
);
This maps a GValue value
to a BonoboArg a
;
a
must point to a freshly allocated BonoboArg
eg. such as returned by bonobo_arg_new
void bonobo_arg_to_gvalue (GValue *value
,const BonoboArg *arg
);
Maps a BonoboArg to a GtkArg; a
must point
to a blank GtkArg.
GType
bonobo_arg_type_to_gtype (BonoboArgType id
);
This maps a BonoboArgType to a GType
gboolean bonobo_arg_is_equal (const BonoboArg *a
,const BonoboArg *b
,CORBA_Environment *opt_ev
);
Compares two BonoboArg's for equivalence; will return TRUE
if equivalent for all simple cases. For Object references
CORBA sometimes denies 2 object references are equivalent
even if they are [ this is a feature_not_bug ].
This function is commutative.
gboolean bonobo_arg_type_is_equal (BonoboArgType a
,BonoboArgType b
,CORBA_Environment *opt_ev
);
This compares two BonoboArgType's in a
and b
.
The opt_ev
is an optional CORBA_Environment for
exceptions, or NULL
. This function is commutative.