mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-11-09 17:04:38 -06:00
* add example of camera onvif server
This commit is contained in:
9
examples/camera_onvif_server/.gitignore
vendored
Normal file
9
examples/camera_onvif_server/.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
build
|
||||
dist
|
||||
.config.mk
|
||||
.flash.conf.json
|
||||
data
|
||||
|
||||
/CMakeLists.txt
|
||||
|
||||
__pycache__
|
||||
28
examples/camera_onvif_server/README.md
Normal file
28
examples/camera_onvif_server/README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# ONVIF Camera Server
|
||||
|
||||
这个工程基于开源项目[onvif_srvd](https://github.com/KoynovStas/onvif_srvd)开发, 用于在MaixCAM2上运行支持ONVIF服务的IPC摄像头
|
||||
|
||||
This project is based on the open source project [onvif_srvd](https://github.com/KoynovStas/onvif_srvd), which is used to run an ONVIF service IPC camera on MaixCAM2
|
||||
|
||||
|
||||
运行命令参考:
|
||||
```shell
|
||||
./onvif_server --ifs wlan0 \
|
||||
--scope onvif://www.onvif.org/name/MaixCAM2 \
|
||||
--scope onvif://www.onvif.org/Profile/M \
|
||||
--manufacturer sipeed \
|
||||
--firmware_ver v4.12.5 \
|
||||
--model MaixCAM2 \
|
||||
--serial_num 12345678 \
|
||||
--hardware_id 11:22:33:44:55 \
|
||||
--name RTSP \
|
||||
--width 800 \
|
||||
--height 600 \
|
||||
--url rtsp://192.168.10.79:8554/live \
|
||||
--type JPEG \
|
||||
--log_file out.log \
|
||||
--no_fork \
|
||||
--port 8080
|
||||
```
|
||||
|
||||
关于generated文件, 该文件是基于onvif_srvd生成的, 请勿修改
|
||||
10
examples/camera_onvif_server/app.yaml
Normal file
10
examples/camera_onvif_server/app.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
id: camera_onvif_server
|
||||
name: ONVIF Camera Server
|
||||
name[zh]: ONVIF 摄像头服务
|
||||
version: 1.0.0
|
||||
author: Sipeed Ltd
|
||||
desc: Adapted for ONVIF protocol camera
|
||||
desc[zh]: 适用于ONVIF协议的摄像头服务
|
||||
files:
|
||||
# assets: assets
|
||||
|
||||
29
examples/camera_onvif_server/generated/DeviceBinding.nsmap
Normal file
29
examples/camera_onvif_server/generated/DeviceBinding.nsmap
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
#include "stdsoap2.h"
|
||||
/* This defines the global XML namespaces[] table to #include and compile */
|
||||
SOAP_NMAC struct Namespace namespaces[] = {
|
||||
{ "SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL },
|
||||
{ "SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL },
|
||||
{ "xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL },
|
||||
{ "xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL },
|
||||
{ "chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL },
|
||||
{ "wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL },
|
||||
{ "wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL },
|
||||
{ "wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL },
|
||||
{ "xmime", "http://tempuri.org/xmime.xsd", NULL, NULL },
|
||||
{ "xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL },
|
||||
{ "tt", "http://www.onvif.org/ver10/schema", NULL, NULL },
|
||||
{ "wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL },
|
||||
{ "tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL },
|
||||
{ "tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL },
|
||||
{ "trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL },
|
||||
{ "c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL },
|
||||
{ "ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL },
|
||||
{ "saml1", "urn:oasis:names:tc:SAML:1.0:assertion", NULL, NULL },
|
||||
{ "saml2", "urn:oasis:names:tc:SAML:2.0:assertion", NULL, NULL },
|
||||
{ "wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL },
|
||||
{ "xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL },
|
||||
{ "wsc", "http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL },
|
||||
{ "wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd", NULL },
|
||||
{ NULL, NULL, NULL, NULL}
|
||||
};
|
||||
29
examples/camera_onvif_server/generated/MediaBinding.nsmap
Normal file
29
examples/camera_onvif_server/generated/MediaBinding.nsmap
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
#include "stdsoap2.h"
|
||||
/* This defines the global XML namespaces[] table to #include and compile */
|
||||
SOAP_NMAC struct Namespace namespaces[] = {
|
||||
{ "SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL },
|
||||
{ "SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL },
|
||||
{ "xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL },
|
||||
{ "xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL },
|
||||
{ "chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL },
|
||||
{ "wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL },
|
||||
{ "wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL },
|
||||
{ "wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL },
|
||||
{ "xmime", "http://tempuri.org/xmime.xsd", NULL, NULL },
|
||||
{ "xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL },
|
||||
{ "tt", "http://www.onvif.org/ver10/schema", NULL, NULL },
|
||||
{ "wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL },
|
||||
{ "tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL },
|
||||
{ "tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL },
|
||||
{ "trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL },
|
||||
{ "c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL },
|
||||
{ "ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL },
|
||||
{ "saml1", "urn:oasis:names:tc:SAML:1.0:assertion", NULL, NULL },
|
||||
{ "saml2", "urn:oasis:names:tc:SAML:2.0:assertion", NULL, NULL },
|
||||
{ "wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL },
|
||||
{ "xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL },
|
||||
{ "wsc", "http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL },
|
||||
{ "wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd", NULL },
|
||||
{ NULL, NULL, NULL, NULL}
|
||||
};
|
||||
29
examples/camera_onvif_server/generated/PTZBinding.nsmap
Normal file
29
examples/camera_onvif_server/generated/PTZBinding.nsmap
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
#include "stdsoap2.h"
|
||||
/* This defines the global XML namespaces[] table to #include and compile */
|
||||
SOAP_NMAC struct Namespace namespaces[] = {
|
||||
{ "SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL },
|
||||
{ "SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL },
|
||||
{ "xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL },
|
||||
{ "xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL },
|
||||
{ "chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL },
|
||||
{ "wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL },
|
||||
{ "wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL },
|
||||
{ "wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL },
|
||||
{ "xmime", "http://tempuri.org/xmime.xsd", NULL, NULL },
|
||||
{ "xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL },
|
||||
{ "tt", "http://www.onvif.org/ver10/schema", NULL, NULL },
|
||||
{ "wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL },
|
||||
{ "tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL },
|
||||
{ "tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL },
|
||||
{ "trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL },
|
||||
{ "c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL },
|
||||
{ "ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL },
|
||||
{ "saml1", "urn:oasis:names:tc:SAML:1.0:assertion", NULL, NULL },
|
||||
{ "saml2", "urn:oasis:names:tc:SAML:2.0:assertion", NULL, NULL },
|
||||
{ "wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL },
|
||||
{ "xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL },
|
||||
{ "wsc", "http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL },
|
||||
{ "wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd", NULL },
|
||||
{ NULL, NULL, NULL, NULL}
|
||||
};
|
||||
57517
examples/camera_onvif_server/generated/onvif.h
Normal file
57517
examples/camera_onvif_server/generated/onvif.h
Normal file
File diff suppressed because it is too large
Load Diff
288780
examples/camera_onvif_server/generated/soapC.cpp
Normal file
288780
examples/camera_onvif_server/generated/soapC.cpp
Normal file
File diff suppressed because it is too large
Load Diff
4234
examples/camera_onvif_server/generated/soapDeviceBindingService.cpp
Normal file
4234
examples/camera_onvif_server/generated/soapDeviceBindingService.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,370 @@
|
||||
/* soapDeviceBindingService.h
|
||||
Generated by gSOAP 2.8.92 for /home/sipeed/onvif_srvd/generated/onvif.h
|
||||
|
||||
gSOAP XML Web services tools
|
||||
Copyright (C) 2000-2018, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||||
The soapcpp2 tool and its generated software are released under the GPL.
|
||||
This program is released under the GPL with the additional exemption that
|
||||
compiling, linking, and/or using OpenSSL is allowed.
|
||||
--------------------------------------------------------------------------------
|
||||
A commercial use license is available from Genivia Inc., contact@genivia.com
|
||||
--------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef soapDeviceBindingService_H
|
||||
#define soapDeviceBindingService_H
|
||||
#include "soapH.h"
|
||||
|
||||
class SOAP_CMAC DeviceBindingService {
|
||||
public:
|
||||
/// Context to manage service IO and data
|
||||
struct soap *soap;
|
||||
/// flag indicating that this context is owned by this service and should be deleted by the destructor
|
||||
bool soap_own;
|
||||
/// Variables globally declared in /home/sipeed/onvif_srvd/generated/onvif.h, if any
|
||||
/// Construct a service with new managing context
|
||||
DeviceBindingService();
|
||||
/// Copy constructor
|
||||
DeviceBindingService(const DeviceBindingService&);
|
||||
/// Construct service given a shared managing context
|
||||
DeviceBindingService(struct soap*);
|
||||
/// Constructor taking input+output mode flags for the new managing context
|
||||
DeviceBindingService(soap_mode iomode);
|
||||
/// Constructor taking input and output mode flags for the new managing context
|
||||
DeviceBindingService(soap_mode imode, soap_mode omode);
|
||||
/// Destructor deletes deserialized data and its managing context, when the context was allocated by the constructor
|
||||
virtual ~DeviceBindingService();
|
||||
/// Delete all deserialized data (with soap_destroy() and soap_end())
|
||||
virtual void destroy();
|
||||
/// Delete all deserialized data and reset to defaults
|
||||
virtual void reset();
|
||||
/// Initializer used by constructors
|
||||
virtual void DeviceBindingService_init(soap_mode imode, soap_mode omode);
|
||||
/// Return a copy that has a new managing context with the same engine state
|
||||
virtual DeviceBindingService *copy() SOAP_PURE_VIRTUAL_COPY;
|
||||
/// Copy assignment
|
||||
DeviceBindingService& operator=(const DeviceBindingService&);
|
||||
/// Close connection (normally automatic)
|
||||
virtual int soap_close_socket();
|
||||
/// Force close connection (can kill a thread blocked on IO)
|
||||
virtual int soap_force_close_socket();
|
||||
/// Return sender-related fault to sender
|
||||
virtual int soap_senderfault(const char *string, const char *detailXML);
|
||||
/// Return sender-related fault with SOAP 1.2 subcode to sender
|
||||
virtual int soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML);
|
||||
/// Return receiver-related fault to sender
|
||||
virtual int soap_receiverfault(const char *string, const char *detailXML);
|
||||
/// Return receiver-related fault with SOAP 1.2 subcode to sender
|
||||
virtual int soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML);
|
||||
/// Print fault
|
||||
virtual void soap_print_fault(FILE*);
|
||||
#ifndef WITH_LEAN
|
||||
#ifndef WITH_COMPAT
|
||||
/// Print fault to stream
|
||||
virtual void soap_stream_fault(std::ostream&);
|
||||
#endif
|
||||
/// Write fault to buffer
|
||||
virtual char *soap_sprint_fault(char *buf, size_t len);
|
||||
#endif
|
||||
/// Disables and removes SOAP Header from message by setting soap->header = NULL
|
||||
virtual void soap_noheader();
|
||||
/// Add SOAP Header to message
|
||||
virtual void soap_header(char *wsa5__MessageID, struct wsa5__RelatesToType *wsa5__RelatesTo, struct wsa5__EndpointReferenceType *wsa5__From, struct wsa5__EndpointReferenceType *wsa5__ReplyTo, struct wsa5__EndpointReferenceType *wsa5__FaultTo, char *wsa5__To, char *wsa5__Action, struct chan__ChannelInstanceType *chan__ChannelInstance, struct _wsse__Security *wsse__Security);
|
||||
/// Get SOAP Header structure (i.e. soap->header, which is NULL when absent)
|
||||
virtual ::SOAP_ENV__Header *soap_header();
|
||||
#ifndef WITH_NOIO
|
||||
/// Run simple single-thread (iterative, non-SSL) service on port until a connection error occurs (returns SOAP_OK or error code), use this->bind_flag = SO_REUSEADDR to rebind for immediate rerun
|
||||
virtual int run(int port, int backlog = 1);
|
||||
#if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
|
||||
/// Run simple single-thread SSL service on port until a connection error occurs (returns SOAP_OK or error code), use this->bind_flag = SO_REUSEADDR to rebind for immediate rerun
|
||||
virtual int ssl_run(int port, int backlog = 1);
|
||||
#endif
|
||||
/// Bind service to port (returns master socket or SOAP_INVALID_SOCKET upon error)
|
||||
virtual SOAP_SOCKET bind(const char *host, int port, int backlog);
|
||||
/// Accept next request (returns socket or SOAP_INVALID_SOCKET upon error)
|
||||
virtual SOAP_SOCKET accept();
|
||||
#if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
|
||||
/// When SSL is used, after accept() should perform and accept SSL handshake
|
||||
virtual int ssl_accept();
|
||||
#endif
|
||||
#endif
|
||||
/// After accept() serve the pending request (returns SOAP_OK or error code)
|
||||
virtual int serve();
|
||||
/// Used by serve() to dispatch a pending request (returns SOAP_OK or error code)
|
||||
virtual int dispatch();
|
||||
virtual int dispatch(struct soap *soap);
|
||||
//
|
||||
// Service operations are listed below: you should define these
|
||||
// Note: compile with -DWITH_PURE_VIRTUAL to declare pure virtual methods
|
||||
//
|
||||
/// Web service operation 'GetServices' implementation, should return SOAP_OK or error code
|
||||
virtual int GetServices(_tds__GetServices *tds__GetServices, _tds__GetServicesResponse &tds__GetServicesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetServiceCapabilities' implementation, should return SOAP_OK or error code
|
||||
virtual int GetServiceCapabilities(_tds__GetServiceCapabilities *tds__GetServiceCapabilities, _tds__GetServiceCapabilitiesResponse &tds__GetServiceCapabilitiesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetDeviceInformation' implementation, should return SOAP_OK or error code
|
||||
virtual int GetDeviceInformation(_tds__GetDeviceInformation *tds__GetDeviceInformation, _tds__GetDeviceInformationResponse &tds__GetDeviceInformationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetSystemDateAndTime' implementation, should return SOAP_OK or error code
|
||||
virtual int SetSystemDateAndTime(_tds__SetSystemDateAndTime *tds__SetSystemDateAndTime, _tds__SetSystemDateAndTimeResponse &tds__SetSystemDateAndTimeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetSystemDateAndTime' implementation, should return SOAP_OK or error code
|
||||
virtual int GetSystemDateAndTime(_tds__GetSystemDateAndTime *tds__GetSystemDateAndTime, _tds__GetSystemDateAndTimeResponse &tds__GetSystemDateAndTimeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetSystemFactoryDefault' implementation, should return SOAP_OK or error code
|
||||
virtual int SetSystemFactoryDefault(_tds__SetSystemFactoryDefault *tds__SetSystemFactoryDefault, _tds__SetSystemFactoryDefaultResponse &tds__SetSystemFactoryDefaultResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'UpgradeSystemFirmware' implementation, should return SOAP_OK or error code
|
||||
virtual int UpgradeSystemFirmware(_tds__UpgradeSystemFirmware *tds__UpgradeSystemFirmware, _tds__UpgradeSystemFirmwareResponse &tds__UpgradeSystemFirmwareResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SystemReboot' implementation, should return SOAP_OK or error code
|
||||
virtual int SystemReboot(_tds__SystemReboot *tds__SystemReboot, _tds__SystemRebootResponse &tds__SystemRebootResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RestoreSystem' implementation, should return SOAP_OK or error code
|
||||
virtual int RestoreSystem(_tds__RestoreSystem *tds__RestoreSystem, _tds__RestoreSystemResponse &tds__RestoreSystemResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetSystemBackup' implementation, should return SOAP_OK or error code
|
||||
virtual int GetSystemBackup(_tds__GetSystemBackup *tds__GetSystemBackup, _tds__GetSystemBackupResponse &tds__GetSystemBackupResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetSystemLog' implementation, should return SOAP_OK or error code
|
||||
virtual int GetSystemLog(_tds__GetSystemLog *tds__GetSystemLog, _tds__GetSystemLogResponse &tds__GetSystemLogResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetSystemSupportInformation' implementation, should return SOAP_OK or error code
|
||||
virtual int GetSystemSupportInformation(_tds__GetSystemSupportInformation *tds__GetSystemSupportInformation, _tds__GetSystemSupportInformationResponse &tds__GetSystemSupportInformationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetScopes' implementation, should return SOAP_OK or error code
|
||||
virtual int GetScopes(_tds__GetScopes *tds__GetScopes, _tds__GetScopesResponse &tds__GetScopesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetScopes' implementation, should return SOAP_OK or error code
|
||||
virtual int SetScopes(_tds__SetScopes *tds__SetScopes, _tds__SetScopesResponse &tds__SetScopesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddScopes' implementation, should return SOAP_OK or error code
|
||||
virtual int AddScopes(_tds__AddScopes *tds__AddScopes, _tds__AddScopesResponse &tds__AddScopesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveScopes' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveScopes(_tds__RemoveScopes *tds__RemoveScopes, _tds__RemoveScopesResponse &tds__RemoveScopesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetDiscoveryMode' implementation, should return SOAP_OK or error code
|
||||
virtual int GetDiscoveryMode(_tds__GetDiscoveryMode *tds__GetDiscoveryMode, _tds__GetDiscoveryModeResponse &tds__GetDiscoveryModeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetDiscoveryMode' implementation, should return SOAP_OK or error code
|
||||
virtual int SetDiscoveryMode(_tds__SetDiscoveryMode *tds__SetDiscoveryMode, _tds__SetDiscoveryModeResponse &tds__SetDiscoveryModeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetRemoteDiscoveryMode' implementation, should return SOAP_OK or error code
|
||||
virtual int GetRemoteDiscoveryMode(_tds__GetRemoteDiscoveryMode *tds__GetRemoteDiscoveryMode, _tds__GetRemoteDiscoveryModeResponse &tds__GetRemoteDiscoveryModeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetRemoteDiscoveryMode' implementation, should return SOAP_OK or error code
|
||||
virtual int SetRemoteDiscoveryMode(_tds__SetRemoteDiscoveryMode *tds__SetRemoteDiscoveryMode, _tds__SetRemoteDiscoveryModeResponse &tds__SetRemoteDiscoveryModeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetDPAddresses' implementation, should return SOAP_OK or error code
|
||||
virtual int GetDPAddresses(_tds__GetDPAddresses *tds__GetDPAddresses, _tds__GetDPAddressesResponse &tds__GetDPAddressesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetEndpointReference' implementation, should return SOAP_OK or error code
|
||||
virtual int GetEndpointReference(_tds__GetEndpointReference *tds__GetEndpointReference, _tds__GetEndpointReferenceResponse &tds__GetEndpointReferenceResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetRemoteUser' implementation, should return SOAP_OK or error code
|
||||
virtual int GetRemoteUser(_tds__GetRemoteUser *tds__GetRemoteUser, _tds__GetRemoteUserResponse &tds__GetRemoteUserResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetRemoteUser' implementation, should return SOAP_OK or error code
|
||||
virtual int SetRemoteUser(_tds__SetRemoteUser *tds__SetRemoteUser, _tds__SetRemoteUserResponse &tds__SetRemoteUserResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetUsers' implementation, should return SOAP_OK or error code
|
||||
virtual int GetUsers(_tds__GetUsers *tds__GetUsers, _tds__GetUsersResponse &tds__GetUsersResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'CreateUsers' implementation, should return SOAP_OK or error code
|
||||
virtual int CreateUsers(_tds__CreateUsers *tds__CreateUsers, _tds__CreateUsersResponse &tds__CreateUsersResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'DeleteUsers' implementation, should return SOAP_OK or error code
|
||||
virtual int DeleteUsers(_tds__DeleteUsers *tds__DeleteUsers, _tds__DeleteUsersResponse &tds__DeleteUsersResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetUser' implementation, should return SOAP_OK or error code
|
||||
virtual int SetUser(_tds__SetUser *tds__SetUser, _tds__SetUserResponse &tds__SetUserResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetWsdlUrl' implementation, should return SOAP_OK or error code
|
||||
virtual int GetWsdlUrl(_tds__GetWsdlUrl *tds__GetWsdlUrl, _tds__GetWsdlUrlResponse &tds__GetWsdlUrlResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCapabilities' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCapabilities(_tds__GetCapabilities *tds__GetCapabilities, _tds__GetCapabilitiesResponse &tds__GetCapabilitiesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetDPAddresses' implementation, should return SOAP_OK or error code
|
||||
virtual int SetDPAddresses(_tds__SetDPAddresses *tds__SetDPAddresses, _tds__SetDPAddressesResponse &tds__SetDPAddressesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetHostname' implementation, should return SOAP_OK or error code
|
||||
virtual int GetHostname(_tds__GetHostname *tds__GetHostname, _tds__GetHostnameResponse &tds__GetHostnameResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetHostname' implementation, should return SOAP_OK or error code
|
||||
virtual int SetHostname(_tds__SetHostname *tds__SetHostname, _tds__SetHostnameResponse &tds__SetHostnameResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetHostnameFromDHCP' implementation, should return SOAP_OK or error code
|
||||
virtual int SetHostnameFromDHCP(_tds__SetHostnameFromDHCP *tds__SetHostnameFromDHCP, _tds__SetHostnameFromDHCPResponse &tds__SetHostnameFromDHCPResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetDNS' implementation, should return SOAP_OK or error code
|
||||
virtual int GetDNS(_tds__GetDNS *tds__GetDNS, _tds__GetDNSResponse &tds__GetDNSResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetDNS' implementation, should return SOAP_OK or error code
|
||||
virtual int SetDNS(_tds__SetDNS *tds__SetDNS, _tds__SetDNSResponse &tds__SetDNSResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetNTP' implementation, should return SOAP_OK or error code
|
||||
virtual int GetNTP(_tds__GetNTP *tds__GetNTP, _tds__GetNTPResponse &tds__GetNTPResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetNTP' implementation, should return SOAP_OK or error code
|
||||
virtual int SetNTP(_tds__SetNTP *tds__SetNTP, _tds__SetNTPResponse &tds__SetNTPResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetDynamicDNS' implementation, should return SOAP_OK or error code
|
||||
virtual int GetDynamicDNS(_tds__GetDynamicDNS *tds__GetDynamicDNS, _tds__GetDynamicDNSResponse &tds__GetDynamicDNSResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetDynamicDNS' implementation, should return SOAP_OK or error code
|
||||
virtual int SetDynamicDNS(_tds__SetDynamicDNS *tds__SetDynamicDNS, _tds__SetDynamicDNSResponse &tds__SetDynamicDNSResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetNetworkInterfaces' implementation, should return SOAP_OK or error code
|
||||
virtual int GetNetworkInterfaces(_tds__GetNetworkInterfaces *tds__GetNetworkInterfaces, _tds__GetNetworkInterfacesResponse &tds__GetNetworkInterfacesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetNetworkInterfaces' implementation, should return SOAP_OK or error code
|
||||
virtual int SetNetworkInterfaces(_tds__SetNetworkInterfaces *tds__SetNetworkInterfaces, _tds__SetNetworkInterfacesResponse &tds__SetNetworkInterfacesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetNetworkProtocols' implementation, should return SOAP_OK or error code
|
||||
virtual int GetNetworkProtocols(_tds__GetNetworkProtocols *tds__GetNetworkProtocols, _tds__GetNetworkProtocolsResponse &tds__GetNetworkProtocolsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetNetworkProtocols' implementation, should return SOAP_OK or error code
|
||||
virtual int SetNetworkProtocols(_tds__SetNetworkProtocols *tds__SetNetworkProtocols, _tds__SetNetworkProtocolsResponse &tds__SetNetworkProtocolsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetNetworkDefaultGateway' implementation, should return SOAP_OK or error code
|
||||
virtual int GetNetworkDefaultGateway(_tds__GetNetworkDefaultGateway *tds__GetNetworkDefaultGateway, _tds__GetNetworkDefaultGatewayResponse &tds__GetNetworkDefaultGatewayResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetNetworkDefaultGateway' implementation, should return SOAP_OK or error code
|
||||
virtual int SetNetworkDefaultGateway(_tds__SetNetworkDefaultGateway *tds__SetNetworkDefaultGateway, _tds__SetNetworkDefaultGatewayResponse &tds__SetNetworkDefaultGatewayResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetZeroConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetZeroConfiguration(_tds__GetZeroConfiguration *tds__GetZeroConfiguration, _tds__GetZeroConfigurationResponse &tds__GetZeroConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetZeroConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetZeroConfiguration(_tds__SetZeroConfiguration *tds__SetZeroConfiguration, _tds__SetZeroConfigurationResponse &tds__SetZeroConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetIPAddressFilter' implementation, should return SOAP_OK or error code
|
||||
virtual int GetIPAddressFilter(_tds__GetIPAddressFilter *tds__GetIPAddressFilter, _tds__GetIPAddressFilterResponse &tds__GetIPAddressFilterResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetIPAddressFilter' implementation, should return SOAP_OK or error code
|
||||
virtual int SetIPAddressFilter(_tds__SetIPAddressFilter *tds__SetIPAddressFilter, _tds__SetIPAddressFilterResponse &tds__SetIPAddressFilterResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddIPAddressFilter' implementation, should return SOAP_OK or error code
|
||||
virtual int AddIPAddressFilter(_tds__AddIPAddressFilter *tds__AddIPAddressFilter, _tds__AddIPAddressFilterResponse &tds__AddIPAddressFilterResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveIPAddressFilter' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveIPAddressFilter(_tds__RemoveIPAddressFilter *tds__RemoveIPAddressFilter, _tds__RemoveIPAddressFilterResponse &tds__RemoveIPAddressFilterResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAccessPolicy' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAccessPolicy(_tds__GetAccessPolicy *tds__GetAccessPolicy, _tds__GetAccessPolicyResponse &tds__GetAccessPolicyResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetAccessPolicy' implementation, should return SOAP_OK or error code
|
||||
virtual int SetAccessPolicy(_tds__SetAccessPolicy *tds__SetAccessPolicy, _tds__SetAccessPolicyResponse &tds__SetAccessPolicyResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'CreateCertificate' implementation, should return SOAP_OK or error code
|
||||
virtual int CreateCertificate(_tds__CreateCertificate *tds__CreateCertificate, _tds__CreateCertificateResponse &tds__CreateCertificateResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCertificates' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCertificates(_tds__GetCertificates *tds__GetCertificates, _tds__GetCertificatesResponse &tds__GetCertificatesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCertificatesStatus' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCertificatesStatus(_tds__GetCertificatesStatus *tds__GetCertificatesStatus, _tds__GetCertificatesStatusResponse &tds__GetCertificatesStatusResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetCertificatesStatus' implementation, should return SOAP_OK or error code
|
||||
virtual int SetCertificatesStatus(_tds__SetCertificatesStatus *tds__SetCertificatesStatus, _tds__SetCertificatesStatusResponse &tds__SetCertificatesStatusResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'DeleteCertificates' implementation, should return SOAP_OK or error code
|
||||
virtual int DeleteCertificates(_tds__DeleteCertificates *tds__DeleteCertificates, _tds__DeleteCertificatesResponse &tds__DeleteCertificatesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetPkcs10Request' implementation, should return SOAP_OK or error code
|
||||
virtual int GetPkcs10Request(_tds__GetPkcs10Request *tds__GetPkcs10Request, _tds__GetPkcs10RequestResponse &tds__GetPkcs10RequestResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'LoadCertificates' implementation, should return SOAP_OK or error code
|
||||
virtual int LoadCertificates(_tds__LoadCertificates *tds__LoadCertificates, _tds__LoadCertificatesResponse &tds__LoadCertificatesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetClientCertificateMode' implementation, should return SOAP_OK or error code
|
||||
virtual int GetClientCertificateMode(_tds__GetClientCertificateMode *tds__GetClientCertificateMode, _tds__GetClientCertificateModeResponse &tds__GetClientCertificateModeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetClientCertificateMode' implementation, should return SOAP_OK or error code
|
||||
virtual int SetClientCertificateMode(_tds__SetClientCertificateMode *tds__SetClientCertificateMode, _tds__SetClientCertificateModeResponse &tds__SetClientCertificateModeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetRelayOutputs' implementation, should return SOAP_OK or error code
|
||||
virtual int GetRelayOutputs(_tds__GetRelayOutputs *tds__GetRelayOutputs, _tds__GetRelayOutputsResponse &tds__GetRelayOutputsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetRelayOutputSettings' implementation, should return SOAP_OK or error code
|
||||
virtual int SetRelayOutputSettings(_tds__SetRelayOutputSettings *tds__SetRelayOutputSettings, _tds__SetRelayOutputSettingsResponse &tds__SetRelayOutputSettingsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetRelayOutputState' implementation, should return SOAP_OK or error code
|
||||
virtual int SetRelayOutputState(_tds__SetRelayOutputState *tds__SetRelayOutputState, _tds__SetRelayOutputStateResponse &tds__SetRelayOutputStateResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SendAuxiliaryCommand' implementation, should return SOAP_OK or error code
|
||||
virtual int SendAuxiliaryCommand(_tds__SendAuxiliaryCommand *tds__SendAuxiliaryCommand, _tds__SendAuxiliaryCommandResponse &tds__SendAuxiliaryCommandResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCACertificates' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCACertificates(_tds__GetCACertificates *tds__GetCACertificates, _tds__GetCACertificatesResponse &tds__GetCACertificatesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'LoadCertificateWithPrivateKey' implementation, should return SOAP_OK or error code
|
||||
virtual int LoadCertificateWithPrivateKey(_tds__LoadCertificateWithPrivateKey *tds__LoadCertificateWithPrivateKey, _tds__LoadCertificateWithPrivateKeyResponse &tds__LoadCertificateWithPrivateKeyResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCertificateInformation' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCertificateInformation(_tds__GetCertificateInformation *tds__GetCertificateInformation, _tds__GetCertificateInformationResponse &tds__GetCertificateInformationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'LoadCACertificates' implementation, should return SOAP_OK or error code
|
||||
virtual int LoadCACertificates(_tds__LoadCACertificates *tds__LoadCACertificates, _tds__LoadCACertificatesResponse &tds__LoadCACertificatesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'CreateDot1XConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int CreateDot1XConfiguration(_tds__CreateDot1XConfiguration *tds__CreateDot1XConfiguration, _tds__CreateDot1XConfigurationResponse &tds__CreateDot1XConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetDot1XConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetDot1XConfiguration(_tds__SetDot1XConfiguration *tds__SetDot1XConfiguration, _tds__SetDot1XConfigurationResponse &tds__SetDot1XConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetDot1XConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetDot1XConfiguration(_tds__GetDot1XConfiguration *tds__GetDot1XConfiguration, _tds__GetDot1XConfigurationResponse &tds__GetDot1XConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetDot1XConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetDot1XConfigurations(_tds__GetDot1XConfigurations *tds__GetDot1XConfigurations, _tds__GetDot1XConfigurationsResponse &tds__GetDot1XConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'DeleteDot1XConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int DeleteDot1XConfiguration(_tds__DeleteDot1XConfiguration *tds__DeleteDot1XConfiguration, _tds__DeleteDot1XConfigurationResponse &tds__DeleteDot1XConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetDot11Capabilities' implementation, should return SOAP_OK or error code
|
||||
virtual int GetDot11Capabilities(_tds__GetDot11Capabilities *tds__GetDot11Capabilities, _tds__GetDot11CapabilitiesResponse &tds__GetDot11CapabilitiesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetDot11Status' implementation, should return SOAP_OK or error code
|
||||
virtual int GetDot11Status(_tds__GetDot11Status *tds__GetDot11Status, _tds__GetDot11StatusResponse &tds__GetDot11StatusResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'ScanAvailableDot11Networks' implementation, should return SOAP_OK or error code
|
||||
virtual int ScanAvailableDot11Networks(_tds__ScanAvailableDot11Networks *tds__ScanAvailableDot11Networks, _tds__ScanAvailableDot11NetworksResponse &tds__ScanAvailableDot11NetworksResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetSystemUris' implementation, should return SOAP_OK or error code
|
||||
virtual int GetSystemUris(_tds__GetSystemUris *tds__GetSystemUris, _tds__GetSystemUrisResponse &tds__GetSystemUrisResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'StartFirmwareUpgrade' implementation, should return SOAP_OK or error code
|
||||
virtual int StartFirmwareUpgrade(_tds__StartFirmwareUpgrade *tds__StartFirmwareUpgrade, _tds__StartFirmwareUpgradeResponse &tds__StartFirmwareUpgradeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'StartSystemRestore' implementation, should return SOAP_OK or error code
|
||||
virtual int StartSystemRestore(_tds__StartSystemRestore *tds__StartSystemRestore, _tds__StartSystemRestoreResponse &tds__StartSystemRestoreResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetStorageConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetStorageConfigurations(_tds__GetStorageConfigurations *tds__GetStorageConfigurations, _tds__GetStorageConfigurationsResponse &tds__GetStorageConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'CreateStorageConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int CreateStorageConfiguration(_tds__CreateStorageConfiguration *tds__CreateStorageConfiguration, _tds__CreateStorageConfigurationResponse &tds__CreateStorageConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetStorageConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetStorageConfiguration(_tds__GetStorageConfiguration *tds__GetStorageConfiguration, _tds__GetStorageConfigurationResponse &tds__GetStorageConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetStorageConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetStorageConfiguration(_tds__SetStorageConfiguration *tds__SetStorageConfiguration, _tds__SetStorageConfigurationResponse &tds__SetStorageConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'DeleteStorageConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int DeleteStorageConfiguration(_tds__DeleteStorageConfiguration *tds__DeleteStorageConfiguration, _tds__DeleteStorageConfigurationResponse &tds__DeleteStorageConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetGeoLocation' implementation, should return SOAP_OK or error code
|
||||
virtual int GetGeoLocation(_tds__GetGeoLocation *tds__GetGeoLocation, _tds__GetGeoLocationResponse &tds__GetGeoLocationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetGeoLocation' implementation, should return SOAP_OK or error code
|
||||
virtual int SetGeoLocation(_tds__SetGeoLocation *tds__SetGeoLocation, _tds__SetGeoLocationResponse &tds__SetGeoLocationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'DeleteGeoLocation' implementation, should return SOAP_OK or error code
|
||||
virtual int DeleteGeoLocation(_tds__DeleteGeoLocation *tds__DeleteGeoLocation, _tds__DeleteGeoLocationResponse &tds__DeleteGeoLocationResponse) SOAP_PURE_VIRTUAL;
|
||||
};
|
||||
#endif
|
||||
155284
examples/camera_onvif_server/generated/soapH.h
Normal file
155284
examples/camera_onvif_server/generated/soapH.h
Normal file
File diff suppressed because it is too large
Load Diff
3750
examples/camera_onvif_server/generated/soapMediaBindingService.cpp
Normal file
3750
examples/camera_onvif_server/generated/soapMediaBindingService.cpp
Normal file
File diff suppressed because it is too large
Load Diff
337
examples/camera_onvif_server/generated/soapMediaBindingService.h
Normal file
337
examples/camera_onvif_server/generated/soapMediaBindingService.h
Normal file
@@ -0,0 +1,337 @@
|
||||
/* soapMediaBindingService.h
|
||||
Generated by gSOAP 2.8.92 for /home/sipeed/onvif_srvd/generated/onvif.h
|
||||
|
||||
gSOAP XML Web services tools
|
||||
Copyright (C) 2000-2018, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||||
The soapcpp2 tool and its generated software are released under the GPL.
|
||||
This program is released under the GPL with the additional exemption that
|
||||
compiling, linking, and/or using OpenSSL is allowed.
|
||||
--------------------------------------------------------------------------------
|
||||
A commercial use license is available from Genivia Inc., contact@genivia.com
|
||||
--------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef soapMediaBindingService_H
|
||||
#define soapMediaBindingService_H
|
||||
#include "soapH.h"
|
||||
|
||||
class SOAP_CMAC MediaBindingService {
|
||||
public:
|
||||
/// Context to manage service IO and data
|
||||
struct soap *soap;
|
||||
/// flag indicating that this context is owned by this service and should be deleted by the destructor
|
||||
bool soap_own;
|
||||
/// Variables globally declared in /home/sipeed/onvif_srvd/generated/onvif.h, if any
|
||||
/// Construct a service with new managing context
|
||||
MediaBindingService();
|
||||
/// Copy constructor
|
||||
MediaBindingService(const MediaBindingService&);
|
||||
/// Construct service given a shared managing context
|
||||
MediaBindingService(struct soap*);
|
||||
/// Constructor taking input+output mode flags for the new managing context
|
||||
MediaBindingService(soap_mode iomode);
|
||||
/// Constructor taking input and output mode flags for the new managing context
|
||||
MediaBindingService(soap_mode imode, soap_mode omode);
|
||||
/// Destructor deletes deserialized data and its managing context, when the context was allocated by the constructor
|
||||
virtual ~MediaBindingService();
|
||||
/// Delete all deserialized data (with soap_destroy() and soap_end())
|
||||
virtual void destroy();
|
||||
/// Delete all deserialized data and reset to defaults
|
||||
virtual void reset();
|
||||
/// Initializer used by constructors
|
||||
virtual void MediaBindingService_init(soap_mode imode, soap_mode omode);
|
||||
/// Return a copy that has a new managing context with the same engine state
|
||||
virtual MediaBindingService *copy() SOAP_PURE_VIRTUAL_COPY;
|
||||
/// Copy assignment
|
||||
MediaBindingService& operator=(const MediaBindingService&);
|
||||
/// Close connection (normally automatic)
|
||||
virtual int soap_close_socket();
|
||||
/// Force close connection (can kill a thread blocked on IO)
|
||||
virtual int soap_force_close_socket();
|
||||
/// Return sender-related fault to sender
|
||||
virtual int soap_senderfault(const char *string, const char *detailXML);
|
||||
/// Return sender-related fault with SOAP 1.2 subcode to sender
|
||||
virtual int soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML);
|
||||
/// Return receiver-related fault to sender
|
||||
virtual int soap_receiverfault(const char *string, const char *detailXML);
|
||||
/// Return receiver-related fault with SOAP 1.2 subcode to sender
|
||||
virtual int soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML);
|
||||
/// Print fault
|
||||
virtual void soap_print_fault(FILE*);
|
||||
#ifndef WITH_LEAN
|
||||
#ifndef WITH_COMPAT
|
||||
/// Print fault to stream
|
||||
virtual void soap_stream_fault(std::ostream&);
|
||||
#endif
|
||||
/// Write fault to buffer
|
||||
virtual char *soap_sprint_fault(char *buf, size_t len);
|
||||
#endif
|
||||
/// Disables and removes SOAP Header from message by setting soap->header = NULL
|
||||
virtual void soap_noheader();
|
||||
/// Add SOAP Header to message
|
||||
virtual void soap_header(char *wsa5__MessageID, struct wsa5__RelatesToType *wsa5__RelatesTo, struct wsa5__EndpointReferenceType *wsa5__From, struct wsa5__EndpointReferenceType *wsa5__ReplyTo, struct wsa5__EndpointReferenceType *wsa5__FaultTo, char *wsa5__To, char *wsa5__Action, struct chan__ChannelInstanceType *chan__ChannelInstance, struct _wsse__Security *wsse__Security);
|
||||
/// Get SOAP Header structure (i.e. soap->header, which is NULL when absent)
|
||||
virtual ::SOAP_ENV__Header *soap_header();
|
||||
#ifndef WITH_NOIO
|
||||
/// Run simple single-thread (iterative, non-SSL) service on port until a connection error occurs (returns SOAP_OK or error code), use this->bind_flag = SO_REUSEADDR to rebind for immediate rerun
|
||||
virtual int run(int port, int backlog = 1);
|
||||
#if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
|
||||
/// Run simple single-thread SSL service on port until a connection error occurs (returns SOAP_OK or error code), use this->bind_flag = SO_REUSEADDR to rebind for immediate rerun
|
||||
virtual int ssl_run(int port, int backlog = 1);
|
||||
#endif
|
||||
/// Bind service to port (returns master socket or SOAP_INVALID_SOCKET upon error)
|
||||
virtual SOAP_SOCKET bind(const char *host, int port, int backlog);
|
||||
/// Accept next request (returns socket or SOAP_INVALID_SOCKET upon error)
|
||||
virtual SOAP_SOCKET accept();
|
||||
#if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
|
||||
/// When SSL is used, after accept() should perform and accept SSL handshake
|
||||
virtual int ssl_accept();
|
||||
#endif
|
||||
#endif
|
||||
/// After accept() serve the pending request (returns SOAP_OK or error code)
|
||||
virtual int serve();
|
||||
/// Used by serve() to dispatch a pending request (returns SOAP_OK or error code)
|
||||
virtual int dispatch();
|
||||
virtual int dispatch(struct soap *soap);
|
||||
//
|
||||
// Service operations are listed below: you should define these
|
||||
// Note: compile with -DWITH_PURE_VIRTUAL to declare pure virtual methods
|
||||
//
|
||||
/// Web service operation 'GetServiceCapabilities' implementation, should return SOAP_OK or error code
|
||||
virtual int GetServiceCapabilities(_trt__GetServiceCapabilities *trt__GetServiceCapabilities, _trt__GetServiceCapabilitiesResponse &trt__GetServiceCapabilitiesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoSources' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoSources(_trt__GetVideoSources *trt__GetVideoSources, _trt__GetVideoSourcesResponse &trt__GetVideoSourcesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioSources' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioSources(_trt__GetAudioSources *trt__GetAudioSources, _trt__GetAudioSourcesResponse &trt__GetAudioSourcesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioOutputs' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioOutputs(_trt__GetAudioOutputs *trt__GetAudioOutputs, _trt__GetAudioOutputsResponse &trt__GetAudioOutputsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'CreateProfile' implementation, should return SOAP_OK or error code
|
||||
virtual int CreateProfile(_trt__CreateProfile *trt__CreateProfile, _trt__CreateProfileResponse &trt__CreateProfileResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetProfile' implementation, should return SOAP_OK or error code
|
||||
virtual int GetProfile(_trt__GetProfile *trt__GetProfile, _trt__GetProfileResponse &trt__GetProfileResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetProfiles' implementation, should return SOAP_OK or error code
|
||||
virtual int GetProfiles(_trt__GetProfiles *trt__GetProfiles, _trt__GetProfilesResponse &trt__GetProfilesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddVideoEncoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int AddVideoEncoderConfiguration(_trt__AddVideoEncoderConfiguration *trt__AddVideoEncoderConfiguration, _trt__AddVideoEncoderConfigurationResponse &trt__AddVideoEncoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddVideoSourceConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int AddVideoSourceConfiguration(_trt__AddVideoSourceConfiguration *trt__AddVideoSourceConfiguration, _trt__AddVideoSourceConfigurationResponse &trt__AddVideoSourceConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddAudioEncoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int AddAudioEncoderConfiguration(_trt__AddAudioEncoderConfiguration *trt__AddAudioEncoderConfiguration, _trt__AddAudioEncoderConfigurationResponse &trt__AddAudioEncoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddAudioSourceConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int AddAudioSourceConfiguration(_trt__AddAudioSourceConfiguration *trt__AddAudioSourceConfiguration, _trt__AddAudioSourceConfigurationResponse &trt__AddAudioSourceConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddPTZConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int AddPTZConfiguration(_trt__AddPTZConfiguration *trt__AddPTZConfiguration, _trt__AddPTZConfigurationResponse &trt__AddPTZConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddVideoAnalyticsConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int AddVideoAnalyticsConfiguration(_trt__AddVideoAnalyticsConfiguration *trt__AddVideoAnalyticsConfiguration, _trt__AddVideoAnalyticsConfigurationResponse &trt__AddVideoAnalyticsConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddMetadataConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int AddMetadataConfiguration(_trt__AddMetadataConfiguration *trt__AddMetadataConfiguration, _trt__AddMetadataConfigurationResponse &trt__AddMetadataConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddAudioOutputConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int AddAudioOutputConfiguration(_trt__AddAudioOutputConfiguration *trt__AddAudioOutputConfiguration, _trt__AddAudioOutputConfigurationResponse &trt__AddAudioOutputConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AddAudioDecoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int AddAudioDecoderConfiguration(_trt__AddAudioDecoderConfiguration *trt__AddAudioDecoderConfiguration, _trt__AddAudioDecoderConfigurationResponse &trt__AddAudioDecoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveVideoEncoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveVideoEncoderConfiguration(_trt__RemoveVideoEncoderConfiguration *trt__RemoveVideoEncoderConfiguration, _trt__RemoveVideoEncoderConfigurationResponse &trt__RemoveVideoEncoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveVideoSourceConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveVideoSourceConfiguration(_trt__RemoveVideoSourceConfiguration *trt__RemoveVideoSourceConfiguration, _trt__RemoveVideoSourceConfigurationResponse &trt__RemoveVideoSourceConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveAudioEncoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveAudioEncoderConfiguration(_trt__RemoveAudioEncoderConfiguration *trt__RemoveAudioEncoderConfiguration, _trt__RemoveAudioEncoderConfigurationResponse &trt__RemoveAudioEncoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveAudioSourceConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveAudioSourceConfiguration(_trt__RemoveAudioSourceConfiguration *trt__RemoveAudioSourceConfiguration, _trt__RemoveAudioSourceConfigurationResponse &trt__RemoveAudioSourceConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemovePTZConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int RemovePTZConfiguration(_trt__RemovePTZConfiguration *trt__RemovePTZConfiguration, _trt__RemovePTZConfigurationResponse &trt__RemovePTZConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveVideoAnalyticsConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveVideoAnalyticsConfiguration(_trt__RemoveVideoAnalyticsConfiguration *trt__RemoveVideoAnalyticsConfiguration, _trt__RemoveVideoAnalyticsConfigurationResponse &trt__RemoveVideoAnalyticsConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveMetadataConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveMetadataConfiguration(_trt__RemoveMetadataConfiguration *trt__RemoveMetadataConfiguration, _trt__RemoveMetadataConfigurationResponse &trt__RemoveMetadataConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveAudioOutputConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveAudioOutputConfiguration(_trt__RemoveAudioOutputConfiguration *trt__RemoveAudioOutputConfiguration, _trt__RemoveAudioOutputConfigurationResponse &trt__RemoveAudioOutputConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemoveAudioDecoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int RemoveAudioDecoderConfiguration(_trt__RemoveAudioDecoderConfiguration *trt__RemoveAudioDecoderConfiguration, _trt__RemoveAudioDecoderConfigurationResponse &trt__RemoveAudioDecoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'DeleteProfile' implementation, should return SOAP_OK or error code
|
||||
virtual int DeleteProfile(_trt__DeleteProfile *trt__DeleteProfile, _trt__DeleteProfileResponse &trt__DeleteProfileResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoSourceConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoSourceConfigurations(_trt__GetVideoSourceConfigurations *trt__GetVideoSourceConfigurations, _trt__GetVideoSourceConfigurationsResponse &trt__GetVideoSourceConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoEncoderConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoEncoderConfigurations(_trt__GetVideoEncoderConfigurations *trt__GetVideoEncoderConfigurations, _trt__GetVideoEncoderConfigurationsResponse &trt__GetVideoEncoderConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioSourceConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioSourceConfigurations(_trt__GetAudioSourceConfigurations *trt__GetAudioSourceConfigurations, _trt__GetAudioSourceConfigurationsResponse &trt__GetAudioSourceConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioEncoderConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioEncoderConfigurations(_trt__GetAudioEncoderConfigurations *trt__GetAudioEncoderConfigurations, _trt__GetAudioEncoderConfigurationsResponse &trt__GetAudioEncoderConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoAnalyticsConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoAnalyticsConfigurations(_trt__GetVideoAnalyticsConfigurations *trt__GetVideoAnalyticsConfigurations, _trt__GetVideoAnalyticsConfigurationsResponse &trt__GetVideoAnalyticsConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetMetadataConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetMetadataConfigurations(_trt__GetMetadataConfigurations *trt__GetMetadataConfigurations, _trt__GetMetadataConfigurationsResponse &trt__GetMetadataConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioOutputConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioOutputConfigurations(_trt__GetAudioOutputConfigurations *trt__GetAudioOutputConfigurations, _trt__GetAudioOutputConfigurationsResponse &trt__GetAudioOutputConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioDecoderConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioDecoderConfigurations(_trt__GetAudioDecoderConfigurations *trt__GetAudioDecoderConfigurations, _trt__GetAudioDecoderConfigurationsResponse &trt__GetAudioDecoderConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoSourceConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoSourceConfiguration(_trt__GetVideoSourceConfiguration *trt__GetVideoSourceConfiguration, _trt__GetVideoSourceConfigurationResponse &trt__GetVideoSourceConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoEncoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoEncoderConfiguration(_trt__GetVideoEncoderConfiguration *trt__GetVideoEncoderConfiguration, _trt__GetVideoEncoderConfigurationResponse &trt__GetVideoEncoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioSourceConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioSourceConfiguration(_trt__GetAudioSourceConfiguration *trt__GetAudioSourceConfiguration, _trt__GetAudioSourceConfigurationResponse &trt__GetAudioSourceConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioEncoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioEncoderConfiguration(_trt__GetAudioEncoderConfiguration *trt__GetAudioEncoderConfiguration, _trt__GetAudioEncoderConfigurationResponse &trt__GetAudioEncoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoAnalyticsConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoAnalyticsConfiguration(_trt__GetVideoAnalyticsConfiguration *trt__GetVideoAnalyticsConfiguration, _trt__GetVideoAnalyticsConfigurationResponse &trt__GetVideoAnalyticsConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetMetadataConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetMetadataConfiguration(_trt__GetMetadataConfiguration *trt__GetMetadataConfiguration, _trt__GetMetadataConfigurationResponse &trt__GetMetadataConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioOutputConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioOutputConfiguration(_trt__GetAudioOutputConfiguration *trt__GetAudioOutputConfiguration, _trt__GetAudioOutputConfigurationResponse &trt__GetAudioOutputConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioDecoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioDecoderConfiguration(_trt__GetAudioDecoderConfiguration *trt__GetAudioDecoderConfiguration, _trt__GetAudioDecoderConfigurationResponse &trt__GetAudioDecoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCompatibleVideoEncoderConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCompatibleVideoEncoderConfigurations(_trt__GetCompatibleVideoEncoderConfigurations *trt__GetCompatibleVideoEncoderConfigurations, _trt__GetCompatibleVideoEncoderConfigurationsResponse &trt__GetCompatibleVideoEncoderConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCompatibleVideoSourceConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCompatibleVideoSourceConfigurations(_trt__GetCompatibleVideoSourceConfigurations *trt__GetCompatibleVideoSourceConfigurations, _trt__GetCompatibleVideoSourceConfigurationsResponse &trt__GetCompatibleVideoSourceConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCompatibleAudioEncoderConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCompatibleAudioEncoderConfigurations(_trt__GetCompatibleAudioEncoderConfigurations *trt__GetCompatibleAudioEncoderConfigurations, _trt__GetCompatibleAudioEncoderConfigurationsResponse &trt__GetCompatibleAudioEncoderConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCompatibleAudioSourceConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCompatibleAudioSourceConfigurations(_trt__GetCompatibleAudioSourceConfigurations *trt__GetCompatibleAudioSourceConfigurations, _trt__GetCompatibleAudioSourceConfigurationsResponse &trt__GetCompatibleAudioSourceConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCompatibleVideoAnalyticsConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCompatibleVideoAnalyticsConfigurations(_trt__GetCompatibleVideoAnalyticsConfigurations *trt__GetCompatibleVideoAnalyticsConfigurations, _trt__GetCompatibleVideoAnalyticsConfigurationsResponse &trt__GetCompatibleVideoAnalyticsConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCompatibleMetadataConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCompatibleMetadataConfigurations(_trt__GetCompatibleMetadataConfigurations *trt__GetCompatibleMetadataConfigurations, _trt__GetCompatibleMetadataConfigurationsResponse &trt__GetCompatibleMetadataConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCompatibleAudioOutputConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCompatibleAudioOutputConfigurations(_trt__GetCompatibleAudioOutputConfigurations *trt__GetCompatibleAudioOutputConfigurations, _trt__GetCompatibleAudioOutputConfigurationsResponse &trt__GetCompatibleAudioOutputConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCompatibleAudioDecoderConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCompatibleAudioDecoderConfigurations(_trt__GetCompatibleAudioDecoderConfigurations *trt__GetCompatibleAudioDecoderConfigurations, _trt__GetCompatibleAudioDecoderConfigurationsResponse &trt__GetCompatibleAudioDecoderConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetVideoSourceConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetVideoSourceConfiguration(_trt__SetVideoSourceConfiguration *trt__SetVideoSourceConfiguration, _trt__SetVideoSourceConfigurationResponse &trt__SetVideoSourceConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetVideoEncoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetVideoEncoderConfiguration(_trt__SetVideoEncoderConfiguration *trt__SetVideoEncoderConfiguration, _trt__SetVideoEncoderConfigurationResponse &trt__SetVideoEncoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetAudioSourceConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetAudioSourceConfiguration(_trt__SetAudioSourceConfiguration *trt__SetAudioSourceConfiguration, _trt__SetAudioSourceConfigurationResponse &trt__SetAudioSourceConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetAudioEncoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetAudioEncoderConfiguration(_trt__SetAudioEncoderConfiguration *trt__SetAudioEncoderConfiguration, _trt__SetAudioEncoderConfigurationResponse &trt__SetAudioEncoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetVideoAnalyticsConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetVideoAnalyticsConfiguration(_trt__SetVideoAnalyticsConfiguration *trt__SetVideoAnalyticsConfiguration, _trt__SetVideoAnalyticsConfigurationResponse &trt__SetVideoAnalyticsConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetMetadataConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetMetadataConfiguration(_trt__SetMetadataConfiguration *trt__SetMetadataConfiguration, _trt__SetMetadataConfigurationResponse &trt__SetMetadataConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetAudioOutputConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetAudioOutputConfiguration(_trt__SetAudioOutputConfiguration *trt__SetAudioOutputConfiguration, _trt__SetAudioOutputConfigurationResponse &trt__SetAudioOutputConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetAudioDecoderConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetAudioDecoderConfiguration(_trt__SetAudioDecoderConfiguration *trt__SetAudioDecoderConfiguration, _trt__SetAudioDecoderConfigurationResponse &trt__SetAudioDecoderConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoSourceConfigurationOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoSourceConfigurationOptions(_trt__GetVideoSourceConfigurationOptions *trt__GetVideoSourceConfigurationOptions, _trt__GetVideoSourceConfigurationOptionsResponse &trt__GetVideoSourceConfigurationOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoEncoderConfigurationOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoEncoderConfigurationOptions(_trt__GetVideoEncoderConfigurationOptions *trt__GetVideoEncoderConfigurationOptions, _trt__GetVideoEncoderConfigurationOptionsResponse &trt__GetVideoEncoderConfigurationOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioSourceConfigurationOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioSourceConfigurationOptions(_trt__GetAudioSourceConfigurationOptions *trt__GetAudioSourceConfigurationOptions, _trt__GetAudioSourceConfigurationOptionsResponse &trt__GetAudioSourceConfigurationOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioEncoderConfigurationOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioEncoderConfigurationOptions(_trt__GetAudioEncoderConfigurationOptions *trt__GetAudioEncoderConfigurationOptions, _trt__GetAudioEncoderConfigurationOptionsResponse &trt__GetAudioEncoderConfigurationOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetMetadataConfigurationOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetMetadataConfigurationOptions(_trt__GetMetadataConfigurationOptions *trt__GetMetadataConfigurationOptions, _trt__GetMetadataConfigurationOptionsResponse &trt__GetMetadataConfigurationOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioOutputConfigurationOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioOutputConfigurationOptions(_trt__GetAudioOutputConfigurationOptions *trt__GetAudioOutputConfigurationOptions, _trt__GetAudioOutputConfigurationOptionsResponse &trt__GetAudioOutputConfigurationOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetAudioDecoderConfigurationOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetAudioDecoderConfigurationOptions(_trt__GetAudioDecoderConfigurationOptions *trt__GetAudioDecoderConfigurationOptions, _trt__GetAudioDecoderConfigurationOptionsResponse &trt__GetAudioDecoderConfigurationOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetGuaranteedNumberOfVideoEncoderInstances' implementation, should return SOAP_OK or error code
|
||||
virtual int GetGuaranteedNumberOfVideoEncoderInstances(_trt__GetGuaranteedNumberOfVideoEncoderInstances *trt__GetGuaranteedNumberOfVideoEncoderInstances, _trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse &trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetStreamUri' implementation, should return SOAP_OK or error code
|
||||
virtual int GetStreamUri(_trt__GetStreamUri *trt__GetStreamUri, _trt__GetStreamUriResponse &trt__GetStreamUriResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'StartMulticastStreaming' implementation, should return SOAP_OK or error code
|
||||
virtual int StartMulticastStreaming(_trt__StartMulticastStreaming *trt__StartMulticastStreaming, _trt__StartMulticastStreamingResponse &trt__StartMulticastStreamingResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'StopMulticastStreaming' implementation, should return SOAP_OK or error code
|
||||
virtual int StopMulticastStreaming(_trt__StopMulticastStreaming *trt__StopMulticastStreaming, _trt__StopMulticastStreamingResponse &trt__StopMulticastStreamingResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetSynchronizationPoint' implementation, should return SOAP_OK or error code
|
||||
virtual int SetSynchronizationPoint(_trt__SetSynchronizationPoint *trt__SetSynchronizationPoint, _trt__SetSynchronizationPointResponse &trt__SetSynchronizationPointResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetSnapshotUri' implementation, should return SOAP_OK or error code
|
||||
virtual int GetSnapshotUri(_trt__GetSnapshotUri *trt__GetSnapshotUri, _trt__GetSnapshotUriResponse &trt__GetSnapshotUriResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetVideoSourceModes' implementation, should return SOAP_OK or error code
|
||||
virtual int GetVideoSourceModes(_trt__GetVideoSourceModes *trt__GetVideoSourceModes, _trt__GetVideoSourceModesResponse &trt__GetVideoSourceModesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetVideoSourceMode' implementation, should return SOAP_OK or error code
|
||||
virtual int SetVideoSourceMode(_trt__SetVideoSourceMode *trt__SetVideoSourceMode, _trt__SetVideoSourceModeResponse &trt__SetVideoSourceModeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetOSDs' implementation, should return SOAP_OK or error code
|
||||
virtual int GetOSDs(_trt__GetOSDs *trt__GetOSDs, _trt__GetOSDsResponse &trt__GetOSDsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetOSD' implementation, should return SOAP_OK or error code
|
||||
virtual int GetOSD(_trt__GetOSD *trt__GetOSD, _trt__GetOSDResponse &trt__GetOSDResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetOSDOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetOSDOptions(_trt__GetOSDOptions *trt__GetOSDOptions, _trt__GetOSDOptionsResponse &trt__GetOSDOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetOSD' implementation, should return SOAP_OK or error code
|
||||
virtual int SetOSD(_trt__SetOSD *trt__SetOSD, _trt__SetOSDResponse &trt__SetOSDResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'CreateOSD' implementation, should return SOAP_OK or error code
|
||||
virtual int CreateOSD(_trt__CreateOSD *trt__CreateOSD, _trt__CreateOSDResponse &trt__CreateOSDResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'DeleteOSD' implementation, should return SOAP_OK or error code
|
||||
virtual int DeleteOSD(_trt__DeleteOSD *trt__DeleteOSD, _trt__DeleteOSDResponse &trt__DeleteOSDResponse) SOAP_PURE_VIRTUAL;
|
||||
};
|
||||
#endif
|
||||
1462
examples/camera_onvif_server/generated/soapPTZBindingService.cpp
Normal file
1462
examples/camera_onvif_server/generated/soapPTZBindingService.cpp
Normal file
File diff suppressed because it is too large
Load Diff
181
examples/camera_onvif_server/generated/soapPTZBindingService.h
Normal file
181
examples/camera_onvif_server/generated/soapPTZBindingService.h
Normal file
@@ -0,0 +1,181 @@
|
||||
/* soapPTZBindingService.h
|
||||
Generated by gSOAP 2.8.92 for /home/sipeed/onvif_srvd/generated/onvif.h
|
||||
|
||||
gSOAP XML Web services tools
|
||||
Copyright (C) 2000-2018, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||||
The soapcpp2 tool and its generated software are released under the GPL.
|
||||
This program is released under the GPL with the additional exemption that
|
||||
compiling, linking, and/or using OpenSSL is allowed.
|
||||
--------------------------------------------------------------------------------
|
||||
A commercial use license is available from Genivia Inc., contact@genivia.com
|
||||
--------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef soapPTZBindingService_H
|
||||
#define soapPTZBindingService_H
|
||||
#include "soapH.h"
|
||||
|
||||
class SOAP_CMAC PTZBindingService {
|
||||
public:
|
||||
/// Context to manage service IO and data
|
||||
struct soap *soap;
|
||||
/// flag indicating that this context is owned by this service and should be deleted by the destructor
|
||||
bool soap_own;
|
||||
/// Variables globally declared in /home/sipeed/onvif_srvd/generated/onvif.h, if any
|
||||
/// Construct a service with new managing context
|
||||
PTZBindingService();
|
||||
/// Copy constructor
|
||||
PTZBindingService(const PTZBindingService&);
|
||||
/// Construct service given a shared managing context
|
||||
PTZBindingService(struct soap*);
|
||||
/// Constructor taking input+output mode flags for the new managing context
|
||||
PTZBindingService(soap_mode iomode);
|
||||
/// Constructor taking input and output mode flags for the new managing context
|
||||
PTZBindingService(soap_mode imode, soap_mode omode);
|
||||
/// Destructor deletes deserialized data and its managing context, when the context was allocated by the constructor
|
||||
virtual ~PTZBindingService();
|
||||
/// Delete all deserialized data (with soap_destroy() and soap_end())
|
||||
virtual void destroy();
|
||||
/// Delete all deserialized data and reset to defaults
|
||||
virtual void reset();
|
||||
/// Initializer used by constructors
|
||||
virtual void PTZBindingService_init(soap_mode imode, soap_mode omode);
|
||||
/// Return a copy that has a new managing context with the same engine state
|
||||
virtual PTZBindingService *copy() SOAP_PURE_VIRTUAL_COPY;
|
||||
/// Copy assignment
|
||||
PTZBindingService& operator=(const PTZBindingService&);
|
||||
/// Close connection (normally automatic)
|
||||
virtual int soap_close_socket();
|
||||
/// Force close connection (can kill a thread blocked on IO)
|
||||
virtual int soap_force_close_socket();
|
||||
/// Return sender-related fault to sender
|
||||
virtual int soap_senderfault(const char *string, const char *detailXML);
|
||||
/// Return sender-related fault with SOAP 1.2 subcode to sender
|
||||
virtual int soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML);
|
||||
/// Return receiver-related fault to sender
|
||||
virtual int soap_receiverfault(const char *string, const char *detailXML);
|
||||
/// Return receiver-related fault with SOAP 1.2 subcode to sender
|
||||
virtual int soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML);
|
||||
/// Print fault
|
||||
virtual void soap_print_fault(FILE*);
|
||||
#ifndef WITH_LEAN
|
||||
#ifndef WITH_COMPAT
|
||||
/// Print fault to stream
|
||||
virtual void soap_stream_fault(std::ostream&);
|
||||
#endif
|
||||
/// Write fault to buffer
|
||||
virtual char *soap_sprint_fault(char *buf, size_t len);
|
||||
#endif
|
||||
/// Disables and removes SOAP Header from message by setting soap->header = NULL
|
||||
virtual void soap_noheader();
|
||||
/// Add SOAP Header to message
|
||||
virtual void soap_header(char *wsa5__MessageID, struct wsa5__RelatesToType *wsa5__RelatesTo, struct wsa5__EndpointReferenceType *wsa5__From, struct wsa5__EndpointReferenceType *wsa5__ReplyTo, struct wsa5__EndpointReferenceType *wsa5__FaultTo, char *wsa5__To, char *wsa5__Action, struct chan__ChannelInstanceType *chan__ChannelInstance, struct _wsse__Security *wsse__Security);
|
||||
/// Get SOAP Header structure (i.e. soap->header, which is NULL when absent)
|
||||
virtual ::SOAP_ENV__Header *soap_header();
|
||||
#ifndef WITH_NOIO
|
||||
/// Run simple single-thread (iterative, non-SSL) service on port until a connection error occurs (returns SOAP_OK or error code), use this->bind_flag = SO_REUSEADDR to rebind for immediate rerun
|
||||
virtual int run(int port, int backlog = 1);
|
||||
#if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
|
||||
/// Run simple single-thread SSL service on port until a connection error occurs (returns SOAP_OK or error code), use this->bind_flag = SO_REUSEADDR to rebind for immediate rerun
|
||||
virtual int ssl_run(int port, int backlog = 1);
|
||||
#endif
|
||||
/// Bind service to port (returns master socket or SOAP_INVALID_SOCKET upon error)
|
||||
virtual SOAP_SOCKET bind(const char *host, int port, int backlog);
|
||||
/// Accept next request (returns socket or SOAP_INVALID_SOCKET upon error)
|
||||
virtual SOAP_SOCKET accept();
|
||||
#if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
|
||||
/// When SSL is used, after accept() should perform and accept SSL handshake
|
||||
virtual int ssl_accept();
|
||||
#endif
|
||||
#endif
|
||||
/// After accept() serve the pending request (returns SOAP_OK or error code)
|
||||
virtual int serve();
|
||||
/// Used by serve() to dispatch a pending request (returns SOAP_OK or error code)
|
||||
virtual int dispatch();
|
||||
virtual int dispatch(struct soap *soap);
|
||||
//
|
||||
// Service operations are listed below: you should define these
|
||||
// Note: compile with -DWITH_PURE_VIRTUAL to declare pure virtual methods
|
||||
//
|
||||
/// Web service operation 'GetServiceCapabilities' implementation, should return SOAP_OK or error code
|
||||
virtual int GetServiceCapabilities(_tptz__GetServiceCapabilities *tptz__GetServiceCapabilities, _tptz__GetServiceCapabilitiesResponse &tptz__GetServiceCapabilitiesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetConfigurations(_tptz__GetConfigurations *tptz__GetConfigurations, _tptz__GetConfigurationsResponse &tptz__GetConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetPresets' implementation, should return SOAP_OK or error code
|
||||
virtual int GetPresets(_tptz__GetPresets *tptz__GetPresets, _tptz__GetPresetsResponse &tptz__GetPresetsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetPreset' implementation, should return SOAP_OK or error code
|
||||
virtual int SetPreset(_tptz__SetPreset *tptz__SetPreset, _tptz__SetPresetResponse &tptz__SetPresetResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemovePreset' implementation, should return SOAP_OK or error code
|
||||
virtual int RemovePreset(_tptz__RemovePreset *tptz__RemovePreset, _tptz__RemovePresetResponse &tptz__RemovePresetResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GotoPreset' implementation, should return SOAP_OK or error code
|
||||
virtual int GotoPreset(_tptz__GotoPreset *tptz__GotoPreset, _tptz__GotoPresetResponse &tptz__GotoPresetResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetStatus' implementation, should return SOAP_OK or error code
|
||||
virtual int GetStatus(_tptz__GetStatus *tptz__GetStatus, _tptz__GetStatusResponse &tptz__GetStatusResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int GetConfiguration(_tptz__GetConfiguration *tptz__GetConfiguration, _tptz__GetConfigurationResponse &tptz__GetConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetNodes' implementation, should return SOAP_OK or error code
|
||||
virtual int GetNodes(_tptz__GetNodes *tptz__GetNodes, _tptz__GetNodesResponse &tptz__GetNodesResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetNode' implementation, should return SOAP_OK or error code
|
||||
virtual int GetNode(_tptz__GetNode *tptz__GetNode, _tptz__GetNodeResponse &tptz__GetNodeResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetConfiguration' implementation, should return SOAP_OK or error code
|
||||
virtual int SetConfiguration(_tptz__SetConfiguration *tptz__SetConfiguration, _tptz__SetConfigurationResponse &tptz__SetConfigurationResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetConfigurationOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetConfigurationOptions(_tptz__GetConfigurationOptions *tptz__GetConfigurationOptions, _tptz__GetConfigurationOptionsResponse &tptz__GetConfigurationOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GotoHomePosition' implementation, should return SOAP_OK or error code
|
||||
virtual int GotoHomePosition(_tptz__GotoHomePosition *tptz__GotoHomePosition, _tptz__GotoHomePositionResponse &tptz__GotoHomePositionResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SetHomePosition' implementation, should return SOAP_OK or error code
|
||||
virtual int SetHomePosition(_tptz__SetHomePosition *tptz__SetHomePosition, _tptz__SetHomePositionResponse &tptz__SetHomePositionResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'ContinuousMove' implementation, should return SOAP_OK or error code
|
||||
virtual int ContinuousMove(_tptz__ContinuousMove *tptz__ContinuousMove, _tptz__ContinuousMoveResponse &tptz__ContinuousMoveResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RelativeMove' implementation, should return SOAP_OK or error code
|
||||
virtual int RelativeMove(_tptz__RelativeMove *tptz__RelativeMove, _tptz__RelativeMoveResponse &tptz__RelativeMoveResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'SendAuxiliaryCommand' implementation, should return SOAP_OK or error code
|
||||
virtual int SendAuxiliaryCommand(_tptz__SendAuxiliaryCommand *tptz__SendAuxiliaryCommand, _tptz__SendAuxiliaryCommandResponse &tptz__SendAuxiliaryCommandResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'AbsoluteMove' implementation, should return SOAP_OK or error code
|
||||
virtual int AbsoluteMove(_tptz__AbsoluteMove *tptz__AbsoluteMove, _tptz__AbsoluteMoveResponse &tptz__AbsoluteMoveResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'Stop' implementation, should return SOAP_OK or error code
|
||||
virtual int Stop(_tptz__Stop *tptz__Stop, _tptz__StopResponse &tptz__StopResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetPresetTours' implementation, should return SOAP_OK or error code
|
||||
virtual int GetPresetTours(_tptz__GetPresetTours *tptz__GetPresetTours, _tptz__GetPresetToursResponse &tptz__GetPresetToursResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetPresetTour' implementation, should return SOAP_OK or error code
|
||||
virtual int GetPresetTour(_tptz__GetPresetTour *tptz__GetPresetTour, _tptz__GetPresetTourResponse &tptz__GetPresetTourResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetPresetTourOptions' implementation, should return SOAP_OK or error code
|
||||
virtual int GetPresetTourOptions(_tptz__GetPresetTourOptions *tptz__GetPresetTourOptions, _tptz__GetPresetTourOptionsResponse &tptz__GetPresetTourOptionsResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'CreatePresetTour' implementation, should return SOAP_OK or error code
|
||||
virtual int CreatePresetTour(_tptz__CreatePresetTour *tptz__CreatePresetTour, _tptz__CreatePresetTourResponse &tptz__CreatePresetTourResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'ModifyPresetTour' implementation, should return SOAP_OK or error code
|
||||
virtual int ModifyPresetTour(_tptz__ModifyPresetTour *tptz__ModifyPresetTour, _tptz__ModifyPresetTourResponse &tptz__ModifyPresetTourResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'OperatePresetTour' implementation, should return SOAP_OK or error code
|
||||
virtual int OperatePresetTour(_tptz__OperatePresetTour *tptz__OperatePresetTour, _tptz__OperatePresetTourResponse &tptz__OperatePresetTourResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'RemovePresetTour' implementation, should return SOAP_OK or error code
|
||||
virtual int RemovePresetTour(_tptz__RemovePresetTour *tptz__RemovePresetTour, _tptz__RemovePresetTourResponse &tptz__RemovePresetTourResponse) SOAP_PURE_VIRTUAL;
|
||||
//
|
||||
/// Web service operation 'GetCompatibleConfigurations' implementation, should return SOAP_OK or error code
|
||||
virtual int GetCompatibleConfigurations(_tptz__GetCompatibleConfigurations *tptz__GetCompatibleConfigurations, _tptz__GetCompatibleConfigurationsResponse &tptz__GetCompatibleConfigurationsResponse) SOAP_PURE_VIRTUAL;
|
||||
};
|
||||
#endif
|
||||
59922
examples/camera_onvif_server/generated/soapStub.h
Normal file
59922
examples/camera_onvif_server/generated/soapStub.h
Normal file
File diff suppressed because it is too large
Load Diff
15
examples/camera_onvif_server/generated/version.h
Normal file
15
examples/camera_onvif_server/generated/version.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef VERSION_HEADER
|
||||
#define VERSION_HEADER
|
||||
|
||||
|
||||
|
||||
#define DAEMON_MAJOR_VERSION 2
|
||||
#define DAEMON_MINOR_VERSION 0
|
||||
#define DAEMON_PATCH_VERSION 29
|
||||
|
||||
#define COMMIT_HASH "df09d0ac77b1"
|
||||
#define COMMIT_ISDIRTY 0
|
||||
|
||||
|
||||
|
||||
#endif //VERSION_HEADER
|
||||
125
examples/camera_onvif_server/main/CMakeLists.txt
Normal file
125
examples/camera_onvif_server/main/CMakeLists.txt
Normal file
@@ -0,0 +1,125 @@
|
||||
set(WSSE_ON 1)
|
||||
set(DAEMON_NAME "onvif_server")
|
||||
# set(DAEMON_MAJOR_VERSION 2)
|
||||
# set(DAEMON_MINOR_VERSION 0)
|
||||
# set(DAEMON_PATCH_VERSION 0)
|
||||
set(DAEMON_PID_FILE_NAME ${DAEMON_NAME}.pid)
|
||||
set(DAEMON_LOG_FILE_NAME ${DAEMON_NAME}.log)
|
||||
set(DAEMON_NO_CHDIR 1)
|
||||
set(DAEMON_NO_CLOSE_STDIO 1)
|
||||
set(gsoap_version_str "${CONFIG_GSOAP_VERSION_MAJOR}.${CONFIG_GSOAP_VERSION_MINOR}")
|
||||
set(GSOAP_INSTALL ${DL_EXTRACTED_PATH}/gsoap_srcs/gsoap-${gsoap_version_str})
|
||||
set(ONVIF_SERVD_INSTALL ${CMAKE_CURRENT_LIST_DIR}/../onvif_srvd)
|
||||
set(GENERATED_INSTALL ${CMAKE_CURRENT_LIST_DIR}/../generated)
|
||||
|
||||
############### Add include ###################
|
||||
list(APPEND ADD_INCLUDE "include"
|
||||
)
|
||||
|
||||
list(APPEND ADD_PRIVATE_INCLUDE ${ONVIF_SERVD_INSTALL}/src/
|
||||
)
|
||||
|
||||
list(APPEND ADD_PRIVATE_INCLUDE ${GSOAP_INSTALL}/gsoap
|
||||
${GSOAP_INSTALL}/gsoap/custom
|
||||
)
|
||||
list(APPEND ADD_PRIVATE_INCLUDE ${GENERATED_INSTALL})
|
||||
|
||||
list(APPEND ADD_PRIVATE_INCLUDE ${GSOAP_INSTALL}/gsoap/plugin)
|
||||
###############################################
|
||||
|
||||
############ Add source files #################
|
||||
append_srcs_dir(ADD_SRCS "src") # append source file in src dir to var ADD_SRCS
|
||||
|
||||
# onvif_srvd
|
||||
append_srcs_dir(ADD_SRCS ${ONVIF_SERVD_INSTALL}/src)
|
||||
|
||||
list(REMOVE_ITEM ADD_SRCS ${ONVIF_SERVD_INSTALL}/src/onvif_srvd.cpp)
|
||||
|
||||
# soap
|
||||
append_srcs_dir(ADD_SRCS ${GENERATED_INSTALL})
|
||||
list(APPEND ADD_SRCS ${GSOAP_INSTALL}/gsoap/custom/duration.c)
|
||||
list(APPEND ADD_SRCS ${GSOAP_INSTALL}/gsoap/dom.cpp
|
||||
${GSOAP_INSTALL}/gsoap/stdsoap2.cpp)
|
||||
if (${WSSE_ON})
|
||||
list(APPEND ADD_SRC ${GSOAP_INSTALL}/gsoap/plugin/wsseapi.c
|
||||
${GSOAP_INSTALL}/gsoap/plugin/mecevp.c
|
||||
${GSOAP_INSTALL}/gsoap/plugin/smdevp.c
|
||||
${GSOAP_INSTALL}/gsoap/plugin/wsaapi.c
|
||||
)
|
||||
endif()
|
||||
SET_PROPERTY(SOURCE ${ADD_SRCS} PROPERTY LANGUAGE CXX)
|
||||
|
||||
# list(REMOVE_ITEM COMPONENT_SRCS "src/test2.c")
|
||||
# FILE(GLOB_RECURSE EXTRA_SRC "src/*.c")
|
||||
# FILE(GLOB EXTRA_SRC "src/*.c")
|
||||
# list(APPEND ADD_SRCS ${EXTRA_SRC})
|
||||
# aux_source_directory(src ADD_SRCS) # collect all source file in src dir, will set var ADD_SRCS
|
||||
# append_srcs_dir(ADD_SRCS "src") # append source file in src dir to var ADD_SRCS
|
||||
# list(REMOVE_ITEM COMPONENT_SRCS "src/test.c")
|
||||
# set(ADD_ASM_SRCS "src/asm.S")
|
||||
# list(APPEND ADD_SRCS ${ADD_ASM_SRCS})
|
||||
# SET_PROPERTY(SOURCE ${ADD_ASM_SRCS} PROPERTY LANGUAGE C) # set .S ASM file as C language
|
||||
# SET_SOURCE_FILES_PROPERTIES(${ADD_ASM_SRCS} PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp -D BBBBB")
|
||||
###############################################
|
||||
|
||||
###### Add required/dependent components ######
|
||||
list(APPEND ADD_REQUIREMENTS basic openssl nn vision)
|
||||
###############################################
|
||||
|
||||
###### Add link search path for requirements/libs ######
|
||||
# list(APPEND ADD_LINK_SEARCH_PATH "${CONFIG_TOOLCHAIN_PATH}/lib")
|
||||
# list(APPEND ADD_REQUIREMENTS pthread m) # add system libs, pthread and math lib for example here
|
||||
# set (OpenCV_DIR opencv/lib/cmake/opencv4)
|
||||
# find_package(OpenCV REQUIRED)
|
||||
###############################################
|
||||
|
||||
############ Add static libs ##################
|
||||
# list(APPEND ADD_STATIC_LIB "lib/libtest.a")
|
||||
###############################################
|
||||
|
||||
#### Add compile option for this component ####
|
||||
#### Just for this component, won't affect other
|
||||
#### modules, including component that depend
|
||||
#### on this component
|
||||
list(APPEND ADD_DEFINITIONS_PRIVATE
|
||||
-DDAEMON_NAME="${DAEMON_NAME}"
|
||||
# -DDAEMON_MAJOR_VERSION=${DAEMON_MAJOR_VERSION}
|
||||
# -DDAEMON_MINOR_VERSION=${DAEMON_MINOR_VERSION}
|
||||
# -DDAEMON_PATCH_VERSION=${DAEMON_PATCH_VERSION}
|
||||
-DDAEMON_PID_FILE_NAME="${DAEMON_PID_FILE_NAME}"
|
||||
-DDAEMON_LOG_FILE_NAME="${DAEMON_LOG_FILE_NAME}"
|
||||
-DDAEMON_NO_CHDIR=${DAEMON_NO_CHDIR}
|
||||
-DDAEMON_NO_CLOSE_STDIO=${DAEMON_NO_CLOSE_STDIO}
|
||||
)
|
||||
if (${WSSE_ON})
|
||||
list(APPEND ADD_DEFINITIONS_PRIVATE -DWITH_OPENSSL -DWITH_DOM)
|
||||
endif()
|
||||
|
||||
#### Add compile option for this component
|
||||
#### and components depend on this component
|
||||
# list(APPEND ADD_DEFINITIONS -DAAAAA222=1
|
||||
# -DAAAAA333=1)
|
||||
###############################################
|
||||
|
||||
############ Add static libs ##################
|
||||
#### Update parent's variables like CMAKE_C_LINK_FLAGS
|
||||
# set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -Wl,--start-group libmaix/libtest.a -ltest2 -Wl,--end-group" PARENT_SCOPE)
|
||||
###############################################
|
||||
|
||||
######### Add files need to download #########
|
||||
# list(APPEND ADD_FILE_DOWNLOADS "{
|
||||
# 'url': 'https://*****/abcde.tar.xz',
|
||||
# 'urls': [], # backup urls, if url failed, will try urls
|
||||
# 'sites': [], # download site, user can manually download file and put it into dl_path
|
||||
# 'sha256sum': '',
|
||||
# 'filename': 'abcde.tar.xz',
|
||||
# 'path': 'toolchains/xxxxx',
|
||||
# 'check_files': []
|
||||
# }"
|
||||
# )
|
||||
#
|
||||
# then extracted file in ${DL_EXTRACTED_PATH}/toolchains/xxxxx,
|
||||
# you can directly use then, for example use it in add_custom_command
|
||||
##############################################
|
||||
# register component, DYNAMIC or SHARED flags will make component compiled to dynamic(shared) lib
|
||||
register_component()
|
||||
13
examples/camera_onvif_server/main/Kconfig
Normal file
13
examples/camera_onvif_server/main/Kconfig
Normal file
@@ -0,0 +1,13 @@
|
||||
menu "gsoap component configuration"
|
||||
menu "GSOAP version"
|
||||
config GSOAP_VERSION_MAJOR
|
||||
int "GSOAP version major"
|
||||
default 2
|
||||
config GSOAP_VERSION_MINOR
|
||||
int "GSOAP version minor"
|
||||
default 8
|
||||
config GSOAP_VERSION_PATCH
|
||||
int "GSOAP version patch"
|
||||
default 92
|
||||
endmenu
|
||||
endmenu
|
||||
30
examples/camera_onvif_server/main/component.py
Normal file
30
examples/camera_onvif_server/main/component.py
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
def add_file_downloads(confs : dict) -> list:
|
||||
'''
|
||||
@param confs kconfig vars, dict type
|
||||
@return list type, items is dict type
|
||||
'''
|
||||
version0 = f"{confs['CONFIG_GSOAP_VERSION_MAJOR']}.{confs['CONFIG_GSOAP_VERSION_MINOR']}"
|
||||
version = f"{confs['CONFIG_GSOAP_VERSION_MAJOR']}.{confs['CONFIG_GSOAP_VERSION_MINOR']}.{confs['CONFIG_GSOAP_VERSION_PATCH']}"
|
||||
url = f"https://github.com/SrcBackup/gsoap/releases/download/v2.8.x/gsoap_{version}.zip"
|
||||
sha256sum = "bcc77bc8843ae00091d40bbfaee5071665ca2793ac1e8f05de2e2d54a84a7ddb"
|
||||
filename = f"gsoap_{version}.zip"
|
||||
path = "gsoap_srcs"
|
||||
check_file = f'gsoap-{version0}'
|
||||
sites = []
|
||||
|
||||
return [
|
||||
{
|
||||
'url': f'{url}',
|
||||
'urls': [],
|
||||
'sites': sites,
|
||||
'sha256sum': sha256sum,
|
||||
'filename': filename,
|
||||
'path': path,
|
||||
'check_files': [
|
||||
check_file
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
3
examples/camera_onvif_server/main/include/main.h
Normal file
3
examples/camera_onvif_server/main/include/main.h
Normal file
@@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
626
examples/camera_onvif_server/main/src/main.cpp
Normal file
626
examples/camera_onvif_server/main/src/main.cpp
Normal file
@@ -0,0 +1,626 @@
|
||||
|
||||
#include "maix_basic.hpp"
|
||||
#include "main.h"
|
||||
|
||||
using namespace maix;
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#include "daemon.h"
|
||||
#include "smacros.h"
|
||||
#include "ServiceContext.h"
|
||||
|
||||
// ---- gsoap ----
|
||||
#include "DeviceBinding.nsmap"
|
||||
#include "soapDeviceBindingService.h"
|
||||
#include "soapMediaBindingService.h"
|
||||
#include "soapPTZBindingService.h"
|
||||
// #define DAEMON_NAME "onvif_server"
|
||||
|
||||
|
||||
|
||||
|
||||
static const char *help_str =
|
||||
// " Daemon name: " DAEMON_NAME "\n"
|
||||
" Daemon ver: " DAEMON_VERSION_STR "\n\n"
|
||||
#ifdef DEBUG
|
||||
" Build mode: debug\n"
|
||||
#else
|
||||
" Build mode: release\n"
|
||||
#endif
|
||||
" Build date: " __DATE__ "\n"
|
||||
" Build time: " __TIME__ "\n"
|
||||
#if COMMIT_ISDIRTY == 0
|
||||
" Build hash: " COMMIT_HASH "\n\n"
|
||||
#else
|
||||
" Build hash: *" COMMIT_HASH "\n\n"
|
||||
#endif
|
||||
"Options: description:\n\n"
|
||||
" --no_chdir Don't change the directory to '/'\n"
|
||||
" --no_fork Don't do fork\n"
|
||||
" --no_close Don't close standart IO files\n"
|
||||
" --pid_file [value] Set pid file name\n"
|
||||
" --log_file [value] Set log file name\n\n"
|
||||
" --port [value] Set socket port for Services (default = 1000)\n"
|
||||
" --user [value] Set user name for Services (default = admin)\n"
|
||||
" --password [value] Set user password for Services (default = admin)\n"
|
||||
" --model [value] Set model device for Services (default = Model)\n"
|
||||
" --scope [value] Set scope for Services (default don't set)\n"
|
||||
" --ifs [value] Set Net interfaces for work (default don't set)\n"
|
||||
" --tz_format [value] Set Time Zone Format (default = 0)\n"
|
||||
" --hardware_id [value] Set Hardware ID of device (default = HardwareID)\n"
|
||||
" --serial_num [value] Set Serial number of device (default = SerialNumber)\n"
|
||||
" --firmware_ver [value] Set firmware version of device (default = FirmwareVersion)\n"
|
||||
" --manufacturer [value] Set manufacturer for Services (default = Manufacturer)\n\n"
|
||||
" --name [value] Set Name for Profile Media Services\n"
|
||||
" --width [value] Set Width for Profile Media Services\n"
|
||||
" --height [value] Set Height for Profile Media Services\n"
|
||||
" --url [value] Set URL (or template URL) for Profile Media Services\n"
|
||||
" --snapurl [value] Set URL (or template URL) for Snapshot\n"
|
||||
" in template mode %s will be changed to IP of interface (see opt ifs)\n"
|
||||
" --type [value] Set Type for Profile Media Services (JPEG|MPEG4|H264)\n"
|
||||
" It is also a sign of the end of the profile parameters\n\n"
|
||||
" --ptz Enable PTZ support\n"
|
||||
" --move_left [value] Set process to call for PTZ pan left movement\n"
|
||||
" --move_right [value] Set process to call for PTZ pan right movement\n"
|
||||
" --move_up [value] Set process to call for PTZ tilt up movement\n"
|
||||
" --move_down [value] Set process to call for PTZ tilt down movement\n"
|
||||
" --move_stop [value] Set process to call for PTZ stop movement\n"
|
||||
" --move_preset [value] Set process to call for PTZ goto preset movement\n"
|
||||
" -v, --version Display daemon version\n"
|
||||
" -h, --help Display this help\n\n";
|
||||
|
||||
|
||||
|
||||
|
||||
// indexes for long_opt function
|
||||
namespace LongOpts
|
||||
{
|
||||
enum
|
||||
{
|
||||
version = 'v',
|
||||
help = 'h',
|
||||
|
||||
//daemon options
|
||||
no_chdir = 1,
|
||||
no_fork,
|
||||
no_close,
|
||||
pid_file,
|
||||
log_file,
|
||||
|
||||
//ONVIF Service options (context)
|
||||
port,
|
||||
user,
|
||||
password,
|
||||
manufacturer,
|
||||
model,
|
||||
firmware_ver,
|
||||
serial_num,
|
||||
hardware_id,
|
||||
scope,
|
||||
ifs,
|
||||
tz_format,
|
||||
|
||||
//Media Profile for ONVIF Media Service
|
||||
name,
|
||||
width,
|
||||
height,
|
||||
url,
|
||||
snapurl,
|
||||
type,
|
||||
|
||||
//PTZ Profile for ONVIF PTZ Service
|
||||
ptz,
|
||||
move_left,
|
||||
move_right,
|
||||
move_up,
|
||||
move_down,
|
||||
move_stop,
|
||||
move_preset
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
static const char *short_opts = "hv";
|
||||
|
||||
|
||||
static const struct option long_opts[] =
|
||||
{
|
||||
{ "version", no_argument, NULL, LongOpts::version },
|
||||
{ "help", no_argument, NULL, LongOpts::help },
|
||||
|
||||
//daemon options
|
||||
{ "no_chdir", no_argument, NULL, LongOpts::no_chdir },
|
||||
{ "no_fork", no_argument, NULL, LongOpts::no_fork },
|
||||
{ "no_close", no_argument, NULL, LongOpts::no_close },
|
||||
{ "pid_file", required_argument, NULL, LongOpts::pid_file },
|
||||
{ "log_file", required_argument, NULL, LongOpts::log_file },
|
||||
|
||||
//ONVIF Service options (context)
|
||||
{ "port", required_argument, NULL, LongOpts::port },
|
||||
{ "user", required_argument, NULL, LongOpts::user },
|
||||
{ "password", required_argument, NULL, LongOpts::password },
|
||||
{ "manufacturer", required_argument, NULL, LongOpts::manufacturer },
|
||||
{ "model", required_argument, NULL, LongOpts::model },
|
||||
{ "firmware_ver", required_argument, NULL, LongOpts::firmware_ver },
|
||||
{ "serial_num", required_argument, NULL, LongOpts::serial_num },
|
||||
{ "hardware_id", required_argument, NULL, LongOpts::hardware_id },
|
||||
{ "scope", required_argument, NULL, LongOpts::scope },
|
||||
{ "ifs", required_argument, NULL, LongOpts::ifs },
|
||||
{ "tz_format", required_argument, NULL, LongOpts::tz_format },
|
||||
|
||||
//Media Profile for ONVIF Media Service
|
||||
{ "name", required_argument, NULL, LongOpts::name },
|
||||
{ "width", required_argument, NULL, LongOpts::width },
|
||||
{ "height", required_argument, NULL, LongOpts::height },
|
||||
{ "url", required_argument, NULL, LongOpts::url },
|
||||
{ "snapurl", required_argument, NULL, LongOpts::snapurl },
|
||||
{ "type", required_argument, NULL, LongOpts::type },
|
||||
|
||||
//PTZ Profile for ONVIF PTZ Service
|
||||
{ "ptz", no_argument, NULL, LongOpts::ptz },
|
||||
{ "move_left", required_argument, NULL, LongOpts::move_left },
|
||||
{ "move_right", required_argument, NULL, LongOpts::move_right },
|
||||
{ "move_up", required_argument, NULL, LongOpts::move_up },
|
||||
{ "move_down", required_argument, NULL, LongOpts::move_down },
|
||||
{ "move_stop", required_argument, NULL, LongOpts::move_stop },
|
||||
{ "move_preset", required_argument, NULL, LongOpts::move_preset },
|
||||
|
||||
{ NULL, no_argument, NULL, 0 }
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define FOREACH_SERVICE(APPLY, soap) \
|
||||
APPLY(DeviceBindingService, soap) \
|
||||
APPLY(MediaBindingService, soap) \
|
||||
APPLY(PTZBindingService, soap) \
|
||||
|
||||
|
||||
/*
|
||||
* If you need support for other services,
|
||||
* add the desired option to the macro FOREACH_SERVICE.
|
||||
*
|
||||
* Note: Do not forget to add the gsoap binding class for the service,
|
||||
* and the implementation methods for it, like for DeviceBindingService
|
||||
|
||||
|
||||
|
||||
APPLY(ImagingBindingService, soap) \
|
||||
APPLY(PTZBindingService, soap) \
|
||||
APPLY(RecordingBindingService, soap) \
|
||||
APPLY(ReplayBindingService, soap) \
|
||||
APPLY(SearchBindingService, soap) \
|
||||
APPLY(ReceiverBindingService, soap) \
|
||||
APPLY(DisplayBindingService, soap) \
|
||||
APPLY(EventBindingService, soap) \
|
||||
APPLY(PullPointSubscriptionBindingService, soap) \
|
||||
APPLY(NotificationProducerBindingService, soap) \
|
||||
APPLY(SubscriptionManagerBindingService, soap) \
|
||||
*/
|
||||
|
||||
|
||||
#define DECLARE_SERVICE(service, soap) service service ## _inst(soap);
|
||||
|
||||
#define DISPATCH_SERVICE(service, soap) \
|
||||
else if (service ## _inst.dispatch() != SOAP_NO_METHOD) {\
|
||||
soap_send_fault(soap); \
|
||||
soap_stream_fault(soap, std::cerr); \
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static struct soap *soap;
|
||||
|
||||
ServiceContext service_ctx;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void daemon_exit_handler(int sig)
|
||||
{
|
||||
//Here we release resources
|
||||
|
||||
UNUSED(sig);
|
||||
soap_destroy(soap); // delete managed C++ objects
|
||||
soap_end(soap); // delete managed memory
|
||||
soap_free(soap); // free the context
|
||||
|
||||
|
||||
unlink(daemon_info.pid_file);
|
||||
|
||||
app::set_exit_flag(true);
|
||||
// exit(EXIT_SUCCESS); // good job (we interrupted (finished) main loop)
|
||||
}
|
||||
|
||||
|
||||
|
||||
void init_signals(void)
|
||||
{
|
||||
set_sig_handler(SIGINT, daemon_exit_handler); //for Ctlr-C in terminal for debug (in debug mode)
|
||||
set_sig_handler(SIGTERM, daemon_exit_handler);
|
||||
|
||||
set_sig_handler(SIGCHLD, SIG_IGN); // ignore child
|
||||
set_sig_handler(SIGTSTP, SIG_IGN); // ignore tty signals
|
||||
set_sig_handler(SIGTTOU, SIG_IGN);
|
||||
set_sig_handler(SIGTTIN, SIG_IGN);
|
||||
set_sig_handler(SIGHUP, SIG_IGN);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void processing_cmd(int argc, char *argv[])
|
||||
{
|
||||
int opt;
|
||||
|
||||
StreamProfile profile;
|
||||
|
||||
|
||||
while( (opt = getopt_long(argc, argv, short_opts, long_opts, NULL)) != -1 )
|
||||
{
|
||||
switch( opt )
|
||||
{
|
||||
|
||||
case LongOpts::help:
|
||||
puts(help_str);
|
||||
exit_if_not_daemonized(EXIT_SUCCESS);
|
||||
break;
|
||||
|
||||
case LongOpts::version:
|
||||
puts(DAEMON_NAME " version " DAEMON_VERSION_STR "\n");
|
||||
exit_if_not_daemonized(EXIT_SUCCESS);
|
||||
break;
|
||||
|
||||
|
||||
//daemon options
|
||||
case LongOpts::no_chdir:
|
||||
daemon_info.no_chdir = 1;
|
||||
break;
|
||||
|
||||
case LongOpts::no_fork:
|
||||
daemon_info.no_fork = 1;
|
||||
break;
|
||||
|
||||
case LongOpts::no_close:
|
||||
daemon_info.no_close_stdio = 1;
|
||||
break;
|
||||
|
||||
case LongOpts::pid_file:
|
||||
daemon_info.pid_file = optarg;
|
||||
break;
|
||||
|
||||
case LongOpts::log_file:
|
||||
daemon_info.log_file = optarg;
|
||||
break;
|
||||
|
||||
|
||||
//ONVIF Service options (context)
|
||||
case LongOpts::port:
|
||||
service_ctx.port = atoi(optarg);
|
||||
break;
|
||||
|
||||
case LongOpts::user:
|
||||
service_ctx.user = optarg;
|
||||
break;
|
||||
|
||||
case LongOpts::password:
|
||||
service_ctx.password = optarg;
|
||||
break;
|
||||
|
||||
case LongOpts::manufacturer:
|
||||
service_ctx.manufacturer = optarg;
|
||||
break;
|
||||
|
||||
case LongOpts::model:
|
||||
service_ctx.model = optarg;
|
||||
break;
|
||||
|
||||
case LongOpts::firmware_ver:
|
||||
service_ctx.firmware_version = optarg;
|
||||
break;
|
||||
|
||||
case LongOpts::serial_num:
|
||||
service_ctx.serial_number = optarg;
|
||||
break;
|
||||
|
||||
case LongOpts::hardware_id:
|
||||
service_ctx.hardware_id = optarg;
|
||||
break;
|
||||
|
||||
case LongOpts::scope:
|
||||
service_ctx.scopes.push_back(optarg);
|
||||
break;
|
||||
|
||||
case LongOpts::ifs:
|
||||
service_ctx.eth_ifs.push_back(Eth_Dev_Param());
|
||||
|
||||
if( service_ctx.eth_ifs.back().open(optarg) != 0 )
|
||||
daemon_error_exit("Can't open ethernet interface: %s - %m\n", optarg);
|
||||
|
||||
break;
|
||||
|
||||
case LongOpts::tz_format:
|
||||
if( !service_ctx.set_tz_format(optarg) )
|
||||
daemon_error_exit("Can't set tz_format: %s\n", service_ctx.get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
//Media Profile for ONVIF Media Service
|
||||
case LongOpts::name:
|
||||
if( !profile.set_name(optarg) )
|
||||
daemon_error_exit("Can't set name for Profile: %s\n", profile.get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::width:
|
||||
if( !profile.set_width(optarg) )
|
||||
daemon_error_exit("Can't set width for Profile: %s\n", profile.get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::height:
|
||||
if( !profile.set_height(optarg) )
|
||||
daemon_error_exit("Can't set height for Profile: %s\n", profile.get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::url:
|
||||
if( !profile.set_url(optarg) )
|
||||
daemon_error_exit("Can't set URL for Profile: %s\n", profile.get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::snapurl:
|
||||
if( !profile.set_snapurl(optarg) )
|
||||
daemon_error_exit("Can't set URL for Snapshot: %s\n", profile.get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::type:
|
||||
if( !profile.set_type(optarg) )
|
||||
daemon_error_exit("Can't set type for Profile: %s\n", profile.get_cstr_err());
|
||||
|
||||
if( !service_ctx.add_profile(profile) )
|
||||
daemon_error_exit("Can't add Profile: %s\n", service_ctx.get_cstr_err());
|
||||
|
||||
profile.clear(); //now we can add new profile (just uses one variable)
|
||||
|
||||
break;
|
||||
|
||||
|
||||
//PTZ Profile for ONVIF PTZ Service
|
||||
case LongOpts::ptz:
|
||||
service_ctx.get_ptz_node()->enable = true;
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::move_left:
|
||||
if( !service_ctx.get_ptz_node()->set_move_left(optarg) )
|
||||
daemon_error_exit("Can't set process for pan left movement: %s\n", service_ctx.get_ptz_node()->get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::move_right:
|
||||
if( !service_ctx.get_ptz_node()->set_move_right(optarg) )
|
||||
daemon_error_exit("Can't set process for pan right movement: %s\n", service_ctx.get_ptz_node()->get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::move_up:
|
||||
if( !service_ctx.get_ptz_node()->set_move_up(optarg) )
|
||||
daemon_error_exit("Can't set process for tilt up movement: %s\n", service_ctx.get_ptz_node()->get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::move_down:
|
||||
if( !service_ctx.get_ptz_node()->set_move_down(optarg) )
|
||||
daemon_error_exit("Can't set process for tilt down movement: %s\n", service_ctx.get_ptz_node()->get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::move_stop:
|
||||
if( !service_ctx.get_ptz_node()->set_move_stop(optarg) )
|
||||
daemon_error_exit("Can't set process for stop movement: %s\n", service_ctx.get_ptz_node()->get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LongOpts::move_preset:
|
||||
if( !service_ctx.get_ptz_node()->set_move_preset(optarg) )
|
||||
daemon_error_exit("Can't set process for goto preset movement: %s\n", service_ctx.get_ptz_node()->get_cstr_err());
|
||||
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
puts("for more detail see help\n\n");
|
||||
exit_if_not_daemonized(EXIT_FAILURE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void check_service_ctx(void)
|
||||
{
|
||||
if(service_ctx.eth_ifs.empty())
|
||||
daemon_error_exit("Error: not set no one ehternet interface more details see opt --ifs\n");
|
||||
|
||||
|
||||
if(service_ctx.scopes.empty())
|
||||
daemon_error_exit("Error: not set scopes more details see opt --scope\n");
|
||||
|
||||
|
||||
if(service_ctx.get_profiles().empty())
|
||||
daemon_error_exit("Error: not set no one profile more details see --help\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void init_gsoap(void)
|
||||
{
|
||||
soap = soap_new();
|
||||
|
||||
if(!soap)
|
||||
daemon_error_exit("Can't get mem for SOAP\n");
|
||||
|
||||
|
||||
soap->bind_flags = SO_REUSEADDR;
|
||||
|
||||
if( !soap_valid_socket(soap_bind(soap, NULL, service_ctx.port, 10)) )
|
||||
{
|
||||
soap_stream_fault(soap, std::cerr);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
soap->send_timeout = 3; // timeout in sec
|
||||
soap->recv_timeout = 3; // timeout in sec
|
||||
|
||||
|
||||
//save pointer of service_ctx in soap
|
||||
soap->user = (void*)&service_ctx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void init(void *data)
|
||||
{
|
||||
UNUSED(data);
|
||||
init_signals();
|
||||
check_service_ctx();
|
||||
init_gsoap();
|
||||
}
|
||||
|
||||
#include "stdio.h"
|
||||
#include "main.h"
|
||||
#include "maix_util.hpp"
|
||||
#include "maix_image.hpp"
|
||||
#include "maix_time.hpp"
|
||||
#include "maix_display.hpp"
|
||||
#include "maix_rtsp.hpp"
|
||||
#include "maix_camera.hpp"
|
||||
#include "maix_basic.hpp"
|
||||
#include "csignal"
|
||||
#include <iostream>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include "maix_basic.hpp"
|
||||
#include "maix_vision.hpp"
|
||||
#include "maix_nn_yolo11.hpp"
|
||||
|
||||
using namespace maix;
|
||||
|
||||
static void *rtsp_thread(void *param)
|
||||
{
|
||||
int cam_w = 1280;
|
||||
int cam_h = 720;
|
||||
image::Format cam_fmt = image::Format::FMT_YVU420SP;
|
||||
int cam_fps = -1;
|
||||
int cam_buffer_num = 3;
|
||||
|
||||
camera::Camera cam = camera::Camera(cam_w, cam_h, cam_fmt, "", cam_fps, cam_buffer_num);
|
||||
camera::Camera *cam2 = cam.add_channel(1280, 720, image::Format::FMT_YVU420SP);
|
||||
display::Display disp = display::Display();
|
||||
auto audio_recorder = audio::Recorder();
|
||||
rtsp::Rtsp rtsp = rtsp::Rtsp();
|
||||
rtsp.bind_camera(&cam);
|
||||
rtsp.bind_audio_recorder(&audio_recorder);
|
||||
|
||||
log::info("url:%s", rtsp.get_url().c_str());
|
||||
std::vector<std::string> url = rtsp.get_urls();
|
||||
for (size_t i = 0; i < url.size(); i ++) {
|
||||
log::info("url[%d]:%s", i, url[i].c_str());
|
||||
}
|
||||
err::check_raise(rtsp.start());
|
||||
|
||||
while(!app::need_exit()) {
|
||||
maix::image::Image *img = nullptr;
|
||||
try {
|
||||
img = cam2->read();
|
||||
} catch (std::exception &e) {
|
||||
time::sleep_ms(10);
|
||||
continue;
|
||||
}
|
||||
|
||||
disp.show(*img);
|
||||
delete img;
|
||||
}
|
||||
|
||||
rtsp.stop();
|
||||
delete cam2;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#include "pthread.h"
|
||||
|
||||
int _main(int argc, char *argv[])
|
||||
{
|
||||
processing_cmd(argc, argv);
|
||||
daemonize2(init, nullptr);
|
||||
|
||||
FOREACH_SERVICE(DECLARE_SERVICE, soap)
|
||||
pthread_t thread;
|
||||
pthread_create(&thread, nullptr, rtsp_thread, nullptr);
|
||||
while( !app::need_exit() )
|
||||
{
|
||||
// wait new client
|
||||
if( !soap_valid_socket(soap_accept(soap)) )
|
||||
{
|
||||
soap_stream_fault(soap, std::cerr);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// process service
|
||||
if( soap_begin_serve(soap) )
|
||||
{
|
||||
soap_stream_fault(soap, std::cerr);
|
||||
}
|
||||
FOREACH_SERVICE(DISPATCH_SERVICE, soap)
|
||||
else
|
||||
{
|
||||
DEBUG_MSG("Unknown service\n");
|
||||
}
|
||||
|
||||
soap_destroy(soap); // delete managed C++ objects
|
||||
soap_end(soap); // delete managed memory
|
||||
}
|
||||
|
||||
pthread_join(thread, nullptr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
// Catch signal and process
|
||||
sys::register_default_signal_handle();
|
||||
|
||||
// Use CATCH_EXCEPTION_RUN_RETURN to catch exception,
|
||||
// if we don't catch exception, when program throw exception, the objects will not be destructed.
|
||||
// So we catch exception here to let resources be released(call objects' destructor) before exit.
|
||||
CATCH_EXCEPTION_RUN_RETURN(_main, -1, argc, argv);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user