2 May 2010 05:04
librtmp support
Howard Chu <hyc <at> highlandsun.com>
2010-05-02 03:04:40 GMT
2010-05-02 03:04:40 GMT
I started looking into adding librtmp to libcurl, but I have a few concerns
about the library structure. E.g.
diff --git a/include/curl/curl.h b/include/curl/curl.h
index e635968..41b6ae9 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
<at> <at> -623,6 +623,11 <at> <at> typedef enum {
#define CURLPROTO_SMTP (1<<16)
#define CURLPROTO_SMTPS (1<<17)
#define CURLPROTO_RTSP (1<<18)
+#define CURLPROTO_RTMP (1<<19)
+#define CURLPROTO_RTMPT (1<<20)
+#define CURLPROTO_RTMPE (1<<21)
+#define CURLPROTO_RTMPTE (1<<22)
+#define CURLPROTO_RTMPS (1<<23)
#define CURLPROTO_ALL (~0) /* enable everything */
/* long may be 32 or 64 bits, but we should never depend on anything else
diff --git a/lib/url.c b/lib/url.c
index 56dd5dc..477af5f 100644
--- a/lib/url.c
+++ b/lib/url.c
<at> <at> -137,6 +137,7 <at> <at> void idn_free (void *ptr); /* prototype from idn-free.h, not
#include "http_ntlm.h"
#include "socks.h"
#include "rtsp.h"
+#include "curl_rtmp.h"
#define _MPRINTF_REPLACE /* use our functions only */
(Continue reading)
RSS Feed