annotate src/mms/mms.c @ 562:997496d252d4 trunk

[svn] Use InputPlayback standard flags in mpg123, drop set_time().
author iabervon
date Sun, 28 Jan 2007 22:14:55 -0800
parents fe2c60ca8c98
children f1642ee1115c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
503
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
1 /* Audacious
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
2 * Copyright (c) 2007 William Pitcock
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
3 *
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
7 * (at your option) any later version.
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
8 *
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
12 * GNU General Public License for more details.
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
13 *
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
15 * along with this program; if not, write to the Free Software
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
17 */
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
18
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
19 #include <glib.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
20
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
21 #include <audacious/vfs.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
22 #include <audacious/plugin.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
23 #include <stdio.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
24
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
25 #include <unistd.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
26 #include <sys/stat.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
27 #include <sys/types.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
28
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
29 #include <string.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
30 #include <errno.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
31
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
32 #include <libmms/mms.h>
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
33
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
34 /*
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
35 * TODO:
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
36 * - mmsh:// support
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
37 */
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
38
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
39 typedef struct {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
40 mms_t *mms;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
41 GSList *charstack;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
42 } MMSHandle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
43
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
44 VFSFile *
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
45 mms_vfs_fopen_impl(const gchar * path,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
46 const gchar * mode)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
47 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
48 VFSFile *file;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
49 MMSHandle *handle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
50
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
51 if (!path || !mode)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
52 return NULL;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
53
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
54 file = g_new(VFSFile, 1);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
55 handle = g_new0(MMSHandle, 1);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
56
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
57 file->handle = handle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
58
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
59 if (file->handle == NULL) {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
60 g_free(file);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
61 file = NULL;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
62 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
63
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
64 handle->mms = mms_connect(NULL, NULL, path, 128 * 1024);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
65
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
66 if (handle->mms == NULL) {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
67 g_free(handle);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
68 g_free(file);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
69 file = NULL;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
70 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
71
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
72 return file;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
73 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
74
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
75 gint
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
76 mms_vfs_fclose_impl(VFSFile * file)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
77 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
78 gint ret = 0;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
79
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
80 if (file == NULL)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
81 return -1;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
82
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
83 if (file->handle)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
84 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
85 MMSHandle *handle = (MMSHandle *) file->handle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
86
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
87 mms_close(handle->mms);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
88 g_free(handle);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
89 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
90
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
91 return ret;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
92 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
93
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
94 size_t
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
95 mms_vfs_fread_impl(gpointer ptr,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
96 size_t size,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
97 size_t nmemb,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
98 VFSFile * file)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
99 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
100 MMSHandle *handle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
101 gint ret;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
102
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
103 if (file == NULL)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
104 return 0;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
105
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
106 handle = (MMSHandle *) file->handle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
107
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
108 ret = mms_read(NULL, handle->mms, ptr, size * nmemb);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
109
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
110 if (ret < 0)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
111 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
112 g_message("** mms **: errno(%d): %s", errno, strerror(errno));
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
113 ret = EOF;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
114 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
115
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
116 return ret;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
117 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
118
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
119 size_t
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
120 mms_vfs_fwrite_impl(gconstpointer ptr,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
121 size_t size,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
122 size_t nmemb,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
123 VFSFile * file)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
124 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
125 return -1;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
126 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
127
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
128 gint
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
129 mms_vfs_getc_impl(VFSFile *stream)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
130 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
131 MMSHandle *handle = (MMSHandle *) stream->handle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
132 guchar c;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
133
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
134 if (handle->charstack != NULL)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
135 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
136 c = GPOINTER_TO_UINT(handle->charstack->data);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
137 handle->charstack = g_slist_remove_link(handle->charstack, handle->charstack);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
138 return c;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
139 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
140 else
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
141 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
142 mms_read(NULL, handle->mms, &c, 1);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
143 return c;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
144 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
145
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
146 return EOF;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
147 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
148
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
149 gint
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
150 mms_vfs_ungetc_impl(gint c, VFSFile *stream)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
151 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
152 MMSHandle *handle = (MMSHandle *) stream->handle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
153
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
154 handle->charstack = g_slist_append(handle->charstack, GUINT_TO_POINTER(c));
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
155
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
156 if (handle->charstack != NULL)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
157 return c;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
158
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
159 return EOF;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
160 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
161
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
162 gint
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
163 mms_vfs_fseek_impl(VFSFile * file,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
164 glong offset,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
165 gint whence)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
166 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
167 return -1;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
168 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
169
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
170 void
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
171 mms_vfs_rewind_impl(VFSFile * file)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
172 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
173 return;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
174 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
175
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
176 glong
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
177 mms_vfs_ftell_impl(VFSFile * file)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
178 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
179 MMSHandle *handle = (MMSHandle *) file->handle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
180
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
181 return mms_get_current_pos(handle->mms);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
182 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
183
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
184 gboolean
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
185 mms_vfs_feof_impl(VFSFile * file)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
186 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
187 MMSHandle *handle = (MMSHandle *) file->handle;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
188
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
189 return (gboolean) (mms_get_current_pos(handle->mms) ==
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
190 mms_get_length(handle->mms));
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
191 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
192
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
193 gint
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
194 mms_vfs_truncate_impl(VFSFile * file, glong size)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
195 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
196 return -1;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
197 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
198
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
199 VFSConstructor mms_const = {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
200 "mms://",
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
201 mms_vfs_fopen_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
202 mms_vfs_fclose_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
203 mms_vfs_fread_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
204 mms_vfs_fwrite_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
205 mms_vfs_getc_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
206 mms_vfs_ungetc_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
207 mms_vfs_fseek_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
208 mms_vfs_rewind_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
209 mms_vfs_ftell_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
210 mms_vfs_feof_impl,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
211 mms_vfs_truncate_impl
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
212 };
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
213
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
214 static void init(void)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
215 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
216 vfs_register_transport(&mms_const);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
217 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
218
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
219 static void cleanup(void)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
220 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
221 #if 0
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
222 vfs_unregister_transport(&mms_const);
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
223 #endif
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
224 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
225
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
226 LowlevelPlugin llp_mms = {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
227 NULL,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
228 NULL,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
229 "mms:// URI Transport",
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
230 init,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
231 cleanup,
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
232 };
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
233
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
234 LowlevelPlugin *get_lplugin_info(void)
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
235 {
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
236 return &llp_mms;
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
237 }
fe2c60ca8c98 [svn] - mms transport
nenolod
parents:
diff changeset
238