X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fsptps.h;fp=src%2Fsptps.h;h=2159028dd1e96ec45dc79249e705b9f3851bd8a7;hb=40ed0c07dd3d4667054b0f5952b89ee39686493b;hp=5037c46f882e4d49927e7355228266c62fe0c27a;hpb=b234304b6628aeddce63d7f751da97c3344bbb78;p=meshlink diff --git a/src/sptps.h b/src/sptps.h index 5037c46f..2159028d 100644 --- a/src/sptps.h +++ b/src/sptps.h @@ -81,6 +81,9 @@ typedef struct sptps { } sptps_t; extern unsigned int sptps_replaywin; +extern void sptps_log_quiet(sptps_t *s, int s_errno, const char *format, va_list ap); +extern void sptps_log_stderr(sptps_t *s, int s_errno, const char *format, va_list ap); +extern void (*sptps_log)(sptps_t *s, int s_errno, const char *format, va_list ap); extern bool sptps_start(sptps_t *s, void *handle, bool initiator, bool datagram, ecdsa_t mykey, ecdsa_t hiskey, const char *label, size_t labellen, send_data_t send_data, receive_record_t receive_record); extern bool sptps_stop(sptps_t *s); extern bool sptps_send_record(sptps_t *s, uint8_t type, const char *data, uint16_t len);