FILE *stream = (FILE*)client_data;
fprintf(stream, "[WARNING] %s", msg);
}
-/**
-sample debug callback expecting a FILE* client object
-*/
-static void info_callback(const char *msg, void *client_data) {
- FILE *stream = (FILE*)client_data;
- fprintf(stream, "[INFO] %s", msg);
-}
/* -------------------------------------------------------------------------- */
FILE *stream = (FILE*)client_data;
fprintf(stream, "[WARNING] %s", msg);
}
-/**
-sample debug callback expecting a FILE* client object
-*/
-static void info_callback(const char *msg, void *client_data) {
- FILE *stream = (FILE*)client_data;
- fprintf(stream, "[INFO] %s", msg);
-}
/* -------------------------------------------------------------------------- */