authz_get_level_desc()#
The authz_get_level_desc() function searches for an authorization level descriptor in the given authz_table based on the provided auth name.
Prototype
const sdata_desc_t *authz_get_level_desc(
const sdata_desc_t *authz_table,
const char *auth
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
Pointer to the authorization table containing authorization descriptors. |
|
|
The name of the authorization level to search for. |
Return Value
Returns a pointer to the matching sdata_desc_t descriptor if found, otherwise returns NULL.
Notes
The function first checks for an alias match if no direct match is found. If an alias exists and matches auth, the corresponding descriptor is returned.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples