DataSource for C SDK
7.0.2.308582
|
Functions | |
void | ds_add_permission_key (ds_data_t *data, const char *key) |
Set the key for a permission object. Must be called either first, or immediately after inserting a seperator. More... | |
ds_data_t * | ds_init_permission (const char *subject, const char *key, unsigned short flags) |
Initialise a data object as a permission object. More... | |
Permission object support.
The permission object is an object that will notify Liberator auth modules when it's updated
Example usage of a permission object.
You can use ds_add_record_data instead of add_data if you want.
If you are sending multiple Permissions in one packet you can use the ds_add_permission_key and ds_add_data with DS_FIELDS_SEPARATOR
Example:
void ds_add_permission_key | ( | ds_data_t * | data, |
const char * | key | ||
) |
Set the key for a permission object. Must be called either first, or immediately after inserting a seperator.
data | - The permission object |
key | - The key to insert |
ds_data_t* ds_init_permission | ( | const char * | subject, |
const char * | key, | ||
unsigned short | flags | ||
) |
Initialise a data object as a permission object.
subject | - The name of the object |
key | - The Permission key for this object. May be NULL |
flags | - Object flags |