TR181-XPON
1.4.0
TR-181 PON manager.
|
#include "dm_info.h"
#include <string.h>
#include <amxc/amxc.h>
#include <amxc/amxc_macros.h>
#include "xpon_trace.h"
Go to the source code of this file.
Macros | |
#define | ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) |
Functions | |
bool | dm_info_init (void) |
static bool | dm_convert_to_generic_path (const char *path, amxc_string_t *generic_path) |
object_id_t | dm_get_object_id (const char *path) |
const object_info_t * | dm_get_object_info (object_id_t id) |
bool | dm_get_object_param_info (object_id_t id, const param_info_t **param_info, uint32_t *size) |
Variables | |
static const param_info_t | ONU_PARAMS [] |
static const param_info_t | SOFTWARE_IMAGE_PARAMS [] |
static const param_info_t | ETHERNET_UNI_PARAMS [] |
static const param_info_t | ANI_PARAMS [] |
static const param_info_t | GEM_PORT_PARAMS [] |
static const param_info_t | TRANSCEIVER_PARAMS [] |
static const param_info_t | ONU_ACTIVATION_PARAMS [] |
static const param_info_t | AUTHENTICATION_PARAMS [] |
static const param_info_t | PERFORMANCE_THRESHOLDS_PARAMS [] |
static const param_info_t | TC_ALARMS_PARAMS [] |
const object_info_t | OBJECT_INFO [obj_id_nbr] |
|
static |
Convert an actual path to a generic path.
[in] | path | actual path with real instance indexes, e.g., "XPON.ONU.1.ANI.1.Transceiver" |
[in,out] | generic_path | the function returns the generic version of path. The generic version of a path is the path with all instance indexes replaced by 'x', e.g., "XPON.ONU.x.ANI.x.Transceiver". |
Definition at line 320 of file dm_info.c.
object_id_t dm_get_object_id | ( | const char * | path | ) |
Return the ID of an object.
[in] | path | object path, e.g., "XPON.ONU.1.SoftwareImage". |
Example: if path is "XPON.ONU.1.SoftwareImage", the function returns obj_id_software_image
Definition at line 380 of file dm_info.c.
const object_info_t* dm_get_object_info | ( | object_id_t | id | ) |
bool dm_get_object_param_info | ( | object_id_t | id, |
const param_info_t ** | param_info, | ||
uint32_t * | size | ||
) |
Return info about the params of an object.
[in] | id | object ID |
[in,out] | param_info | function passes info about the params of the object via this param. |
[in,out] | size | nr of elems in param_info |
Definition at line 429 of file dm_info.c.
bool dm_info_init | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
const object_info_t OBJECT_INFO[obj_id_nbr] |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |