From 216e4086520765fface77acd86a718dfb6e627e2 Mon Sep 17 00:00:00 2001 From: methodus Date: Sat, 15 Sep 2012 23:37:25 +0200 Subject: Anpassung der Plugin-Schnittstelle --- include/plugin.h | 21 ++++++++++++++++++++- include/service.h | 1 + 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/plugin.h b/include/plugin.h index 94a60da..29803f5 100644 --- a/include/plugin.h +++ b/include/plugin.h @@ -144,6 +144,8 @@ public: string GetParentID() const { return parentID; } bool SetTitle(string title); string GetTitle() const { return title; } + bool SetCreator(string creator); + string GetCreator() const { return creator; } bool SetUpnpClass(string upnpClass); string GetUpnpClass() const { return upnpClass; } bool SetRestricted(bool restricted); @@ -173,6 +175,7 @@ private: string objectID; string parentID; string title; + string creator; string upnpClass; bool restricted; string description; @@ -367,6 +370,22 @@ public: */ virtual size_t Read(char* buf, size_t bufLen); + /** + * Seeks in the stream + * + * This function sets the file curser to the specific byte position. + * + * The offset is added to the position relatively to "origin". + * This can be (from ): + * + * - SEEK_SET + * - SEEK_CUR + * - SEEK_END + * + * Returns true, if seeking was successful, false otherwise. + */ + virtual bool Seek(size_t offset, int origin); + /** * Closes the file * @@ -415,7 +434,7 @@ protected: * - change of the parent container, where the file or container * was moved to */ - void OnContainerUpdate(string uri, long containerUpdateId); + void OnContainerUpdate(string uri, long containerUpdateId, string changesUri = string()); }; diff --git a/include/service.h b/include/service.h index ddcf614..07d3551 100644 --- a/include/service.h +++ b/include/service.h @@ -9,6 +9,7 @@ #define SERVICE_H_ #include +#include #include namespace upnp { -- cgit v1.2.3