read/write/delete jwk properties
More...
|
const char * | r_jwk_get_property_str (jwk_t *jwk, const char *key) |
|
const char * | r_jwk_get_property_array (jwk_t *jwk, const char *key, size_t index) |
|
int | r_jwk_set_property_str (jwk_t *jwk, const char *key, const char *value) |
|
int | r_jwk_set_property_array (jwk_t *jwk, const char *key, size_t index, const char *value) |
|
int | r_jwk_append_property_array (jwk_t *jwk, const char *key, const char *value) |
|
int | r_jwk_delete_property_str (jwk_t *jwk, const char *key) |
|
int | r_jwk_delete_property_array_at (jwk_t *jwk, const char *key, size_t index) |
|
read/write/delete jwk properties
◆ r_jwk_get_property_str()
const char* r_jwk_get_property_str |
( |
jwk_t * |
jwk, |
|
|
const char * |
key |
|
) |
| |
Get a property value from a jwk_t
- Parameters
-
jwk | the jwk_t * to get |
key | the key of the property to retrieve |
- Returns
- the property value on success, NULL on error
◆ r_jwk_get_property_array()
const char* r_jwk_get_property_array |
( |
jwk_t * |
jwk, |
|
|
const char * |
key, |
|
|
size_t |
index |
|
) |
| |
Get a property value of an array from a jwk_t
- Parameters
-
jwk | the jwk_t * to get |
key | the key of the property to retrieve |
index | the index of the value to retrieve in the array |
- Returns
- the property value on success, NULL on error
◆ r_jwk_set_property_str()
int r_jwk_set_property_str |
( |
jwk_t * |
jwk, |
|
|
const char * |
key, |
|
|
const char * |
value |
|
) |
| |
Set a property value into a jwk_t
- Parameters
-
jwk | the jwk_t * to get |
key | the key of the property to set |
value | the value of the property to set |
- Returns
- RHN_OK on success, an error value on error Logs error message with yder on error
◆ r_jwk_set_property_array()
int r_jwk_set_property_array |
( |
jwk_t * |
jwk, |
|
|
const char * |
key, |
|
|
size_t |
index, |
|
|
const char * |
value |
|
) |
| |
Set a property value on an array into a jwk_t
- Parameters
-
jwk | the jwk_t * to get |
key | the key of the property to set |
index | the index of the value to set in the array |
value | the value of the property to set |
- Returns
- RHN_OK on success, an error value on error Logs error message with yder on error
◆ r_jwk_append_property_array()
int r_jwk_append_property_array |
( |
jwk_t * |
jwk, |
|
|
const char * |
key, |
|
|
const char * |
value |
|
) |
| |
Append a property value on an array into a jwk_t
- Parameters
-
jwk | the jwk_t * to get |
key | the key of the property to set |
value | the value of the property to set |
- Returns
- RHN_OK on success, an error value on error Logs error message with yder on error
◆ r_jwk_delete_property_str()
int r_jwk_delete_property_str |
( |
jwk_t * |
jwk, |
|
|
const char * |
key |
|
) |
| |
Delete a property from a jwk_t
- Parameters
-
jwk | the jwk_t * to get |
key | the key of the property to delete |
- Returns
- RHN_OK on success, an error value on error Logs error message with yder on error
◆ r_jwk_delete_property_array_at()
int r_jwk_delete_property_array_at |
( |
jwk_t * |
jwk, |
|
|
const char * |
key, |
|
|
size_t |
index |
|
) |
| |
Delete an array property from a jwk_t
- Parameters
-
jwk | the jwk_t * to get |
key | the key of the property to delete |
index | the index of the value to set in the array |
- Returns
- RHN_OK on success, an error value on error Logs error message with yder on error