reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
PyRouteProcessor.hxx
Go to the documentation of this file.
1
#ifndef PYROUTE_PROCESSOR_HXX
2
#define PYROUTE_PROCESSOR_HXX
3
4
/* Using the PyCXX API for C++ Python integration
5
* It is extremely convenient and avoids the need to write boilerplate
6
* code for handling the Python reference counts.
7
* It is licensed under BSD terms compatible with reSIProcate */
8
#include <Python.h>
9
#include <CXX/Objects.hxx>
10
11
#include "
resip/stack/Dispatcher.hxx
"
12
#include "
repro/Processor.hxx
"
13
#include "
repro/Proxy.hxx
"
14
15
namespace
repro
16
{
17
18
class
PyRouteProcessor
:
public
Processor
19
{
20
public
:
21
PyRouteProcessor
(
resip::Dispatcher
&
dispatcher
);
22
virtual
~PyRouteProcessor
();
23
24
/*
25
* Implement the Processor API from repro/Processor.hxx
26
*/
27
virtual
processor_action_t
process
(
RequestContext
&
context
);
28
29
private
:
30
resip::Dispatcher
& mDispatcher;
31
};
32
33
};
34
35
#endif
36
37
/* ====================================================================
38
*
39
* Copyright (c) 2022, Software Freedom Institute https://softwarefreedom.institute
40
* Copyright (c) 2014-2022, Daniel Pocock https://danielpocock.com
41
*
42
* Redistribution and use in source and binary forms, with or without
43
* modification, are permitted provided that the following conditions
44
* are met:
45
*
46
* 1. Redistributions of source code must retain the above copyright
47
* notice, this list of conditions and the following disclaimer.
48
*
49
* 2. Redistributions in binary form must reproduce the above copyright
50
* notice, this list of conditions and the following disclaimer in
51
* the documentation and/or other materials provided with the
52
* distribution.
53
*
54
* 3. Neither the name of the author(s) nor the names of any contributors
55
* may be used to endorse or promote products derived from this software
56
* without specific prior written permission.
57
*
58
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
59
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
60
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
61
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
62
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
63
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
64
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
65
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
66
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
67
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
68
* SUCH DAMAGE.
69
*
70
* ====================================================================
71
*
72
*
73
*/
74
Dispatcher.hxx
Processor.hxx
Proxy.hxx
repro::Processor
Definition
Processor.hxx:15
repro::Processor::processor_action_t
processor_action_t
Definition
Processor.hxx:29
repro::PyRouteProcessor
Definition
PyRouteProcessor.hxx:19
repro::PyRouteProcessor::process
virtual processor_action_t process(RequestContext &context)
Definition
PyRouteProcessor.cxx:21
repro::PyRouteProcessor::~PyRouteProcessor
virtual ~PyRouteProcessor()
Definition
PyRouteProcessor.cxx:16
repro::RequestContext
Definition
RequestContext.hxx:29
resip::Dispatcher
A generic thread-bank class.
Definition
Dispatcher.hxx:38
repro
This Class is used to implement a primitive form of RPC using loose XML formatting.
Definition
AbstractDb.hxx:16
list
void list()
Definition
userAdmin.cxx:66
repro
plugins
pyroute
PyRouteProcessor.hxx
Generated by
1.9.8