Summary: Use Eina.Claabacks.EinaFreeCb instead.
Reviewers: lauromoura
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10577
<< "{\n\n"
<< scope_tab << "private " << f_name << "Internal _cb;\n"
<< scope_tab << "private IntPtr _cb_data;\n"
- << scope_tab << "private EinaFreeCb _cb_free_cb;\n\n"
+ << scope_tab << "private Eina.Callbacks.EinaFreeCb _cb_free_cb;\n\n"
- << scope_tab << "internal " << f_name << "Wrapper (" << f_name << "Internal _cb, IntPtr _cb_data, EinaFreeCb _cb_free_cb)\n"
+ << scope_tab << "internal " << f_name << "Wrapper (" << f_name << "Internal _cb, IntPtr _cb_data, Eina.Callbacks.EinaFreeCb _cb_free_cb)\n"
<< scope_tab << "{\n"
<< scope_tab << scope_tab << "this._cb = _cb;\n"
<< scope_tab << scope_tab << "this._cb_data = _cb_data;\n"
).generate(sink, std::make_tuple(param, param_name), context);
return as_generator(
- "IntPtr " << param_name << "_data, " << type << "Internal " << param_name << ", EinaFreeCb "
+ "IntPtr " << param_name << "_data, " << type << "Internal " << param_name << ", Eina.Callbacks.EinaFreeCb "
<< param_name << "_free_cb"
).generate(sink, param, context);
}
efl_mono_wrapper_supervisor_callbacks_set(FreeWrapperSupervisorCallbackDelegate);
}
- internal static void ThreadSafeFreeCbExec(EinaFreeCb cbFreeCb, IntPtr cbData)
+ internal static void ThreadSafeFreeCbExec(Eina.Callbacks.EinaFreeCb cbFreeCb, IntPtr cbData)
{
- EinaFreeCb cb = (IntPtr gcHandlePtr) => {
+ Eina.Callbacks.EinaFreeCb cb = (IntPtr gcHandlePtr) => {
cbFreeCb(cbData);
GCHandle gcHandle = GCHandle.FromIntPtr(gcHandlePtr);
gcHandle.Free();
} // namespace Efl
// Global delegates
-public delegate void EinaFreeCb(IntPtr data);
public delegate void EvasSmartCb(IntPtr data, IntPtr obj, IntPtr event_info);