|  |  |  | Libbonobo Reference Manual | |
|---|---|---|---|---|
gchar* bonobo_config_get_string (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev); gchar* bonobo_config_get_string_with_default (Bonobo_ConfigDatabase db, const char *key, gchar *defval, gboolean *def); gint16 bonobo_config_get_short (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev); gint16 bonobo_config_get_short_with_default (Bonobo_ConfigDatabase db, const char *key, gint16 defval, gboolean *def); guint16 bonobo_config_get_ushort (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev); guint16 bonobo_config_get_ushort_with_default (Bonobo_ConfigDatabase db, const char *key, guint16 defval, gboolean *def); gint32 bonobo_config_get_long (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev); gint32 bonobo_config_get_long_with_default (Bonobo_ConfigDatabase db, const char *key, gint32 defval, gboolean *def); guint32 bonobo_config_get_ulong (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev); guint32 bonobo_config_get_ulong_with_default (Bonobo_ConfigDatabase db, const char *key, guint32 defval, gboolean *def); gfloat bonobo_config_get_float (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev); gfloat bonobo_config_get_float_with_default (Bonobo_ConfigDatabase db, const char *key, gfloat defval, gboolean *def); gdouble bonobo_config_get_double (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev); gdouble bonobo_config_get_double_with_default (Bonobo_ConfigDatabase db, const char *key, gdouble defval, gboolean *def); gboolean bonobo_config_get_boolean (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev); gboolean bonobo_config_get_boolean_with_default (Bonobo_ConfigDatabase db, const char *key, gboolean defval, gboolean *def); gchar bonobo_config_get_char (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev); gchar bonobo_config_get_char_with_default (Bonobo_ConfigDatabase db, const char *key, gchar defval, gboolean *def); CORBA_any* bonobo_config_get_value (Bonobo_ConfigDatabase db, const char *key, CORBA_TypeCode opt_tc, CORBA_Environment *opt_ev); void bonobo_config_set_string (Bonobo_ConfigDatabase db, const char *key, const char *value, CORBA_Environment *opt_ev); void bonobo_config_set_short (Bonobo_ConfigDatabase db, const char *key, gint16 value, CORBA_Environment *opt_ev); void bonobo_config_set_ushort (Bonobo_ConfigDatabase db, const char *key, guint16 value, CORBA_Environment *opt_ev); void bonobo_config_set_long (Bonobo_ConfigDatabase db, const char *key, gint32 value, CORBA_Environment *opt_ev); void bonobo_config_set_ulong (Bonobo_ConfigDatabase db, const char *key, guint32 value, CORBA_Environment *opt_ev); void bonobo_config_set_float (Bonobo_ConfigDatabase db, const char *key, gfloat value, CORBA_Environment *opt_ev); void bonobo_config_set_double (Bonobo_ConfigDatabase db, const char *key, gdouble value, CORBA_Environment *opt_ev); void bonobo_config_set_boolean (Bonobo_ConfigDatabase db, const char *key, gboolean value, CORBA_Environment *opt_ev); void bonobo_config_set_char (Bonobo_ConfigDatabase db, const char *key, gchar value, CORBA_Environment *opt_ev); void bonobo_config_set_value (Bonobo_ConfigDatabase db, const char *key, CORBA_any *value, CORBA_Environment *opt_ev);
gchar* bonobo_config_get_string (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev);
Get a string from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database, or zero on error. | 
gchar* bonobo_config_get_string_with_default (Bonobo_ConfigDatabase db, const char *key, gchar *defval, gboolean *def);
| db: | |
| key: | |
| defval: | |
| def: | |
| Returns : | 
gint16 bonobo_config_get_short (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev);
Get a 16 bit integer from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database. | 
gint16 bonobo_config_get_short_with_default (Bonobo_ConfigDatabase db, const char *key, gint16 defval, gboolean *def);
| db: | |
| key: | |
| defval: | |
| def: | |
| Returns : | 
guint16 bonobo_config_get_ushort (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev);
Get a 16 bit unsigned integer from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database. | 
guint16 bonobo_config_get_ushort_with_default (Bonobo_ConfigDatabase db, const char *key, guint16 defval, gboolean *def);
| db: | |
| key: | |
| defval: | |
| def: | |
| Returns : | 
gint32 bonobo_config_get_long (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev);
Get a 32 bit integer from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database. | 
gint32 bonobo_config_get_long_with_default (Bonobo_ConfigDatabase db, const char *key, gint32 defval, gboolean *def);
| db: | |
| key: | |
| defval: | |
| def: | |
| Returns : | 
guint32 bonobo_config_get_ulong (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev);
Get a 32 bit unsigned integer from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database. | 
guint32 bonobo_config_get_ulong_with_default (Bonobo_ConfigDatabase db, const char *key, guint32 defval, gboolean *def);
| db: | |
| key: | |
| defval: | |
| def: | |
| Returns : | 
gfloat bonobo_config_get_float (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev);
Get a single precision floating point value from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database. | 
gfloat bonobo_config_get_float_with_default (Bonobo_ConfigDatabase db, const char *key, gfloat defval, gboolean *def);
| db: | |
| key: | |
| defval: | |
| def: | |
| Returns : | 
gdouble bonobo_config_get_double (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev);
Get a double precision floating point value from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database. | 
gdouble bonobo_config_get_double_with_default (Bonobo_ConfigDatabase db, const char *key, gdouble defval, gboolean *def);
| db: | |
| key: | |
| defval: | |
| def: | |
| Returns : | 
gboolean bonobo_config_get_boolean (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev);
Get a boolean value from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database. | 
gboolean bonobo_config_get_boolean_with_default (Bonobo_ConfigDatabase db, const char *key, gboolean defval, gboolean *def);
| db: | |
| key: | |
| defval: | |
| def: | |
| Returns : | 
gchar bonobo_config_get_char (Bonobo_ConfigDatabase db, const char *key, CORBA_Environment *opt_ev);
Get a 8 bit character value from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database. | 
gchar bonobo_config_get_char_with_default (Bonobo_ConfigDatabase db, const char *key, gchar defval, gboolean *def);
| db: | |
| key: | |
| defval: | |
| def: | |
| Returns : | 
CORBA_any*  bonobo_config_get_value         (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             CORBA_TypeCode opt_tc,
                                             CORBA_Environment *opt_ev);
