summaryrefslogtreecommitdiff
path: root/src/libaudtag/tag_module.h
diff options
context:
space:
mode:
authorCyril Lavier <cyril.lavier@davromaniak.eu>2012-01-25 21:52:25 +0100
committerCyril Lavier <cyril.lavier@davromaniak.eu>2012-01-25 21:52:25 +0100
commitde557c9169bd7b74b5126b8c6192c6251d03407c (patch)
treefb33e8a589302c4c09910699d960a73dafa2fa5a /src/libaudtag/tag_module.h
parent95ef69053691c5c731d0a6538de118ea52a3cd0a (diff)
Imported Upstream version 3.2
Diffstat (limited to 'src/libaudtag/tag_module.h')
-rw-r--r--src/libaudtag/tag_module.h26
1 files changed, 7 insertions, 19 deletions
diff --git a/src/libaudtag/tag_module.h b/src/libaudtag/tag_module.h
index 6884228..dee3be2 100644
--- a/src/libaudtag/tag_module.h
+++ b/src/libaudtag/tag_module.h
@@ -23,32 +23,20 @@
#ifndef TAG_MODULE_H
#define TAG_MODULE_H
-G_BEGIN_DECLS
-
-#include <glib.h>
-#include <mowgli.h>
#include "libaudcore/tuple.h"
#include "libaudcore/vfs.h"
-mowgli_list_t tag_modules;
-int number_of_modules;
typedef Tuple* pTuple;
typedef struct _module {
- gchar *name;
- gint type; /* set to TAG_TYPE_NONE if the module cannot create new tags */
- gboolean(*can_handle_file) (VFSFile *fd);
- gboolean (* read_tag) (Tuple * tuple, VFSFile * handle);
- gboolean (* read_image) (VFSFile * handle, void * * data, gint * size);
- gboolean (* write_tag) (const Tuple * tuple, VFSFile * handle);
-
- mowgli_node_t node;
+ char *name;
+ int type; /* set to TAG_TYPE_NONE if the module cannot create new tags */
+ bool_t(*can_handle_file) (VFSFile *fd);
+ bool_t (* read_tag) (Tuple * tuple, VFSFile * handle);
+ bool_t (* read_image) (VFSFile * handle, void * * data, int64_t * size);
+ bool_t (* write_tag) (const Tuple * tuple, VFSFile * handle);
} tag_module_t;
-/* this function must be modified when including new modules */
-void init_tag_modules(void);
-
-tag_module_t * find_tag_module (VFSFile * handle, gint new_type);
+tag_module_t * find_tag_module (VFSFile * handle, int new_type);
-G_END_DECLS
#endif /* TAG_MODULE_H */