1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.9
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace org.doubango.tinyWRAP {
using System;
using System.Runtime.InteropServices;
public class SipCallback : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal SipCallback(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(SipCallback obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~SipCallback() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SipCallback(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public SipCallback() : this(tinyWRAPPINVOKE.new_SipCallback(), true) {
SwigDirectorConnect();
}
public virtual int OnDialogEvent(DialogEvent e) {
int ret = (SwigDerivedClassHasMethod("OnDialogEvent", swigMethodTypes0) ? tinyWRAPPINVOKE.SipCallback_OnDialogEventSwigExplicitSipCallback(swigCPtr, DialogEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnDialogEvent(swigCPtr, DialogEvent.getCPtr(e)));
return ret;
}
public virtual int OnStackEvent(StackEvent e) {
int ret = (SwigDerivedClassHasMethod("OnStackEvent", swigMethodTypes1) ? tinyWRAPPINVOKE.SipCallback_OnStackEventSwigExplicitSipCallback(swigCPtr, StackEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnStackEvent(swigCPtr, StackEvent.getCPtr(e)));
return ret;
}
public virtual int OnInviteEvent(InviteEvent e) {
int ret = (SwigDerivedClassHasMethod("OnInviteEvent", swigMethodTypes2) ? tinyWRAPPINVOKE.SipCallback_OnInviteEventSwigExplicitSipCallback(swigCPtr, InviteEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnInviteEvent(swigCPtr, InviteEvent.getCPtr(e)));
return ret;
}
public virtual int OnMessagingEvent(MessagingEvent e) {
int ret = (SwigDerivedClassHasMethod("OnMessagingEvent", swigMethodTypes3) ? tinyWRAPPINVOKE.SipCallback_OnMessagingEventSwigExplicitSipCallback(swigCPtr, MessagingEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnMessagingEvent(swigCPtr, MessagingEvent.getCPtr(e)));
return ret;
}
public virtual int OnInfoEvent(InfoEvent e) {
int ret = (SwigDerivedClassHasMethod("OnInfoEvent", swigMethodTypes4) ? tinyWRAPPINVOKE.SipCallback_OnInfoEventSwigExplicitSipCallback(swigCPtr, InfoEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnInfoEvent(swigCPtr, InfoEvent.getCPtr(e)));
return ret;
}
public virtual int OnOptionsEvent(OptionsEvent e) {
int ret = (SwigDerivedClassHasMethod("OnOptionsEvent", swigMethodTypes5) ? tinyWRAPPINVOKE.SipCallback_OnOptionsEventSwigExplicitSipCallback(swigCPtr, OptionsEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnOptionsEvent(swigCPtr, OptionsEvent.getCPtr(e)));
return ret;
}
public virtual int OnPublicationEvent(PublicationEvent e) {
int ret = (SwigDerivedClassHasMethod("OnPublicationEvent", swigMethodTypes6) ? tinyWRAPPINVOKE.SipCallback_OnPublicationEventSwigExplicitSipCallback(swigCPtr, PublicationEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnPublicationEvent(swigCPtr, PublicationEvent.getCPtr(e)));
return ret;
}
public virtual int OnRegistrationEvent(RegistrationEvent e) {
int ret = (SwigDerivedClassHasMethod("OnRegistrationEvent", swigMethodTypes7) ? tinyWRAPPINVOKE.SipCallback_OnRegistrationEventSwigExplicitSipCallback(swigCPtr, RegistrationEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnRegistrationEvent(swigCPtr, RegistrationEvent.getCPtr(e)));
return ret;
}
public virtual int OnSubscriptionEvent(SubscriptionEvent e) {
int ret = (SwigDerivedClassHasMethod("OnSubscriptionEvent", swigMethodTypes8) ? tinyWRAPPINVOKE.SipCallback_OnSubscriptionEventSwigExplicitSipCallback(swigCPtr, SubscriptionEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnSubscriptionEvent(swigCPtr, SubscriptionEvent.getCPtr(e)));
return ret;
}
private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("OnDialogEvent", swigMethodTypes0))
swigDelegate0 = new SwigDelegateSipCallback_0(SwigDirectorOnDialogEvent);
if (SwigDerivedClassHasMethod("OnStackEvent", swigMethodTypes1))
swigDelegate1 = new SwigDelegateSipCallback_1(SwigDirectorOnStackEvent);
if (SwigDerivedClassHasMethod("OnInviteEvent", swigMethodTypes2))
swigDelegate2 = new SwigDelegateSipCallback_2(SwigDirectorOnInviteEvent);
if (SwigDerivedClassHasMethod("OnMessagingEvent", swigMethodTypes3))
swigDelegate3 = new SwigDelegateSipCallback_3(SwigDirectorOnMessagingEvent);
if (SwigDerivedClassHasMethod("OnInfoEvent", swigMethodTypes4))
swigDelegate4 = new SwigDelegateSipCallback_4(SwigDirectorOnInfoEvent);
if (SwigDerivedClassHasMethod("OnOptionsEvent", swigMethodTypes5))
swigDelegate5 = new SwigDelegateSipCallback_5(SwigDirectorOnOptionsEvent);
if (SwigDerivedClassHasMethod("OnPublicationEvent", swigMethodTypes6))
swigDelegate6 = new SwigDelegateSipCallback_6(SwigDirectorOnPublicationEvent);
if (SwigDerivedClassHasMethod("OnRegistrationEvent", swigMethodTypes7))
swigDelegate7 = new SwigDelegateSipCallback_7(SwigDirectorOnRegistrationEvent);
if (SwigDerivedClassHasMethod("OnSubscriptionEvent", swigMethodTypes8))
swigDelegate8 = new SwigDelegateSipCallback_8(SwigDirectorOnSubscriptionEvent);
tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8);
}
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SipCallback));
return hasDerivedMethod;
}
private int SwigDirectorOnDialogEvent(IntPtr e) {
return OnDialogEvent((e == IntPtr.Zero) ? null : new DialogEvent(e, false));
}
private int SwigDirectorOnStackEvent(IntPtr e) {
return OnStackEvent((e == IntPtr.Zero) ? null : new StackEvent(e, false));
}
private int SwigDirectorOnInviteEvent(IntPtr e) {
return OnInviteEvent((e == IntPtr.Zero) ? null : new InviteEvent(e, false));
}
private int SwigDirectorOnMessagingEvent(IntPtr e) {
return OnMessagingEvent((e == IntPtr.Zero) ? null : new MessagingEvent(e, false));
}
private int SwigDirectorOnInfoEvent(IntPtr e) {
return OnInfoEvent((e == IntPtr.Zero) ? null : new InfoEvent(e, false));
}
private int SwigDirectorOnOptionsEvent(IntPtr e) {
return OnOptionsEvent((e == IntPtr.Zero) ? null : new OptionsEvent(e, false));
}
private int SwigDirectorOnPublicationEvent(IntPtr e) {
return OnPublicationEvent((e == IntPtr.Zero) ? null : new PublicationEvent(e, false));
}
private int SwigDirectorOnRegistrationEvent(IntPtr e) {
return OnRegistrationEvent((e == IntPtr.Zero) ? null : new RegistrationEvent(e, false));
}
private int SwigDirectorOnSubscriptionEvent(IntPtr e) {
return OnSubscriptionEvent((e == IntPtr.Zero) ? null : new SubscriptionEvent(e, false));
}
public delegate int SwigDelegateSipCallback_0(IntPtr e);
public delegate int SwigDelegateSipCallback_1(IntPtr e);
public delegate int SwigDelegateSipCallback_2(IntPtr e);
public delegate int SwigDelegateSipCallback_3(IntPtr e);
public delegate int SwigDelegateSipCallback_4(IntPtr e);
public delegate int SwigDelegateSipCallback_5(IntPtr e);
public delegate int SwigDelegateSipCallback_6(IntPtr e);
public delegate int SwigDelegateSipCallback_7(IntPtr e);
public delegate int SwigDelegateSipCallback_8(IntPtr e);
private SwigDelegateSipCallback_0 swigDelegate0;
private SwigDelegateSipCallback_1 swigDelegate1;
private SwigDelegateSipCallback_2 swigDelegate2;
private SwigDelegateSipCallback_3 swigDelegate3;
private SwigDelegateSipCallback_4 swigDelegate4;
private SwigDelegateSipCallback_5 swigDelegate5;
private SwigDelegateSipCallback_6 swigDelegate6;
private SwigDelegateSipCallback_7 swigDelegate7;
private SwigDelegateSipCallback_8 swigDelegate8;
private static Type[] swigMethodTypes0 = new Type[] { typeof(DialogEvent) };
private static Type[] swigMethodTypes1 = new Type[] { typeof(StackEvent) };
private static Type[] swigMethodTypes2 = new Type[] { typeof(InviteEvent) };
private static Type[] swigMethodTypes3 = new Type[] { typeof(MessagingEvent) };
private static Type[] swigMethodTypes4 = new Type[] { typeof(InfoEvent) };
private static Type[] swigMethodTypes5 = new Type[] { typeof(OptionsEvent) };
private static Type[] swigMethodTypes6 = new Type[] { typeof(PublicationEvent) };
private static Type[] swigMethodTypes7 = new Type[] { typeof(RegistrationEvent) };
private static Type[] swigMethodTypes8 = new Type[] { typeof(SubscriptionEvent) };
}
}
|