@@ -272,6 +272,9 @@ static int libsrt_setsockopt(URLContext *h, int fd, SRT_SOCKOPT optname, const c
return 0;
}
+#define LIBSRT_SETSOCKOPT(h, fd, optname, optval, optlen) \
+ libsrt_setsockopt((h), (fd), (optname), AV_TOSTRING(optname), (optval), (optlen))
+
static int libsrt_getsockopt(URLContext *h, int fd, SRT_SOCKOPT optname, const char * optnamestr, void * optval, int * optlen)
{
if (srt_getsockopt(fd, 0, optname, optval, optlen) < 0) {
@@ -281,6 +284,9 @@ static int libsrt_getsockopt(URLContext *h, int fd, SRT_SOCKOPT optname, const c
return 0;
}
+#define LIBSRT_GETSOCKOPT(h, fd, optname, optval, optlen) \
+ libsrt_getsockopt((h), (fd), (optname), AV_TOSTRING(optname), (optval), (optlen))
+
/* - The "POST" options can be altered any time on a connected socket.
They MAY have also some meaning when set prior to connecting; such
option is SRTO_RCVSYN, which makes connect/accept call asynchronous.