InputStream: convert to class

This commit is contained in:
Max Kellermann
2014-05-11 15:34:48 +02:00
parent ee2afb35dd
commit 6773adc771
31 changed files with 132 additions and 70 deletions

View File

@@ -87,23 +87,23 @@ public:
protected:
void Lock() {
base.mutex.lock();
base.Lock();
}
void Unlock() {
base.mutex.unlock();
base.Unlock();
}
const char *GetURI() const {
assert(thread.IsInside());
return base.uri.c_str();
return base.GetURI();
}
void SetMimeType(const char *mime) {
assert(thread.IsInside());
base.mime = mime;
base.SetMimeType(mime);
}
/* to be implemented by the plugin */