libamxd
6.4.1
Data Model Manager
|
Functions | |
char * | amxd_object_get_mibs (amxd_object_t *object) |
Get the names of all mibs attached to this object. More... | |
bool | amxd_object_has_mib (amxd_object_t *object, const char *mib_name) |
Checks if a mib has been added to a data model object. More... | |
amxd_status_t | amxd_object_add_mib (amxd_object_t *const object, const char *mib_name) |
Adds a mib to an object. More... | |
amxd_status_t | amxd_object_remove_mib (amxd_object_t *const object, const char *mib_name) |
Removes a mib from an object. More... | |
amxd_status_t amxd_object_add_mib | ( | amxd_object_t *const | object, |
const char * | mib_name | ||
) |
Adds a mib to an object.
When it is possible adds a mib with the given name to an object.
When there is no mib defined with the given name this functions returns an error.
When the mib was already added to the object this function returns an error.
A mib can not be added to an object when there are name conflicts:
When a mib is applied to an object, the object has been extended and will contain the parameters, methods and child objects as defined in the mib.
The mib can be removed from the object using amxd_object_remove_mib
object | the object pointer |
mib_name | the mib name |
Definition at line 254 of file amxd_object_mib.c.
char* amxd_object_get_mibs | ( | amxd_object_t * | object | ) |
Get the names of all mibs attached to this object.
object | the object pointer |
Definition at line 205 of file amxd_object_mib.c.
bool amxd_object_has_mib | ( | amxd_object_t * | object, |
const char * | mib_name | ||
) |
Checks if a mib has been added to a data model object.
Verifies if the mib with the given name is applied on the object
if a mib with the given name does not exists, this function returns false.
object | the object pointer |
mib_name | the mib name |
Definition at line 230 of file amxd_object_mib.c.
amxd_status_t amxd_object_remove_mib | ( | amxd_object_t *const | object, |
const char * | mib_name | ||
) |
Removes a mib from an object.
Removes a mib with the given name from the object.
Removing a mib will remove all parameters, methods and child objects from the object as defined in the mib.
All data stored in the parameters will be lost.
If there is no mib found with the given name this function returns an error.
If the mib with the given name was not set on the object, this function returns amxd_status_ok.
object | the object pointer |
mib_name | the mib name |
Definition at line 290 of file amxd_object_mib.c.