9 #ifndef __MONITOR_PROTOCOL_H__ 10 #define __MONITOR_PROTOCOL_H__ 16 #if !defined(BRP_LOG_DIR_PREFIX) 17 #define BRP_LOG_DIR_PREFIX "brp-logs/" 105 #endif //__MONITOR_PROTOCOL_H__ unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
BRP_LIB void brp_annotation_end(brp_protocol protocol, bool success, char *comment)
Marks the end of a related block of log entries and adds some kind of comment to it.
BRP_LIB brp_errcode brp_get_current_log_anchor(brp_protocol protocol, char **anchor, brp_mempool *mempool)
Returns the anchor ID of the current (last written) log entry.
BRP_LIB void brp_annotation_start(brp_protocol protocol)
Marks the beginning of a related block of log entries.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
This file primarly defines the common part of all protocol's data structures (:brp_protocol_t) and AP...
BRP_LIB brp_errcode brp_set_log_path(brp_protocol protocol, const char *path)
Sets a custom log file path.
struct brp_mempool_object_t * brp_mempool
mempool handle.
BRP_LIB char * brp_get_log_path(brp_protocol protocol, brp_mempool *mempool)
Returns the current log file path.
BRP_LIB brp_protocol brp_create_monitor(void)
Creates a new Monitor protocol layer.