summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2012-09-15 23:37:25 +0200
committermethodus <methodus@web.de>2012-09-15 23:37:25 +0200
commit216e4086520765fface77acd86a718dfb6e627e2 (patch)
tree05c08d294174825e880f6e9af26db36c157bb78f /include
parent4d808c7f57e7de856154c7d13b6d2dc6501bb6fc (diff)
downloadvdr-plugin-upnp-216e4086520765fface77acd86a718dfb6e627e2.tar.gz
vdr-plugin-upnp-216e4086520765fface77acd86a718dfb6e627e2.tar.bz2
Anpassung der Plugin-Schnittstelle
Diffstat (limited to 'include')
-rw-r--r--include/plugin.h21
-rw-r--r--include/service.h1
2 files changed, 21 insertions, 1 deletions
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;
@@ -368,6 +371,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 <cstdio>):
+ *
+ * - 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
*
* This function closes the file opened by Open(). It MUST free all
@@ -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 <upnp/upnp.h>
+#include <vdr/thread.h>
#include <string>
namespace upnp {