aboutsummaryrefslogtreecommitdiff
path: root/lib/rtsp.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-03-23 17:27:58 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-03-23 17:27:58 +0100
commitcc9e4321d38f26fec59789a7b3a3bf6a0bf27ce4 (patch)
treedb6c731511c58f524ef569bca41c2d4c638e8116 /lib/rtsp.h
parent970587567ec809f47b7c51ff015a4277eb75813a (diff)
rtsp: move protocol code to dedicated file
The RTSP-specific function for checking for "dead" connection is better located in rtsp.c. The code using this is now written without #ifdefs as the function call is instead turned into a macro (in rtsp.h) when RTSP is disabled.
Diffstat (limited to 'lib/rtsp.h')
-rw-r--r--lib/rtsp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/rtsp.h b/lib/rtsp.h
index 82e07068d..2e2074edc 100644
--- a/lib/rtsp.h
+++ b/lib/rtsp.h
@@ -8,7 +8,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -46,6 +46,11 @@ CURLcode Curl_rtsp_connect(struct connectdata *conn, bool *done);
CURLcode Curl_rtsp_disconnect(struct connectdata *conn, bool dead_connection);
CURLcode Curl_rtsp_parseheader(struct connectdata *conn, char *header);
+bool Curl_rtsp_connisdead(struct connectdata *check);
+
+#else
+/* disabled */
+#define Curl_rtsp_connisdead(x) TRUE
#endif /* CURL_DISABLE_RTSP */