summaryrefslogtreecommitdiff
path: root/libavformat/url.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-31 16:04:59 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-04 17:45:19 +0200
commit5652bb94719c0bb0c58f73e44531af9977493223 (patch)
tree4c9d488b2d072c63def12e5769c831536461abc7 /libavformat/url.h
parent0d8a33b11e605f7fb6b51640d438d41fec08db1c (diff)
avio: make url_alloc internal.
Diffstat (limited to 'libavformat/url.h')
-rw-r--r--libavformat/url.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/libavformat/url.h b/libavformat/url.h
new file mode 100644
index 0000000000..d15d4abba2
--- /dev/null
+++ b/libavformat/url.h
@@ -0,0 +1,43 @@
+/*
+ *
+ * This file is part of Libav.
+ *
+ * Libav is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * Libav is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Libav; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/**
+ * @file
+ * unbuffered private I/O API
+ */
+
+#ifndef AVFORMAT_URL_H
+#define AVFORMAT_URL_H
+
+#include "avio.h"
+
+/**
+ * Create a URLContext for accessing to the resource indicated by
+ * url, but do not initiate the connection yet.
+ *
+ * @param puc pointer to the location where, in case of success, the
+ * function puts the pointer to the created URLContext
+ * @param flags flags which control how the resource indicated by url
+ * is to be opened
+ * @return 0 in case of success, a negative value corresponding to an
+ * AVERROR code in case of failure
+ */
+int ffurl_alloc(URLContext **h, const char *url, int flags);
+
+#endif //AVFORMAT_URL_H