aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive_internal.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-16 16:28:26 +0100
committerMax Kellermann <max@duempel.org>2009-12-16 17:09:58 +0100
commit0bc8c0c1da4490aad502dddbbc7c60564c4083a7 (patch)
tree3a7b9ed55fbbdb757e4822e7ea262237d0562dbc /src/archive_internal.h
parent74156d5bed810209a777ba6ade7ef279691f3091 (diff)
downloadmpd-0bc8c0c1da4490aad502dddbbc7c60564c4083a7.tar.gz
mpd-0bc8c0c1da4490aad502dddbbc7c60564c4083a7.tar.xz
mpd-0bc8c0c1da4490aad502dddbbc7c60564c4083a7.zip
archive_plugin: wrap method calls
Make archive_file a "real" struct, extended by all plugins. Add the plugin pointer to it. Wrap all method calls in functions.
Diffstat (limited to '')
-rw-r--r--src/archive_internal.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/archive_internal.h b/src/archive_internal.h
index 130d25d65..3d973381e 100644
--- a/src/archive_internal.h
+++ b/src/archive_internal.h
@@ -21,7 +21,14 @@
#define MPD_ARCHIVE_INTERNAL_H
struct archive_file {
- int placeholder;
+ const struct archive_plugin *plugin;
};
+static inline void
+archive_file_init(struct archive_file *archive_file,
+ const struct archive_plugin *plugin)
+{
+ archive_file->plugin = plugin;
+}
+
#endif