114 lines
3.5 KiB
C++
114 lines
3.5 KiB
C++
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 1.3.40
|
|
*
|
|
* This file is not intended to be easily readable and contains a number of
|
|
* coding conventions designed to improve portability and efficiency. Do not make
|
|
* changes to this file unless you know what you are doing--modify the SWIG
|
|
* interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifndef SWIG_tinyWRAP_WRAP_H_
|
|
#define SWIG_tinyWRAP_WRAP_H_
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
|
|
class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
|
|
|
|
public:
|
|
SwigDirector_SipCallback(PyObject *self);
|
|
virtual ~SwigDirector_SipCallback();
|
|
virtual int OnRegistrationChanged(RegistrationEvent const *e);
|
|
virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
|
|
virtual int OnPublicationChanged(PublicationEvent const *e);
|
|
|
|
|
|
/* Internal Director utilities */
|
|
public:
|
|
bool swig_get_inner(const char* name) const {
|
|
std::map<std::string, bool>::const_iterator iv = inner.find(name);
|
|
return (iv != inner.end() ? iv->second : false);
|
|
}
|
|
|
|
void swig_set_inner(const char* name, bool val) const
|
|
{ inner[name] = val;}
|
|
|
|
private:
|
|
mutable std::map<std::string, bool> inner;
|
|
|
|
|
|
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
|
|
/* VTable implementation */
|
|
PyObject *swig_get_method(size_t method_index, const char *method_name) const {
|
|
PyObject *method = vtable[method_index];
|
|
if (!method) {
|
|
swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
|
|
method = PyObject_GetAttr(swig_get_self(), name);
|
|
if (method == NULL) {
|
|
std::string msg = "Method in class SipCallback doesn't exist, undefined ";
|
|
msg += method_name;
|
|
Swig::DirectorMethodException::raise(msg.c_str());
|
|
}
|
|
vtable[method_index] = method;
|
|
};
|
|
return method;
|
|
}
|
|
private:
|
|
mutable swig::SwigVar_PyObject vtable[3];
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {
|
|
|
|
public:
|
|
SwigDirector_SipDebugCallback(PyObject *self);
|
|
virtual ~SwigDirector_SipDebugCallback();
|
|
virtual int OnDebugInfo(char const *message);
|
|
virtual int OnDebugWarn(char const *message);
|
|
virtual int OnDebugError(char const *message);
|
|
virtual int OnDebugFatal(char const *message);
|
|
|
|
|
|
/* Internal Director utilities */
|
|
public:
|
|
bool swig_get_inner(const char* name) const {
|
|
std::map<std::string, bool>::const_iterator iv = inner.find(name);
|
|
return (iv != inner.end() ? iv->second : false);
|
|
}
|
|
|
|
void swig_set_inner(const char* name, bool val) const
|
|
{ inner[name] = val;}
|
|
|
|
private:
|
|
mutable std::map<std::string, bool> inner;
|
|
|
|
|
|
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
|
|
/* VTable implementation */
|
|
PyObject *swig_get_method(size_t method_index, const char *method_name) const {
|
|
PyObject *method = vtable[method_index];
|
|
if (!method) {
|
|
swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
|
|
method = PyObject_GetAttr(swig_get_self(), name);
|
|
if (method == NULL) {
|
|
std::string msg = "Method in class SipDebugCallback doesn't exist, undefined ";
|
|
msg += method_name;
|
|
Swig::DirectorMethodException::raise(msg.c_str());
|
|
}
|
|
vtable[method_index] = method;
|
|
};
|
|
return method;
|
|
}
|
|
private:
|
|
mutable swig::SwigVar_PyObject vtable[4];
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
#endif
|