Add log message support
This commit is contained in:
parent
56ccdb40ab
commit
33d1cf04a7
6 changed files with 82 additions and 2 deletions
|
@ -31,6 +31,7 @@
|
|||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <syslog.h>
|
||||
|
||||
|
||||
typedef struct gmrf gmrf_t;
|
||||
|
@ -52,6 +53,7 @@ static inline bool gmrf_addr_equal(const gmrf_addr_t *addr1, const gmrf_addr_t *
|
|||
return (memcmp(addr1->d, addr2->d, GMRF_ADDR_LEN) == 0);
|
||||
}
|
||||
|
||||
void gmrf_logf(gmrf_t *gmrf, int priority, const char *format, ...);
|
||||
|
||||
gmrf_addr_t gmrf_iface_get_addr(gmrf_t *gmrf, gmrf_iface_t *iface);
|
||||
size_t gmrf_iface_get_mtu(gmrf_t *gmrf, gmrf_iface_t *iface);
|
||||
|
|
Reference in a new issue