Mercurial > audlegacy-plugins
comparison src/gio/gio.c @ 3083:01d2f931aeeb
gio: remove debug statement
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Wed, 29 Apr 2009 20:09:59 -0500 |
parents | abb8604cb718 |
children | e02b6092f70e |
comparison
equal
deleted
inserted
replaced
3082:abb8604cb718 | 3083:01d2f931aeeb |
---|---|
46 return NULL; | 46 return NULL; |
47 | 47 |
48 handle = g_slice_new0(VFSGIOHandle); | 48 handle = g_slice_new0(VFSGIOHandle); |
49 handle->file = g_file_new_for_uri(path); | 49 handle->file = g_file_new_for_uri(path); |
50 | 50 |
51 g_print("open %s\n", path); | |
52 | |
53 if (*mode == 'r') | 51 if (*mode == 'r') |
54 { | 52 { |
55 handle->istream = g_file_read(handle->file, NULL, &error); | 53 handle->istream = g_file_read(handle->file, NULL, &error); |
56 handle->seekable = G_SEEKABLE(handle->istream); | 54 handle->seekable = G_SEEKABLE(handle->istream); |
57 } | 55 } |
304 .vfs_fsize_impl = gio_aud_vfs_fsize_impl | 302 .vfs_fsize_impl = gio_aud_vfs_fsize_impl |
305 }; | 303 }; |
306 | 304 |
307 static void init(void) | 305 static void init(void) |
308 { | 306 { |
309 aud_vfs_register_transport(&file_const); | 307 aud_vfs_register_transport(&file_const); |
310 } | 308 } |
311 | 309 |
312 static void cleanup(void) | 310 static void cleanup(void) |
313 { | 311 { |
314 #if 0 | 312 #if 0 |
315 aud_vfs_unregister_transport(&file_const); | 313 aud_vfs_unregister_transport(&file_const); |
316 #endif | 314 #endif |
317 } | 315 } |
318 | 316 |
319 DECLARE_PLUGIN(gio, init, cleanup, NULL, NULL, NULL, NULL, NULL, NULL); | 317 DECLARE_PLUGIN(gio, init, cleanup, NULL, NULL, NULL, NULL, NULL, NULL); |