mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-20 10:14:14 +00:00
fix eventConsumer issue and add flush() method
This commit is contained in:
1 parent
f1132a2b71
commit
7fd3aff6f0
12 files changed
+655
-57
No files matched your search
@@ -31132,6 +31132,55 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_EventConsumer_e_cb_arg_get(void * jarg1) {
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_enodes_set(void * jarg1, void * jarg2) {
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_event_node_t **arg2 ;
|
||||
|
||||
arg1 = (EventConsumer *)jarg1;
|
||||
arg2 = (switch_event_node_t **)jarg2;
|
||||
{
|
||||
size_t ii;
|
||||
switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes;
|
||||
for (ii = 0; ii < (size_t)SWITCH_EVENT_ALL+1; ii++) b[ii] = *((switch_event_node_t * *) arg2 + ii);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_EventConsumer_enodes_get(void * jarg1) {
|
||||
void * jresult ;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_event_node_t **result = 0 ;
|
||||
|
||||
arg1 = (EventConsumer *)jarg1;
|
||||
result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_node_index_set(void * jarg1, unsigned long jarg2) {
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
uint32_t arg2 ;
|
||||
|
||||
arg1 = (EventConsumer *)jarg1;
|
||||
arg2 = (uint32_t)jarg2;
|
||||
if (arg1) (arg1)->node_index = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_EventConsumer_node_index_get(void * jarg1) {
|
||||
unsigned long jresult ;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
uint32_t result;
|
||||
|
||||
arg1 = (EventConsumer *)jarg1;
|
||||
result = (uint32_t) ((arg1)->node_index);
|
||||
jresult = (unsigned long)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_new_EventConsumer(char * jarg1, char * jarg2) {
|
||||
void * jresult ;
|
||||
char *arg1 = (char *) NULL ;
|
||||
|
||||
@@ -584,6 +584,27 @@ public class EventConsumer : IDisposable {
|
||||
}
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_p_switch_event_node enodes {
|
||||
set {
|
||||
freeswitchPINVOKE.EventConsumer_enodes_set(swigCPtr, SWIGTYPE_p_p_switch_event_node.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = freeswitchPINVOKE.EventConsumer_enodes_get(swigCPtr);
|
||||
SWIGTYPE_p_p_switch_event_node ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_switch_event_node(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint node_index {
|
||||
set {
|
||||
freeswitchPINVOKE.EventConsumer_node_index_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = freeswitchPINVOKE.EventConsumer_node_index_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public EventConsumer(string event_name, string subclass_name) : this(freeswitchPINVOKE.new_EventConsumer(event_name, subclass_name), true) {
|
||||
}
|
||||
|
||||
@@ -12424,6 +12445,18 @@ class freeswitchPINVOKE {
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_e_cb_arg_get")]
|
||||
public static extern string EventConsumer_e_cb_arg_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_enodes_set")]
|
||||
public static extern void EventConsumer_enodes_set(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_enodes_get")]
|
||||
public static extern IntPtr EventConsumer_enodes_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_node_index_set")]
|
||||
public static extern void EventConsumer_node_index_set(HandleRef jarg1, uint jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_node_index_get")]
|
||||
public static extern uint EventConsumer_node_index_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_new_EventConsumer")]
|
||||
public static extern IntPtr new_EventConsumer(string jarg1, string jarg2);
|
||||
|
||||
|
||||
Reference in new issue
Block a user