summaryrefslogtreecommitdiff
path: root/src/input/input_plugin.h
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2008-06-20 02:25:33 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2008-06-20 02:25:33 +0100
commit7325d78ee8eee3d62ad3cc408a1058db0c59bb42 (patch)
tree758bf5959eb98614565c7643a78ddbe05c776de6 /src/input/input_plugin.h
parent048c41a4661a6fffc5a4842390902493eea82168 (diff)
downloadxine-lib-7325d78ee8eee3d62ad3cc408a1058db0c59bb42.tar.gz
xine-lib-7325d78ee8eee3d62ad3cc408a1058db0c59bb42.tar.bz2
Allow input plugins to report MIME types as optional data. Implement for http.
This is an input plugin API extension; ABI is unchanged. The version is not bumped (we can't bump it due to 1.2).
Diffstat (limited to 'src/input/input_plugin.h')
-rw-r--r--src/input/input_plugin.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/input_plugin.h b/src/input/input_plugin.h
index 4790164d5..ff4c75b29 100644
--- a/src/input/input_plugin.h
+++ b/src/input/input_plugin.h
@@ -307,6 +307,11 @@ struct input_plugin_s {
#define INPUT_OPTIONAL_DATA_SPULANG 3
#define INPUT_OPTIONAL_DATA_PREVIEW 7
+/* buffer is a const char **; the string is freed by the input plugin. */
+#define INPUT_OPTIONAL_DATA_MIME_TYPE 8
+/* buffer is unused; true if the demuxer should be determined by the MIME type */
+#define INPUT_OPTIONAL_DATA_DEMUX_MIME_TYPE 9
+
#define MAX_MRL_ENTRIES 255
#define MAX_PREVIEW_SIZE 4096