|
|
@ -21,7 +21,7 @@ |
|
|
|
struct _config { |
|
|
|
struct _config { |
|
|
|
char name[32]; |
|
|
|
char name[32]; |
|
|
|
char error[256]; |
|
|
|
char error[256]; |
|
|
|
void (*errcb)(char *errstr); |
|
|
|
void (*errcb)(const char *errstr); |
|
|
|
char baddr[INET6_ADDRSTRLEN]; /**< bind address */ |
|
|
|
char baddr[INET6_ADDRSTRLEN]; /**< bind address */ |
|
|
|
char maddr[INET_ADDRSTRLEN]; /**< multicast address */ |
|
|
|
char maddr[INET_ADDRSTRLEN]; /**< multicast address */ |
|
|
|
char mport[6]; /**< multicast port */ |
|
|
|
char mport[6]; /**< multicast port */ |
|
|
@ -30,7 +30,7 @@ struct _config { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static void |
|
|
|
static void |
|
|
|
errcb_stub(char *str) { |
|
|
|
errcb_stub(const char *str) { |
|
|
|
assert(str != NULL); |
|
|
|
assert(str != NULL); |
|
|
|
(void)(str); |
|
|
|
(void)(str); |
|
|
|
} |
|
|
|
} |
|
|
@ -97,7 +97,7 @@ error(cfg_t *cfg) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
void |
|
|
|
errcb(cfg_t *cfg, void (*cb)(char *errstr)) { |
|
|
|
errcb(cfg_t *cfg, void (*cb)(const char *errstr)) { |
|
|
|
assert(cfg != NULL); |
|
|
|
assert(cfg != NULL); |
|
|
|
assert(cb != NULL); |
|
|
|
assert(cb != NULL); |
|
|
|
|
|
|
|
|
|
|
|