This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If a module of the same name already exists, the module identifier of the existing module is returned.
If the addition was successful.
If name or id_ptr is NULL.
If unable to initialize the logging framework.
If unable to allocate memory for the new module.
If any other error is detected.