2021-05-05 16:19:27 -07:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
|
|
|
* Version 4.0.2
|
|
|
|
|
*
|
|
|
|
|
* 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_libzt_WRAP_H_
|
|
|
|
|
#define SWIG_libzt_WRAP_H_
|
|
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
2021-05-19 21:33:08 -07:00
|
|
|
|
|
|
|
|
class SwigDirector_PythonDirectorCallbackClass : public PythonDirectorCallbackClass, public Swig::Director {
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
SwigDirector_PythonDirectorCallbackClass(PyObject *self);
|
|
|
|
|
virtual void on_zerotier_event(zts_event_msg_t *msg);
|
2021-05-05 16:19:27 -07:00
|
|
|
virtual ~SwigDirector_PythonDirectorCallbackClass();
|
|
|
|
|
|
2021-05-19 21:33:08 -07:00
|
|
|
/* Internal director utilities */
|
|
|
|
|
public:
|
|
|
|
|
bool swig_get_inner(const char *swig_protected_method_name) const {
|
|
|
|
|
std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
|
|
|
|
|
return (iv != swig_inner.end() ? iv->second : false);
|
2021-05-05 16:19:27 -07:00
|
|
|
}
|
2021-05-19 21:33:08 -07:00
|
|
|
void swig_set_inner(const char *swig_protected_method_name, bool swig_val) const {
|
|
|
|
|
swig_inner[swig_protected_method_name] = swig_val;
|
2021-05-05 16:19:27 -07:00
|
|
|
}
|
2021-05-19 21:33:08 -07:00
|
|
|
private:
|
2021-05-05 16:19:27 -07:00
|
|
|
mutable std::map<std::string, bool> swig_inner;
|
|
|
|
|
|
|
|
|
|
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
|
2021-05-19 21:33:08 -07:00
|
|
|
/* 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) {
|
|
|
|
|
std::string msg = "Method in class PythonDirectorCallbackClass doesn't exist, undefined ";
|
|
|
|
|
msg += method_name;
|
|
|
|
|
Swig::DirectorMethodException::raise(msg.c_str());
|
2021-05-05 16:19:27 -07:00
|
|
|
}
|
2021-05-19 21:33:08 -07:00
|
|
|
vtable[method_index] = method;
|
|
|
|
|
}
|
|
|
|
|
return method;
|
2021-05-05 16:19:27 -07:00
|
|
|
}
|
2021-05-19 21:33:08 -07:00
|
|
|
private:
|
2021-05-05 16:19:27 -07:00
|
|
|
mutable swig::SwigVar_PyObject vtable[1];
|
|
|
|
|
#endif
|
2021-05-19 21:33:08 -07:00
|
|
|
|
2021-05-05 16:19:27 -07:00
|
|
|
};
|
|
|
|
|
|
2021-05-19 21:33:08 -07:00
|
|
|
|
2021-05-05 16:19:27 -07:00
|
|
|
#endif
|