protected void addEvent(String name, ref int hookid, CamelEventFunc hook, Delegate value) { if (hookid == -1) hookid = camel_object_hook_event(cobject, name, hook, (IntPtr)0); events.AddHandler(name, value); }
public static extern int camel_object_hook_event(IntPtr raw, string name, CamelEventFunc func, IntPtr data);