tinyWRAP_wrap.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * This file is not intended to be easily readable and contains a number of
  6. * coding conventions designed to improve portability and efficiency. Do not make
  7. * changes to this file unless you know what you are doing--modify the SWIG
  8. * interface file instead.
  9. * ----------------------------------------------------------------------------- */
  10. #ifndef SWIG_tinyWRAP_WRAP_H_
  11. #define SWIG_tinyWRAP_WRAP_H_
  12. #include <map>
  13. #include <string>
  14. class SwigDirector_DDebugCallback : public DDebugCallback, public Swig::Director {
  15. public:
  16. SwigDirector_DDebugCallback(PyObject *self);
  17. virtual ~SwigDirector_DDebugCallback();
  18. virtual int OnDebugInfo(char const *message);
  19. virtual int OnDebugWarn(char const *message);
  20. virtual int OnDebugError(char const *message);
  21. virtual int OnDebugFatal(char const *message);
  22. /* Internal Director utilities */
  23. public:
  24. bool swig_get_inner(const char* swig_protected_method_name) const {
  25. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  26. return (iv != swig_inner.end() ? iv->second : false);
  27. }
  28. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  29. { swig_inner[swig_protected_method_name] = val;}
  30. private:
  31. mutable std::map<std::string, bool> swig_inner;
  32. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  33. /* VTable implementation */
  34. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  35. PyObject *method = vtable[method_index];
  36. if (!method) {
  37. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  38. method = PyObject_GetAttr(swig_get_self(), name);
  39. if (!method) {
  40. std::string msg = "Method in class DDebugCallback doesn't exist, undefined ";
  41. msg += method_name;
  42. Swig::DirectorMethodException::raise(msg.c_str());
  43. }
  44. vtable[method_index] = method;
  45. }
  46. return method;
  47. }
  48. private:
  49. mutable swig::SwigVar_PyObject vtable[4];
  50. #endif
  51. };
  52. class SwigDirector_T140Callback : public T140Callback, public Swig::Director {
  53. public:
  54. SwigDirector_T140Callback(PyObject *self);
  55. virtual ~SwigDirector_T140Callback();
  56. virtual int ondata(T140CallbackData const *pData);
  57. /* Internal Director utilities */
  58. public:
  59. bool swig_get_inner(const char* swig_protected_method_name) const {
  60. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  61. return (iv != swig_inner.end() ? iv->second : false);
  62. }
  63. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  64. { swig_inner[swig_protected_method_name] = val;}
  65. private:
  66. mutable std::map<std::string, bool> swig_inner;
  67. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  68. /* VTable implementation */
  69. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  70. PyObject *method = vtable[method_index];
  71. if (!method) {
  72. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  73. method = PyObject_GetAttr(swig_get_self(), name);
  74. if (!method) {
  75. std::string msg = "Method in class T140Callback doesn't exist, undefined ";
  76. msg += method_name;
  77. Swig::DirectorMethodException::raise(msg.c_str());
  78. }
  79. vtable[method_index] = method;
  80. }
  81. return method;
  82. }
  83. private:
  84. mutable swig::SwigVar_PyObject vtable[1];
  85. #endif
  86. };
  87. class SwigDirector_ProxyPluginMgrCallback : public ProxyPluginMgrCallback, public Swig::Director {
  88. public:
  89. SwigDirector_ProxyPluginMgrCallback(PyObject *self);
  90. virtual ~SwigDirector_ProxyPluginMgrCallback();
  91. virtual int OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type);
  92. virtual int OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type);
  93. /* Internal Director utilities */
  94. public:
  95. bool swig_get_inner(const char* swig_protected_method_name) const {
  96. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  97. return (iv != swig_inner.end() ? iv->second : false);
  98. }
  99. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  100. { swig_inner[swig_protected_method_name] = val;}
  101. private:
  102. mutable std::map<std::string, bool> swig_inner;
  103. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  104. /* VTable implementation */
  105. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  106. PyObject *method = vtable[method_index];
  107. if (!method) {
  108. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  109. method = PyObject_GetAttr(swig_get_self(), name);
  110. if (!method) {
  111. std::string msg = "Method in class ProxyPluginMgrCallback doesn't exist, undefined ";
  112. msg += method_name;
  113. Swig::DirectorMethodException::raise(msg.c_str());
  114. }
  115. vtable[method_index] = method;
  116. }
  117. return method;
  118. }
  119. private:
  120. mutable swig::SwigVar_PyObject vtable[2];
  121. #endif
  122. };
  123. class SwigDirector_ProxyAudioConsumerCallback : public ProxyAudioConsumerCallback, public Swig::Director {
  124. public:
  125. SwigDirector_ProxyAudioConsumerCallback(PyObject *self);
  126. virtual ~SwigDirector_ProxyAudioConsumerCallback();
  127. virtual int prepare(int ptime, int rate, int channels);
  128. virtual int start();
  129. virtual int pause();
  130. virtual int stop();
  131. /* Internal Director utilities */
  132. public:
  133. bool swig_get_inner(const char* swig_protected_method_name) const {
  134. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  135. return (iv != swig_inner.end() ? iv->second : false);
  136. }
  137. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  138. { swig_inner[swig_protected_method_name] = val;}
  139. private:
  140. mutable std::map<std::string, bool> swig_inner;
  141. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  142. /* VTable implementation */
  143. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  144. PyObject *method = vtable[method_index];
  145. if (!method) {
  146. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  147. method = PyObject_GetAttr(swig_get_self(), name);
  148. if (!method) {
  149. std::string msg = "Method in class ProxyAudioConsumerCallback doesn't exist, undefined ";
  150. msg += method_name;
  151. Swig::DirectorMethodException::raise(msg.c_str());
  152. }
  153. vtable[method_index] = method;
  154. }
  155. return method;
  156. }
  157. private:
  158. mutable swig::SwigVar_PyObject vtable[4];
  159. #endif
  160. };
  161. class SwigDirector_ProxyVideoConsumerCallback : public ProxyVideoConsumerCallback, public Swig::Director {
  162. public:
  163. SwigDirector_ProxyVideoConsumerCallback(PyObject *self);
  164. virtual ~SwigDirector_ProxyVideoConsumerCallback();
  165. virtual int prepare(int nWidth, int nHeight, int nFps);
  166. virtual int consume(ProxyVideoFrame const *frame);
  167. virtual int bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize);
  168. virtual int start();
  169. virtual int pause();
  170. virtual int stop();
  171. /* Internal Director utilities */
  172. public:
  173. bool swig_get_inner(const char* swig_protected_method_name) const {
  174. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  175. return (iv != swig_inner.end() ? iv->second : false);
  176. }
  177. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  178. { swig_inner[swig_protected_method_name] = val;}
  179. private:
  180. mutable std::map<std::string, bool> swig_inner;
  181. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  182. /* VTable implementation */
  183. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  184. PyObject *method = vtable[method_index];
  185. if (!method) {
  186. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  187. method = PyObject_GetAttr(swig_get_self(), name);
  188. if (!method) {
  189. std::string msg = "Method in class ProxyVideoConsumerCallback doesn't exist, undefined ";
  190. msg += method_name;
  191. Swig::DirectorMethodException::raise(msg.c_str());
  192. }
  193. vtable[method_index] = method;
  194. }
  195. return method;
  196. }
  197. private:
  198. mutable swig::SwigVar_PyObject vtable[6];
  199. #endif
  200. };
  201. class SwigDirector_ProxyAudioProducerCallback : public ProxyAudioProducerCallback, public Swig::Director {
  202. public:
  203. SwigDirector_ProxyAudioProducerCallback(PyObject *self);
  204. virtual ~SwigDirector_ProxyAudioProducerCallback();
  205. virtual int prepare(int ptime, int rate, int channels);
  206. virtual int start();
  207. virtual int pause();
  208. virtual int stop();
  209. virtual int fillPushBuffer();
  210. /* Internal Director utilities */
  211. public:
  212. bool swig_get_inner(const char* swig_protected_method_name) const {
  213. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  214. return (iv != swig_inner.end() ? iv->second : false);
  215. }
  216. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  217. { swig_inner[swig_protected_method_name] = val;}
  218. private:
  219. mutable std::map<std::string, bool> swig_inner;
  220. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  221. /* VTable implementation */
  222. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  223. PyObject *method = vtable[method_index];
  224. if (!method) {
  225. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  226. method = PyObject_GetAttr(swig_get_self(), name);
  227. if (!method) {
  228. std::string msg = "Method in class ProxyAudioProducerCallback doesn't exist, undefined ";
  229. msg += method_name;
  230. Swig::DirectorMethodException::raise(msg.c_str());
  231. }
  232. vtable[method_index] = method;
  233. }
  234. return method;
  235. }
  236. private:
  237. mutable swig::SwigVar_PyObject vtable[5];
  238. #endif
  239. };
  240. class SwigDirector_ProxyVideoProducerCallback : public ProxyVideoProducerCallback, public Swig::Director {
  241. public:
  242. SwigDirector_ProxyVideoProducerCallback(PyObject *self);
  243. virtual ~SwigDirector_ProxyVideoProducerCallback();
  244. virtual int prepare(int width, int height, int fps);
  245. virtual int start();
  246. virtual int pause();
  247. virtual int stop();
  248. /* Internal Director utilities */
  249. public:
  250. bool swig_get_inner(const char* swig_protected_method_name) const {
  251. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  252. return (iv != swig_inner.end() ? iv->second : false);
  253. }
  254. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  255. { swig_inner[swig_protected_method_name] = val;}
  256. private:
  257. mutable std::map<std::string, bool> swig_inner;
  258. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  259. /* VTable implementation */
  260. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  261. PyObject *method = vtable[method_index];
  262. if (!method) {
  263. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  264. method = PyObject_GetAttr(swig_get_self(), name);
  265. if (!method) {
  266. std::string msg = "Method in class ProxyVideoProducerCallback doesn't exist, undefined ";
  267. msg += method_name;
  268. Swig::DirectorMethodException::raise(msg.c_str());
  269. }
  270. vtable[method_index] = method;
  271. }
  272. return method;
  273. }
  274. private:
  275. mutable swig::SwigVar_PyObject vtable[4];
  276. #endif
  277. };
  278. class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
  279. public:
  280. SwigDirector_SipCallback(PyObject *self);
  281. virtual ~SwigDirector_SipCallback();
  282. virtual int OnDialogEvent(DialogEvent const *e);
  283. virtual int OnStackEvent(StackEvent const *e);
  284. virtual int OnInviteEvent(InviteEvent const *e);
  285. virtual int OnMessagingEvent(MessagingEvent const *e);
  286. virtual int OnInfoEvent(InfoEvent const *e);
  287. virtual int OnOptionsEvent(OptionsEvent const *e);
  288. virtual int OnPublicationEvent(PublicationEvent const *e);
  289. virtual int OnRegistrationEvent(RegistrationEvent const *e);
  290. virtual int OnSubscriptionEvent(SubscriptionEvent const *e);
  291. /* Internal Director utilities */
  292. public:
  293. bool swig_get_inner(const char* swig_protected_method_name) const {
  294. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  295. return (iv != swig_inner.end() ? iv->second : false);
  296. }
  297. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  298. { swig_inner[swig_protected_method_name] = val;}
  299. private:
  300. mutable std::map<std::string, bool> swig_inner;
  301. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  302. /* VTable implementation */
  303. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  304. PyObject *method = vtable[method_index];
  305. if (!method) {
  306. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  307. method = PyObject_GetAttr(swig_get_self(), name);
  308. if (!method) {
  309. std::string msg = "Method in class SipCallback doesn't exist, undefined ";
  310. msg += method_name;
  311. Swig::DirectorMethodException::raise(msg.c_str());
  312. }
  313. vtable[method_index] = method;
  314. }
  315. return method;
  316. }
  317. private:
  318. mutable swig::SwigVar_PyObject vtable[9];
  319. #endif
  320. };
  321. class SwigDirector_XcapCallback : public XcapCallback, public Swig::Director {
  322. public:
  323. SwigDirector_XcapCallback(PyObject *self);
  324. virtual ~SwigDirector_XcapCallback();
  325. virtual int onEvent(XcapEvent const *e) const;
  326. /* Internal Director utilities */
  327. public:
  328. bool swig_get_inner(const char* swig_protected_method_name) const {
  329. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  330. return (iv != swig_inner.end() ? iv->second : false);
  331. }
  332. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  333. { swig_inner[swig_protected_method_name] = val;}
  334. private:
  335. mutable std::map<std::string, bool> swig_inner;
  336. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  337. /* VTable implementation */
  338. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  339. PyObject *method = vtable[method_index];
  340. if (!method) {
  341. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  342. method = PyObject_GetAttr(swig_get_self(), name);
  343. if (!method) {
  344. std::string msg = "Method in class XcapCallback doesn't exist, undefined ";
  345. msg += method_name;
  346. Swig::DirectorMethodException::raise(msg.c_str());
  347. }
  348. vtable[method_index] = method;
  349. }
  350. return method;
  351. }
  352. private:
  353. mutable swig::SwigVar_PyObject vtable[1];
  354. #endif
  355. };
  356. class SwigDirector_MsrpCallback : public MsrpCallback, public Swig::Director {
  357. public:
  358. SwigDirector_MsrpCallback(PyObject *self);
  359. virtual ~SwigDirector_MsrpCallback();
  360. virtual int OnEvent(MsrpEvent const *e);
  361. /* Internal Director utilities */
  362. public:
  363. bool swig_get_inner(const char* swig_protected_method_name) const {
  364. std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
  365. return (iv != swig_inner.end() ? iv->second : false);
  366. }
  367. void swig_set_inner(const char* swig_protected_method_name, bool val) const
  368. { swig_inner[swig_protected_method_name] = val;}
  369. private:
  370. mutable std::map<std::string, bool> swig_inner;
  371. #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
  372. /* VTable implementation */
  373. PyObject *swig_get_method(size_t method_index, const char *method_name) const {
  374. PyObject *method = vtable[method_index];
  375. if (!method) {
  376. swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
  377. method = PyObject_GetAttr(swig_get_self(), name);
  378. if (!method) {
  379. std::string msg = "Method in class MsrpCallback doesn't exist, undefined ";
  380. msg += method_name;
  381. Swig::DirectorMethodException::raise(msg.c_str());
  382. }
  383. vtable[method_index] = method;
  384. }
  385. return method;
  386. }
  387. private:
  388. mutable swig::SwigVar_PyObject vtable[1];
  389. #endif
  390. };
  391. #endif