From afea0fbd8e8fd89414a50978a000c08c0f678956 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:57:31 +0000 Subject: Utilisateur : Fcolin Date : 1/06/06 Heure : 10:14 Archivé dans $/Bus/Ivy Commentaire: ajout Binding Callback et SetFilter (vss 17) --- Bus/Ivy/Ivy.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Bus') diff --git a/Bus/Ivy/Ivy.h b/Bus/Ivy/Ivy.h index ddbc752..08977cd 100644 --- a/Bus/Ivy/Ivy.h +++ b/Bus/Ivy/Ivy.h @@ -55,6 +55,7 @@ private: IvyDieCallback *die_callback; IvyDirectMessageCallback *direct_callback; IvyApplicationCallback *application_callback; + IvyBindingCallback *binding_callback; /* list des adresses de broadcast */ ivy::string domain; /* nom de l'appliction */ @@ -82,14 +83,18 @@ protected: bool CheckRegexp( const char *exp ); void CallApplicationConnectedCallback( IvyApplication *app ); void CallApplicationDisconnectedCallback( IvyApplication *app ); + void CallBindingAddCallback(IvyApplication * app, int id, const char * regexp); + void CallBindingRemoveCallback(IvyApplication * app, int id, const char * regexp); + void CallBindingFilterCallback(IvyApplication * app, int id, const char * regexp); bool CallDieCallback( IvyApplication *app, int id, const char *arg ); void CallDirectMessageCallback( IvyApplication *app, int id, const char *arg ); void CallMessageCallback( IvyApplication *app, int id, int argc, const char **argv ); const char *GenApplicationUniqueIdentifier(); public: - - void Classes( int argc, const char **argv ); + + void SetBindCallback( IvyBindingCallback* bind_callback ); + void SetFilter( int argc, const char **argv ); void SendDieMsg( IvyApplication *app ); IvyApplication *GetApplication(const char *name); void SendDirectMsg( IvyApplication *app, int id, const char *message); -- cgit v1.1