ProxyPluginMgr.java 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public class ProxyPluginMgr {
  10. private long swigCPtr;
  11. protected boolean swigCMemOwn;
  12. protected ProxyPluginMgr(long cPtr, boolean cMemoryOwn) {
  13. swigCMemOwn = cMemoryOwn;
  14. swigCPtr = cPtr;
  15. }
  16. protected static long getCPtr(ProxyPluginMgr obj) {
  17. return (obj == null) ? 0 : obj.swigCPtr;
  18. }
  19. protected void finalize() {
  20. delete();
  21. }
  22. public synchronized void delete() {
  23. if (swigCPtr != 0) {
  24. if (swigCMemOwn) {
  25. swigCMemOwn = false;
  26. tinyWRAPJNI.delete_ProxyPluginMgr(swigCPtr);
  27. }
  28. swigCPtr = 0;
  29. }
  30. }
  31. public static ProxyPluginMgr createInstance(ProxyPluginMgrCallback pCallback) {
  32. long cPtr = tinyWRAPJNI.ProxyPluginMgr_createInstance(ProxyPluginMgrCallback.getCPtr(pCallback), pCallback);
  33. return (cPtr == 0) ? null : new ProxyPluginMgr(cPtr, true);
  34. }
  35. public static ProxyPluginMgr getInstance() {
  36. long cPtr = tinyWRAPJNI.ProxyPluginMgr_getInstance();
  37. return (cPtr == 0) ? null : new ProxyPluginMgr(cPtr, false);
  38. }
  39. public ProxyPlugin findPlugin(java.math.BigInteger id) {
  40. long cPtr = tinyWRAPJNI.ProxyPluginMgr_findPlugin(swigCPtr, this, id);
  41. return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false);
  42. }
  43. public ProxyAudioConsumer findAudioConsumer(java.math.BigInteger id) {
  44. long cPtr = tinyWRAPJNI.ProxyPluginMgr_findAudioConsumer(swigCPtr, this, id);
  45. return (cPtr == 0) ? null : new ProxyAudioConsumer(cPtr, false);
  46. }
  47. public ProxyVideoConsumer findVideoConsumer(java.math.BigInteger id) {
  48. long cPtr = tinyWRAPJNI.ProxyPluginMgr_findVideoConsumer(swigCPtr, this, id);
  49. return (cPtr == 0) ? null : new ProxyVideoConsumer(cPtr, false);
  50. }
  51. public ProxyAudioProducer findAudioProducer(java.math.BigInteger id) {
  52. long cPtr = tinyWRAPJNI.ProxyPluginMgr_findAudioProducer(swigCPtr, this, id);
  53. return (cPtr == 0) ? null : new ProxyAudioProducer(cPtr, false);
  54. }
  55. public ProxyVideoProducer findVideoProducer(java.math.BigInteger id) {
  56. long cPtr = tinyWRAPJNI.ProxyPluginMgr_findVideoProducer(swigCPtr, this, id);
  57. return (cPtr == 0) ? null : new ProxyVideoProducer(cPtr, false);
  58. }
  59. }