From 04cb15ae9dc0e863487ee55de2226cf5033311c0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 12 May 2010 23:07:20 +0200 Subject: RTMP: initial support added, powered by librtmp librtmp is found at http://rtmpdump.mplayerhq.hu/ --- lib/curl_rtmp.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lib/curl_rtmp.h (limited to 'lib/curl_rtmp.h') diff --git a/lib/curl_rtmp.h b/lib/curl_rtmp.h new file mode 100644 index 000000000..35776aaa6 --- /dev/null +++ b/lib/curl_rtmp.h @@ -0,0 +1,34 @@ +#ifndef __CURL_RTMP_H +#define __CURL_RTMP_H + +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 2010, Howard Chu, + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ +#ifndef CURL_DISABLE_RTMP +extern const struct Curl_handler Curl_handler_rtmp; +extern const struct Curl_handler Curl_handler_rtmpt; +extern const struct Curl_handler Curl_handler_rtmpe; +extern const struct Curl_handler Curl_handler_rtmpte; +extern const struct Curl_handler Curl_handler_rtmps; +extern const struct Curl_handler Curl_handler_rtmpts; +#endif + +#endif /* __CURL_RTMP_H */ -- cgit v1.2.1 From 510836f80b8b3ad32cb1d6b8fbdf70d1fd3b772c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 15 May 2010 22:02:44 +0200 Subject: RTMP: fix wrong #ifdef --- lib/curl_rtmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/curl_rtmp.h') diff --git a/lib/curl_rtmp.h b/lib/curl_rtmp.h index 35776aaa6..06555ffce 100644 --- a/lib/curl_rtmp.h +++ b/lib/curl_rtmp.h @@ -22,7 +22,7 @@ * KIND, either express or implied. * ***************************************************************************/ -#ifndef CURL_DISABLE_RTMP +#ifdef USE_LIBRTMP extern const struct Curl_handler Curl_handler_rtmp; extern const struct Curl_handler Curl_handler_rtmpt; extern const struct Curl_handler Curl_handler_rtmpe; -- cgit v1.2.1 From 077125e4a2a77384c88b51ffd88c985cabf95193 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 2 Jun 2010 14:13:02 +0200 Subject: include libcurl standard internal headers --- lib/curl_rtmp.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/curl_rtmp.h') diff --git a/lib/curl_rtmp.h b/lib/curl_rtmp.h index 06555ffce..4a9e9e60c 100644 --- a/lib/curl_rtmp.h +++ b/lib/curl_rtmp.h @@ -1,6 +1,5 @@ -#ifndef __CURL_RTMP_H -#define __CURL_RTMP_H - +#ifndef HEADER_CURL_RTMP_H +#define HEADER_CURL_RTMP_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | @@ -31,4 +30,4 @@ extern const struct Curl_handler Curl_handler_rtmps; extern const struct Curl_handler Curl_handler_rtmpts; #endif -#endif /* __CURL_RTMP_H */ +#endif /* HEADER_CURL_RTMP_H */ -- cgit v1.2.1