Function anj_core_init

Function Documentation

int anj_core_init(anj_t *anj, const anj_configuration_t *config)

Initializes the core of the Anjay Lite library. The anj object must be created and allocated by the user before calling this function.

Parameters:
  • anj – Anjay object to operate on.

  • config – Configuration structure.

Returns:

0 on success, a non-zero value in case of an error.