X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsptps.h;h=2159028dd1e96ec45dc79249e705b9f3851bd8a7;hb=4200a378c4fedf64e89b9f8481d7cd09dac14965;hp=5037c46f882e4d49927e7355228266c62fe0c27a;hpb=6dfdb323612184529b4b83c1be914dda8262de47;p=tinc 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);