Get a value from the configuration database
| db: | a reference to the database object | 
| key: | key of the value to get | 
| opt_tc: | the type of the value, optional | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
| Returns : | the value contained in the database, or zero on error. | 
void        bonobo_config_set_string        (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             const char *value,
                                             CORBA_Environment *opt_ev);
Set a string value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
void        bonobo_config_set_short         (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             gint16 value,
                                             CORBA_Environment *opt_ev);
Set a 16 bit integer value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
void        bonobo_config_set_ushort        (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             guint16 value,
                                             CORBA_Environment *opt_ev);
Set a 16 bit unsigned integer value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
void        bonobo_config_set_long          (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             gint32 value,
                                             CORBA_Environment *opt_ev);
Set a 32 bit integer value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
void        bonobo_config_set_ulong         (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             guint32 value,
                                             CORBA_Environment *opt_ev);
Set a 32 bit unsigned integer value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
void        bonobo_config_set_float         (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             gfloat value,
                                             CORBA_Environment *opt_ev);
Set a single precision floating point value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
void        bonobo_config_set_double        (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             gdouble value,
                                             CORBA_Environment *opt_ev);
Set a double precision floating point value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
void        bonobo_config_set_boolean       (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             gboolean value,
                                             CORBA_Environment *opt_ev);
Set a boolean value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
void        bonobo_config_set_char          (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             gchar value,
                                             CORBA_Environment *opt_ev);
Set a 8 bit characte value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes | 
void        bonobo_config_set_value         (Bonobo_ConfigDatabase db,
                                             const char *key,
                                             CORBA_any *value,
                                             CORBA_Environment *opt_ev);
Set a value in the configuration database.
| db: | a reference to the database object | 
| key: | key of the value to set | 
| value: | the new value | 
| opt_ev: | an optional CORBA_Environment to return failure codes |