aboutsummaryrefslogtreecommitdiffstats
path: root/src/InputPlugin.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 09:43:55 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 10:45:10 +0200
commit05de2e998c7df2757ae63ce6a053e27eca3d13ca (patch)
tree2c85c43cb69dc2dc7086bfddc66090928cd0d93f /src/InputPlugin.hxx
parent24780d99e61af44141e8f0d0d0776a1c994e6770 (diff)
downloadmpd-05de2e998c7df2757ae63ce6a053e27eca3d13ca.tar.gz
mpd-05de2e998c7df2757ae63ce6a053e27eca3d13ca.tar.xz
mpd-05de2e998c7df2757ae63ce6a053e27eca3d13ca.zip
InputStream: use int64_t instead of goffset
Decouple some more from GLib.
Diffstat (limited to 'src/InputPlugin.hxx')
-rw-r--r--src/InputPlugin.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/InputPlugin.hxx b/src/InputPlugin.hxx
index f6976bf8d..134207584 100644
--- a/src/InputPlugin.hxx
+++ b/src/InputPlugin.hxx
@@ -23,9 +23,8 @@
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
-#include <glib.h>
-
#include <stddef.h>
+#include <stdint.h>
struct config_param;
struct input_stream;
@@ -33,6 +32,8 @@ class Error;
struct Tag;
struct InputPlugin {
+ typedef int64_t offset_type;
+
const char *name;
/**
@@ -85,7 +86,7 @@ struct InputPlugin {
size_t (*read)(struct input_stream *is, void *ptr, size_t size,
Error &error);
bool (*eof)(struct input_stream *is);
- bool (*seek)(struct input_stream *is, goffset offset, int whence,
+ bool (*seek)(struct input_stream *is, offset_type offset, int whence,
Error &error);
};