General (miscellaneous) library API. More...
Functions | |
SBR_CSR_EXPORT const char * | sbr_csr_version (void) |
Return the version of the SBR Core Services Requester API. More... | |
SBR_CSR_EXPORT int | sbr_csr_init (ato_Ctx *ctx, unsigned short flag) |
Initialise the SDK. More... | |
SBR_CSR_EXPORT void | sbr_csr_deinit (void) |
Deinitialise the SDK. More... | |
SBR_CSR_EXPORT const char * | sbr_csr_default_templatefile (void) |
The default filename for the CSR template file. More... | |
SBR_CSR_EXPORT int | sbr_csr_loadtemplate (ato_Ctx *ctx, char **buffer, const char *dirname, const char *filename) |
Helper method to load an CSR template from a path. More... | |
General (miscellaneous) library API.
SBR_CSR_EXPORT const char* sbr_csr_version | ( | void | ) |
Return the version of the SBR Core Services Requester API.
SBR_CSR_EXPORT int sbr_csr_init | ( | ato_Ctx * | ctx, |
unsigned short | flag | ||
) |
Initialise the SDK.
This must be called at application startup prior to any threads being started.
ato_base_init() must be called first.
ctx | the current thread local Context. |
flag | used to control the initialisation process - use SBR_CSR_INIT_ALL unless advised otherwise. |
SBR_CSR_EXPORT void sbr_csr_deinit | ( | void | ) |
Deinitialise the SDK.
This must be called at application shutdown after threads are finished and any allocated objects freed.
ato_base_deinit() should be called after all other deinitialisation routines are called.
SBR_CSR_EXPORT const char* sbr_csr_default_templatefile | ( | void | ) |
The default filename for the CSR template file.
SBR_CSR_EXPORT int sbr_csr_loadtemplate | ( | ato_Ctx * | ctx, |
char ** | buffer, | ||
const char * | dirname, | ||
const char * | filename | ||
) |
Helper method to load an CSR template from a path.
ctx | the current thread local Context. |
buffer | the address of the buffer to load the contents into - must be freed by the caller. |
dirname | the directory to use. Cannot be NULL. Can include or be the filename. |
filename | the filename to use. Can be NULL if just using dirname. |