本文整理汇总了C#中FreeSWITCH.Native.SWIGTYPE_p_f_p_switch_event__void类的典型用法代码示例。如果您正苦于以下问题:C# SWIGTYPE_p_f_p_switch_event__void类的具体用法?C# SWIGTYPE_p_f_p_switch_event__void怎么用?C# SWIGTYPE_p_f_p_switch_event__void使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SWIGTYPE_p_f_p_switch_event__void类属于FreeSWITCH.Native命名空间,在下文中一共展示了SWIGTYPE_p_f_p_switch_event__void类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: switch_event_unbind_callback
public static switch_status_t switch_event_unbind_callback(SWIGTYPE_p_f_p_switch_event__void callback)
{
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_unbind_callback(SWIGTYPE_p_f_p_switch_event__void.getCPtr(callback));
return ret;
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs
示例2: switch_event_bind_removable
public static switch_status_t switch_event_bind_removable(string id, switch_event_types_t arg1, string subclass_name, SWIGTYPE_p_f_p_switch_event__void callback, SWIGTYPE_p_void user_data, SWIGTYPE_p_p_switch_event_node node)
{
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_bind_removable(id, (int)arg1, subclass_name, SWIGTYPE_p_f_p_switch_event__void.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data), SWIGTYPE_p_p_switch_event_node.getCPtr(node));
return ret;
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs
示例3: Bind
public static IDisposable Bind(string id, switch_event_types_t event_types, string subclass_name, Action<EventBindingArgs> f, bool dupe)
{
switch_event_callback_delegate boundFunc;
if (dupe)
{
boundFunc = (eventObj) =>
{
var args = new EventBindingArgs { EventObj = SwitchEventDupe(new switch_event(eventObj,false)) };
f(args);
};
}
else
{
boundFunc = (eventObj) =>
{
var args = new EventBindingArgs { EventObj = new switch_event(eventObj, false) };
f(args);
};
}
var fp = Marshal.GetFunctionPointerForDelegate(boundFunc);
var swigFp = new SWIGTYPE_p_f_p_switch_event__void(fp, false);
var res = freeswitch.switch_event_bind(id, event_types, subclass_name, swigFp, null);
if (res != switch_status_t.SWITCH_STATUS_SUCCESS)
{
throw new InvalidOperationException("Call to switch_event_bind failed, result: " + res + ".");
}
return new EventBinding(swigFp, boundFunc);
}
开发者ID:jart,项目名称:freeswitch,代码行数:28,代码来源:EventBinding.cs
示例4: getCPtr
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_event__void obj)
{
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:4,代码来源:swig.2010.cs
示例5: EventBinding
private EventBinding(SWIGTYPE_p_f_p_switch_event__void function, switch_event_callback_delegate origDelegate)
{
this.function = function;
this.del = origDelegate;
}
开发者ID:jart,项目名称:freeswitch,代码行数:5,代码来源:EventBinding.cs
注:本文中的FreeSWITCH.Native.SWIGTYPE_p_f_p_switch_event__void类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论