Mercurial > audlegacy
comparison src/audacious/vfs.c @ 2376:e1513290ee3c trunk
[svn] Add a VFSFile method for getting metadata associated with the file.
author | iabervon |
---|---|
date | Sat, 20 Jan 2007 21:30:24 -0800 |
parents | ebe01d05f1dc |
children | d49913587458 |
comparison
equal
deleted
inserted
replaced
2375:063374a51105 | 2376:e1513290ee3c |
---|---|
296 | 296 |
297 return file->base->vfs_truncate_impl(file, length); | 297 return file->base->vfs_truncate_impl(file, length); |
298 } | 298 } |
299 | 299 |
300 /** | 300 /** |
301 * vfs_get_metadata: | |
302 * @file: #VFSFile object that represents the VFS stream. | |
303 * @field: The string constant field name to get. | |
304 * | |
305 * Returns metadata about the stream. | |
306 * | |
307 * Return value: On success, a copy of the value of the | |
308 * field. Otherwise, NULL. | |
309 **/ | |
310 gchar * | |
311 vfs_get_metadata(VFSFile * file, const gchar * field) | |
312 { | |
313 if (file == NULL) | |
314 return NULL; | |
315 | |
316 if (file->base->vfs_get_metadata_impl) | |
317 return file->base->vfs_get_metadata_impl(file, field); | |
318 return NULL; | |
319 } | |
320 | |
321 /** | |
301 * vfs_file_test: | 322 * vfs_file_test: |
302 * @path: A path to test. | 323 * @path: A path to test. |
303 * @test: A GFileTest to run. | 324 * @test: A GFileTest to run. |
304 * | 325 * |
305 * Wrapper for g_file_test(). | 326 * Wrapper for g_file_test(). |