diff options
author | methodus <methodus@web.de> | 2012-09-30 17:35:31 +0200 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-09-30 17:35:31 +0200 |
commit | eb75ac2a0b3608dcda454bfe4ac600663a2034ea (patch) | |
tree | 4454b86a4484c35d0b249d3d48217f3adf0c88c3 /httptnt | |
parent | c8e697daf68f1c545ee3962d2f2e9b411c56b4f2 (diff) | |
download | vdr-plugin-upnp-eb75ac2a0b3608dcda454bfe4ac600663a2034ea.tar.gz vdr-plugin-upnp-eb75ac2a0b3608dcda454bfe4ac600663a2034ea.tar.bz2 |
Working on plugin interface. Created initial structure and makefiles for primary profiler and provider plugins. They shall later handle DVB media streams for live TV and recordings.
Diffstat (limited to 'httptnt')
-rw-r--r-- | httptnt/resourceStreamer.ecpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/httptnt/resourceStreamer.ecpp b/httptnt/resourceStreamer.ecpp index 96c4ea4..3ab17bd 100644 --- a/httptnt/resourceStreamer.ecpp +++ b/httptnt/resourceStreamer.ecpp @@ -1,12 +1,12 @@ -//<%args> -//objectID; -//int resourceID = 0; -//</%args> -//<%pre> +<%args> +objectID; +int resourceID = 0; +</%args> +<%pre> #include <string> #include <stdint.h> #include <limits> -#include <memory> +#include <boost/shared_ptr.hpp> #include "../include/tools.h" #include "../include/media/mediaManager.h" #include "../include/server.h" @@ -16,11 +16,11 @@ #include <tnt/http.h> using namespace upnp; -//</%pre> -//<# +</%pre> +<# int doRequest(tnt::HttpReply reply, tnt::HttpRequest request, std::string objectID, int resourceID) { -//#> -//<%cpp> +#> +<%cpp> if(objectID.empty()){ reply.out() << "Object ID missing"; return HTTP_BAD_REQUEST; @@ -108,7 +108,7 @@ int doRequest(tnt::HttpReply reply, tnt::HttpRequest request, std::string object streamer->Close(); //reply.out() << std::flush; return code; -//</%cpp> -//<# +</%cpp> +<# } -//#> +#> |