summaryrefslogtreecommitdiff
path: root/Ivy.cxx
diff options
context:
space:
mode:
authorbustico2006-06-01 12:08:21 +0000
committerbustico2006-06-01 12:08:21 +0000
commit0af51dbec459d2555a5597dc092c7d012f3df250 (patch)
tree5a4a4c69c439dc9508bac72bb3f1c533389482f1 /Ivy.cxx
parent9ac55df54fbcf5b17f53e38a18d538e9af074488 (diff)
downloadivy-cplusplus-0af51dbec459d2555a5597dc092c7d012f3df250.zip
ivy-cplusplus-0af51dbec459d2555a5597dc092c7d012f3df250.tar.gz
ivy-cplusplus-0af51dbec459d2555a5597dc092c7d012f3df250.tar.bz2
ivy-cplusplus-0af51dbec459d2555a5597dc092c7d012f3df250.tar.xz
ajout du filtrage statique des classes de message
Diffstat (limited to 'Ivy.cxx')
-rw-r--r--Ivy.cxx30
1 files changed, 29 insertions, 1 deletions
diff --git a/Ivy.cxx b/Ivy.cxx
index cddd5cc..699219e 100644
--- a/Ivy.cxx
+++ b/Ivy.cxx
@@ -251,7 +251,7 @@ void Ivy::SendDirectMsg(IvyApplication * app, int id, const char *message)
# | |____ | | | (_| | \__ \ \__ \ | __/ \__ \
# \_____| |_| \__,_| |___/ |___/ \___| |___/
*/
-void Ivy::Classes(int argc, const char **argv )
+void Ivy::SetFilter(int argc, const char **argv )
{
IvyC::IvySetFilter( argc, argv);
}
@@ -355,3 +355,31 @@ void Ivy::MsgCb( IvyC::IvyClientPtr app, void *user_data, int argc, char **argv
glfwUnlockMutex (ivyCbmutex);
#endif
}
+
+
+void Ivy::BindCallbackCb( IvyC::IvyClientPtr app, void *user_data, int id, char *msg,
+ IvyC::IvyBindEvent event)
+{
+ IvyBindingCallback *cb = (IvyBindingCallback *)user_data;
+ IvyApplication *appObj = new IvyApplication( app );
+
+ switch ( event )
+ {
+ case IvyC::IvyAddBind :
+ cb->OnAddBind ( appObj, id, msg);
+ break;
+ case IvyC::IvyRemoveBind :
+ cb->OnRemoveBind( appObj, id, msg );
+ break;
+ case IvyC::IvyFilterBind :
+ cb->OnFilterBind( appObj, id, msg );
+ break;
+ }
+ delete appObj;
+}
+
+
+void Ivy::SetBindCallback(IvyBindingCallback* bind_callback )
+{
+ IvySetBindCallback (BindCallbackCb, bind_callback);
+}