ATSC3  24.10.0
atsc_mw_httpproxy.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  *
4  * This file is part of a DTVKit Software Component
5  * You are permitted to copy, modify or distribute this file subject to the terms
6  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
7  *
8  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
10  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  *
12  * If you or your organisation is not a member of DTVKit then you have access
13  * to this source code outside of the terms of the licence agreement
14  * and you are expected to delete this and any associated files immediately.
15  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
16  *******************************************************************************/
17 
18 #ifndef ATSC_MW_HTTP_PROXY_H
19 #define ATSC_MW_HTTP_PROXY_H
20 
21 #pragma once
22 
23 #include <string>
24 #include <map>
25 
26 #include "atsc_types.h"
27 
35 namespace http_proxy {
36 
43  int32_t parse_header(char* pBuf, sHttpHeader_t* stHttpHeader);
44 
51  int32_t post_set_services(char *pUrl, char *pData, char *pAddr);
52 
59  int32_t response(int32_t iClient, int32_t iCode, int32_t iContentType, std::string sContent);
60 
67  std::string get_version(char* pFwVersion);
68 
75  std::string get_tuner(void* pTuner, int32_t iTunerId);
76 
83  std::string get_tuners(void *pTuners);
84 
91  std::string invalid_jsonrpc(void);
92 
99  bool post_notification(const char *pUrl);
100 
107  sJsonRpcProperties_t tuner_cmd(std::string sJson);
108 
115  sJsonRpcProperties_t request_jsonrpc(std::string sJson);
116 
123  std::string request_scan(std::string sUri, char *pContentData, void* pCls);
124 
131  std::string request_services(std::string sUri, char *pContentData, void *pCls);
132 
139  std::string request_dump(std::string sUri, int32_t iHttpType, void *pDump, void *pTuners);
140 
147  std::string request_tuners( std::string sUri, char *pContentData, void* pTunersCtrl );
148 
155  std::string request_user_service( std::string sUri, char *pContentData, void* pMwCls );
156 
163  std::string GetQueryHttpResponse( std::string sContentData ,void *pCoreCls );
164 
171  std::string method_atsccore_query_esgurls(sJsonRpcProperties_t stProperties,void *pCoreCls, void *pServices, char *pBaseurl);
172 
179  std::string method_atsccore_query_heldmsgs(sJsonRpcProperties_t stProperties, void *pCoreCls, void *pServices, char *pBaseurl);
180 
187  std::string method_atsccore_query_appbasedurls(sJsonRpcProperties_t stProperties, void *pCoreCls);
188 
195  std::string method_atsccore_query_slsurls(sJsonRpcProperties_t stProperties, void *pCoreCls);
196 
203  std::string method_atsccore_query_downloadstatus(sJsonRpcProperties_t stProperties, void *pCoreCls, void *pServices);
204 
211  std::string method_atsccore_remove_files(sJsonRpcProperties_t stProperties, void *pCoreCls, void *pServices);
212 
219  std::string method_atsccore_clear_esg(sJsonRpcProperties_t stProperties, void *pCoreCls, void *pServices);
220 
227  std::string method_atsccore_clear_files(sJsonRpcProperties_t stProperties, void *pCoreCls, void *pServices);
228 
235  std::string method_atsccore_clear_heldmsgs(sJsonRpcProperties_t stProperties, void *pCoreCls);
236 
243  std::string method_atsccore_query_heldurls(sJsonRpcProperties_t stProperties, void *pServices);
244 
251  std::string method_com_atsccore_atsc_storage(sJsonRpcProperties_t stProperties);
252 
259  std::string method_com_atsccore_atsc_list_subscribe(sJsonRpcProperties_t stProperties ,void *pSubscribe);
260 
267  std::string method_com_atsccore_atsc_subscribe(sJsonRpcProperties_t stProperties, void *pCoreCls ,void *pSubscribe);
268 
275  std::string method_com_atsccore_atsc_unsubscribe(sJsonRpcProperties_t stProperties, void *pCoreCls,void *pSubscribe);
276 
283  std::string method_com_atsccore_atsc_listobjects(sJsonRpcProperties_t stProperties, void *pCoreCls, void *pServices, char *pBaseurl);
284 
291  std::string PrepareTunerInfo(int32_t iInstance, sFeStatus_t *pStatus);
292 
299  std::string GetFrontendConfiguration( void );
300 };
301 #endif //ATSC_MW_HTTP_PROXY_H
Definition: atsc_mw_httpproxy.cpp:90
std::string GetFrontendConfiguration(void)
Get the tuner related configuration.
Definition: atsc_mw_httpproxy.cpp:1989
std::string invalid_jsonrpc(void)
Generates a JSON string representing an error response for an invalid JSON-RPC method.
Definition: atsc_mw_httpproxy.cpp:1189
Definition: atsc_types.h:302
Definition: atsc_types.h:448
Definition: atsc_types.h:411