Add ability to output log with custom functions (for sxhub_t)
Secure eXtended Message Passing library
Brought to you by:
avdolainen
Add ability to output logs (warnings and error messages) with a custom functions.
It should be done for sxhub_t i.e.
sxhub_set_logops(sxhub_t *, int (*log)(sxlogtype_t, fmt, ...));
typedef enum {
SXCRITICAL_LOG = 0,
SXERROR_LOG,
SXWARNING_LOG,
SXINFO_LOG,
SXDEBUG_LOG,
} sxlogtype_t;
Find the places with frpintf(stderr, and change it.
https://sourceforge.net/u/leonid-ed/ done this.
many thanks,
Last edit: Alexander Vdolainen 2016-05-23
I've made a merge request.
Many thanks!
hope for the new requests :)