55 #if !defined(__AMXD_PATH_H__)
56 #define __AMXD_PATH_H__
134 const char* object_path);
166 const char* object_path);
210 const char* obj_path,
240 const char* obj_path, ...) \
241 __attribute__ ((format(printf, 3, 4)));
enum _amxd_path_type amxd_path_type_t
enum _amxd_status amxd_status_t
void amxd_path_delete(amxd_path_t **path)
Frees an allocated amxd_path_t structure.
amxd_status_t amxd_path_init(amxd_path_t *path, const char *object_path)
Initializes an amxd_path_t structure.
static bool amxd_path_is_object_path(amxd_path_t *path)
Checks if the path is an object path.
char * amxd_path_build_supported_path(amxd_path_t *path)
Creates the supported path representation of the given path.
const char * amxd_path_get_param(amxd_path_t *path)
Gets the parameter name.
uint32_t amxd_path_get_depth(const amxd_path_t *const path)
Calculates the depth of the path.
static bool amxd_path_is_supported_path(amxd_path_t *path)
Checks if the path is in the supported data model.
static bool amxd_path_is_valid(amxd_path_t *path)
Checks if the path is valid path.
char * amxd_path_get_first(amxd_path_t *path, bool remove)
Gets the first part of the path.
static bool amxd_path_is_search_path(amxd_path_t *path)
Checks if the path is a search path.
char * amxd_path_get_last(amxd_path_t *path, bool remove)
Gets the last part of the path.
char * amxd_path_get_reference_part(amxd_path_t *path, bool remove)
Returns the reference path.
bool amxd_path_is_instance_path(const amxd_path_t *const path)
Checks if the path is in the instantiated data model.
amxd_status_t amxd_status_t amxd_path_append(amxd_path_t *path, const char *extension, bool add_dot)
Appends a parameter name or object name/index to the path.
amxd_status_t amxd_path_new(amxd_path_t **path, const char *object_path)
Allocates and initializes an amxd_path_t structure.
const char * amxd_path_get(amxd_path_t *path, int flags)
Returns the path stored in the amxd_path_t structure.
char * amxd_path_get_supported_path(amxd_path_t *path)
Translates the path into a path that can be used to fetch the object definition.
amxd_status_t amxd_path_prepend(amxd_path_t *path, const char *extension)
Prepends an object name/index to the path.
char * amxd_path_get_param_path(amxd_path_t *path)
Get the full parameter path from the provided amxd_path_t struct.
void amxd_path_clean(amxd_path_t *path)
Cleans an amxd_path_t structure.
amxd_status_t amxd_path_setf(amxd_path_t *path, bool add_dot, const char *obj_path,...) __attribute__((format(printf
Sets or replaces the path contained in the amxd_path_t structure.
static amxd_path_type_t amxd_path_get_type(amxd_path_t *path)
Returns the path type.
uint32_t amxd_path_get_reference_index(amxd_path_t *path)
Returns the reference path index.
amxd_status_t amxd_path_vsetf(amxd_path_t *path, bool add_dot, const char *obj_path, va_list args)
Sets or replaces the path contained in the amxd_path_t structure.
void amxd_path_reset(amxd_path_t *path)
Resets the amxd_path_t structure.
char * amxd_path_get_fixed_part(amxd_path_t *path, bool remove)
Gets the fixed part of the path.