Liberator Auth API
6.2.14.306885
|
Functions | |
void | infoob_add_data (object_t *obj, const int *fields, const char **values, int count) |
Adds an array of values to a system object. More... | |
int | infoob_add_field (const char *name, int flags) |
Creates a new field for updating system objects. More... | |
void | infoob_add_int (object_t *obj, int field, int value) |
Adds a numerical value to a system object. More... | |
void | infoob_add_str (object_t *obj, int field, const char *value) |
Adds a value to a system object. More... | |
object_t * | infoob_new_object (const char *name) |
Creates a new system object. More... | |
If you wish to use system objects, then you should create a function called auth_mod_init_objects() with the following prototype:
This will be called after your auth_mod_init() has been called.
The following functions can be used to update RTTP system objects. System objects contain information about the status of the system, such as the state of the connection to DataSource applications and RTTP clients.
This example demonstrates how to update system values
void infoob_add_data | ( | object_t * | obj, |
const int * | fields, | ||
const char ** | values, | ||
int | count | ||
) |
Adds an array of values to a system object.
obj | System object to add values to. |
fields | Array of field numbers to add value to |
values | Array of values to be added. |
count | Number of entries in the array. |
References INFO_TYPE, and _object::name.
int infoob_add_field | ( | const char * | name, |
int | flags | ||
) |
Creates a new field for updating system objects.
name | Name of the field to be added. |
flags | Unused. |
void infoob_add_int | ( | object_t * | obj, |
int | field, | ||
int | value | ||
) |
Adds a numerical value to a system object.
obj | System object to add value to. |
field | Field number to add value to. |
value | Value to be added. |
References _object::name.
Referenced by auth_listener_throttle().
void infoob_add_str | ( | object_t * | obj, |
int | field, | ||
const char * | value | ||
) |
Adds a value to a system object.
obj | System object to add value to. |
field | Field number to add value to. |
value | Value to be added. |
References _object::name.
Referenced by auth_listener_throttle().
object_t* infoob_new_object | ( | const char * | name | ) |
Creates a new system object.
name | of the object to be created. |
The name supplied will be prefixed with /SYSTEM/AUTH.
References DIRECTORY_TYPE, and INFO_TYPE.