|
From: Philippe M. <pm...@ac...> - 2010-02-28 02:55:38
|
Hi, Sometimes in my application I can have multiple different handlers registered for the same method. For example, I can be in a state similar by the one created by: lo_server_add_method(localOSCServer, "/foo/bar", "f", foo_handler, NULL); lo_server_add_method(localOSCServer, "/foo/bar", "f", bar_handler, NULL); Now, I'd like to unregister bar_handler while keeping foo_handler registered. I don't see how to do that with the current API (seems that I can only remove the whole "/foo/bar" method with all associated handlers). I may well be overlooking something as I'm new to liblo (besides, it's 1 a.m.) If not, do you think it would be a good idea to extend the API with something like lo_server_del_method_handler (lo_server s, const char *path, const char *typespec, lo_method_handler h), which would remove h from the handlers associated with the given path/typespecs? Thanks, Philippe Mougin http://www.fscript.org |