diff http.h @ 6156:85710c0ef275 libavformat

HTTP: Add a method for initializing the authentication state from another connection
author mstorsjo
date Mon, 21 Jun 2010 19:40:30 +0000
parents 6fa300e438f3
children fa244b4fe683
line wrap: on
line diff
--- a/http.h	Mon Jun 21 19:02:35 2010 +0000
+++ b/http.h	Mon Jun 21 19:40:30 2010 +0000
@@ -50,4 +50,15 @@
  */
 void ff_http_set_chunked_transfer_encoding(URLContext *h, int is_chunked);
 
+/**
+ * Initialize the authentication state based on another HTTP URLContext.
+ * This can be used to pre-initialize the authentication parameters if
+ * they are known beforehand, to avoid having to do an initial failing
+ * request just to get the parameters.
+ *
+ * @param dest URL context whose authentication state gets updated
+ * @param src URL context whose authentication state gets copied
+ */
+void ff_http_init_auth_state(URLContext *dest, const URLContext *src);
+
 #endif /* AVFORMAT_HTTP_H */