annotate src/mime.c @ 140:faa0bc5fc2f5

fix typo
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sat, 28 Jul 2012 16:14:10 +0900
parents e413158cae13
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
125
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
1 /*
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
2 * mime.c : GeeXboX uShare media file MIME-type association.
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
3 * Originally developped for the GeeXboX project.
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
4 * Ref : http://freedesktop.org/wiki/Standards_2fshared_2dmime_2dinfo_2dspec
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
5 * Copyright (C) 2005-2007 Benjamin Zores <ben@geexbox.org>
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
6 *
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
10 * (at your option) any later version.
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
11 *
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
15 * GNU Library General Public License for more details.
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
16 *
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License along
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
18 * with this program; if not, write to the Free Software Foundation,
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
19 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
20 */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
21
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
22 #include <stdlib.h>
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
23 #include <string.h>
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
24
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
25 #include "mime.h"
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
26 #include "ushare.h"
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
27
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
28 #define UPNP_VIDEO "object.item.videoItem"
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
29 #define UPNP_AUDIO "object.item.audioItem.musicTrack"
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
30 #define UPNP_PHOTO "object.item.imageItem.photo"
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
31 #define UPNP_PLAYLIST "object.item.playlistItem"
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
32 #define UPNP_TEXT "object.item.textItem"
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
33
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
34 const struct mime_type_t MIME_Type_List[] = {
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
35 /* Video files */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
36 { "asf", UPNP_VIDEO, "http-get:*:video/x-ms-asf:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
37 { "avc", UPNP_VIDEO, "http-get:*:video/avi:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
38 { "avi", UPNP_VIDEO, "http-get:*:video/avi:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
39 { "dv", UPNP_VIDEO, "http-get:*:video/x-dv:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
40 { "divx", UPNP_VIDEO, "http-get:*:video/avi:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
41 { "wmv", UPNP_VIDEO, "http-get:*:video/x-ms-wmv:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
42 { "mjpg", UPNP_VIDEO, "http-get:*:video/x-motion-jpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
43 { "mjpeg", UPNP_VIDEO, "http-get:*:video/x-motion-jpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
44 { "mpeg", UPNP_VIDEO, "http-get:*:video/mpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
45 { "mpg", UPNP_VIDEO, "http-get:*:video/mpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
46 { "mpe", UPNP_VIDEO, "http-get:*:video/mpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
47 { "mp2p", UPNP_VIDEO, "http-get:*:video/mp2p:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
48 { "vob", UPNP_VIDEO, "http-get:*:video/mp2p:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
49 { "mp2t", UPNP_VIDEO, "http-get:*:video/mp2t:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
50 { "m1v", UPNP_VIDEO, "http-get:*:video/mpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
51 { "m2v", UPNP_VIDEO, "http-get:*:video/mpeg2:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
52 { "mpg2", UPNP_VIDEO, "http-get:*:video/mpeg2:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
53 { "mpeg2", UPNP_VIDEO, "http-get:*:video/mpeg2:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
54 { "m4v", UPNP_VIDEO, "http-get:*:video/mp4:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
55 { "m4p", UPNP_VIDEO, "http-get:*:video/mp4:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
56 { "mp4ps", UPNP_VIDEO, "http-get:*:video/x-nerodigital-ps:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
57 { "ts", UPNP_VIDEO, "http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_HD_60_L2_ISO;"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
58 { "ogm", UPNP_VIDEO, "http-get:*:video/mpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
59 { "mkv", UPNP_VIDEO, "http-get:*:video/mpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
60 { "rmvb", UPNP_VIDEO, "http-get:*:video/mpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
61 { "mov", UPNP_VIDEO, "http-get:*:video/quicktime:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
62 { "hdmov", UPNP_VIDEO, "http-get:*:video/quicktime:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
63 { "qt", UPNP_VIDEO, "http-get:*:video/quicktime:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
64 { "bin", UPNP_VIDEO, "http-get:*:video/mpeg2:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
65 { "iso", UPNP_VIDEO, "http-get:*:video/mpeg2:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
66
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
67 /* Audio files */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
68 { "3gp", UPNP_AUDIO, "http-get:*:audio/3gpp:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
69 { "aac", UPNP_AUDIO, "http-get:*:audio/x-aac:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
70 { "ac3", UPNP_AUDIO, "http-get:*:audio/x-ac3:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
71 { "aif", UPNP_AUDIO, "http-get:*:audio/aiff:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
72 { "aiff", UPNP_AUDIO, "http-get:*:audio/aiff:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
73 { "at3p", UPNP_AUDIO, "http-get:*:audio/x-atrac3:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
74 { "au", UPNP_AUDIO, "http-get:*:audio/basic:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
75 { "snd", UPNP_AUDIO, "http-get:*:audio/basic:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
76 { "dts", UPNP_AUDIO, "http-get:*:audio/x-dts:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
77 { "rmi", UPNP_AUDIO, "http-get:*:audio/midi:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
78 { "mid", UPNP_AUDIO, "http-get:*:audio/midi:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
79 { "mp1", UPNP_AUDIO, "http-get:*:audio/mp1:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
80 { "mp2", UPNP_AUDIO, "http-get:*:audio/mp2:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
81 { "mp3", UPNP_AUDIO, "http-get:*:audio/mpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
82 { "mp4", UPNP_AUDIO, "http-get:*:audio/mp4:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
83 { "m4a", UPNP_AUDIO, "http-get:*:audio/mp4:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
84 { "ogg", UPNP_AUDIO, "http-get:*:audio/x-ogg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
85 { "wav", UPNP_AUDIO, "http-get:*:audio/wav:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
86 { "pcm", UPNP_AUDIO, "http-get:*:audio/l16:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
87 { "lpcm", UPNP_AUDIO, "http-get:*:audio/l16:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
88 { "l16", UPNP_AUDIO, "http-get:*:audio/l16:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
89 { "wma", UPNP_AUDIO, "http-get:*:audio/x-ms-wma:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
90 { "mka", UPNP_AUDIO, "http-get:*:audio/mpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
91 { "ra", UPNP_AUDIO, "http-get:*:audio/x-pn-realaudio:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
92 { "rm", UPNP_AUDIO, "http-get:*:audio/x-pn-realaudio:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
93 { "ram", UPNP_AUDIO, "http-get:*:audio/x-pn-realaudio:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
94 { "flac", UPNP_AUDIO, "http-get:*:audio/x-flac:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
95
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
96 /* Images files */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
97 { "bmp", UPNP_PHOTO, "http-get:*:image/bmp:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
98 { "ico", UPNP_PHOTO, "http-get:*:image/x-icon:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
99 { "gif", UPNP_PHOTO, "http-get:*:image/gif:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
100 { "jpeg", UPNP_PHOTO, "http-get:*:image/jpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
101 { "jpg", UPNP_PHOTO, "http-get:*:image/jpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
102 { "jpe", UPNP_PHOTO, "http-get:*:image/jpeg:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
103 { "pcd", UPNP_PHOTO, "http-get:*:image/x-ms-bmp:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
104 { "png", UPNP_PHOTO, "http-get:*:image/png:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
105 { "pnm", UPNP_PHOTO, "http-get:*:image/x-portable-anymap:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
106 { "ppm", UPNP_PHOTO, "http-get:*:image/x-portable-pixmap:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
107 { "qti", UPNP_PHOTO, "http-get:*:image/x-quicktime:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
108 { "qtf", UPNP_PHOTO, "http-get:*:image/x-quicktime:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
109 { "qtif", UPNP_PHOTO, "http-get:*:image/x-quicktime:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
110 { "tif", UPNP_PHOTO, "http-get:*:image/tiff:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
111 { "tiff", UPNP_PHOTO, "http-get:*:image/tiff:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
112
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
113 /* Playlist files */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
114 { "pls", UPNP_PLAYLIST, "http-get:*:audio/x-scpls:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
115 { "m3u", UPNP_PLAYLIST, "http-get:*:audio/mpegurl:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
116 { "asx", UPNP_PLAYLIST, "http-get:*:video/x-ms-asf:"},
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
117
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
118 /* Subtitle Text files */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
119 { "srt", UPNP_TEXT, "http-get:*:text/srt:"}, /* SubRip */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
120 { "ssa", UPNP_TEXT, "http-get:*:text/ssa:"}, /* SubStation Alpha */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
121 { "stl", UPNP_TEXT, "http-get:*:text/srt:"}, /* Spruce */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
122 { "psb", UPNP_TEXT, "http-get:*:text/psb:"}, /* PowerDivX */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
123 { "pjs", UPNP_TEXT, "http-get:*:text/pjs:"}, /* Phoenix Japanim */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
124 { "sub", UPNP_TEXT, "http-get:*:text/sub:"}, /* MicroDVD */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
125 { "idx", UPNP_TEXT, "http-get:*:text/idx:"}, /* VOBsub */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
126 { "dks", UPNP_TEXT, "http-get:*:text/dks:"}, /* DKS */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
127 { "scr", UPNP_TEXT, "http-get:*:text/scr:"}, /* MACsub */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
128 { "tts", UPNP_TEXT, "http-get:*:text/tts:"}, /* TurboTitler */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
129 { "vsf", UPNP_TEXT, "http-get:*:text/vsf:"}, /* ViPlay */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
130 { "zeg", UPNP_TEXT, "http-get:*:text/zeg:"}, /* ZeroG */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
131 { "mpl", UPNP_TEXT, "http-get:*:text/mpl:"}, /* MPL */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
132
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
133 /* Miscellaneous text files */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
134 { "bup", UPNP_TEXT, "http-get:*:text/bup:"}, /* DVD backup */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
135 { "ifo", UPNP_TEXT, "http-get:*:text/ifo:"}, /* DVD information */
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
136
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
137 { NULL, NULL, NULL}
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
138 };
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
139
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
140 char *mime_get_protocol (struct mime_type_t *mime)
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
141 {
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
142 char protocol[512];
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
143
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
144 if (!mime)
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
145 return NULL;
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
146
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
147 sprintf (protocol, mime->mime_protocol);
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
148 //strcat (protocol, "*");
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
149 return strdup (protocol);
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
150 }