libamxd  6.4.1
Data Model Manager
amxd_mib.h File Reference
#include <amxd/amxd_types.h>
#include <amxd/amxd_object.h>

Go to the source code of this file.

Functions

static amxd_status_t amxd_mib_new (amxd_object_t **object, const char *name)
 
void amxd_mib_delete (amxd_object_t **object)
 

Function Documentation

◆ amxd_mib_delete()

void amxd_mib_delete ( amxd_object_t **  object)

Definition at line 314 of file amxd_object_mib.c.

314  {
315  when_null(mib, exit);
316  when_null(*mib, exit);
317 
318  when_true(amxd_object_get_type(*mib) != amxd_object_mib, exit);
319 
320  amxd_object_free(mib);
321 
322 exit:
323  return;
324 }
@ amxd_object_mib
Definition: amxd_types.h:188
static amxd_object_type_t amxd_object_get_type(const amxd_object_t *const object)
Returns the object type.
Definition: amxd_object.h:586
void amxd_object_free(amxd_object_t **object)
Data model object destructor function.
Definition: amxd_object.c:153

◆ amxd_mib_new()

static amxd_status_t amxd_mib_new ( amxd_object_t **  object,
const char *  name 
)
inlinestatic

Definition at line 67 of file amxd_mib.h.

68  {
69  return amxd_object_new(object, amxd_object_mib, name);
70 }
amxd_status_t amxd_object_new(amxd_object_t **object, const amxd_object_type_t type, const char *name)
Data model object constructor function.
Definition: amxd_object.c:185