From 6bf117656574521545694a1a4e5169755077631e Mon Sep 17 00:00:00 2001 From: fcolin Date: Wed, 19 Apr 2006 08:28:14 +0000 Subject: correction de probleme potentiel en multithread ( Ada rejeu ) ajout d'un warning en cas de client bloquant si la varaiable d'env IVY_DEBUG_SEND est positionne --- src/ivy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ivy.h') diff --git a/src/ivy.h b/src/ivy.h index 1ea319a..9911137 100644 --- a/src/ivy.h +++ b/src/ivy.h @@ -65,10 +65,10 @@ void IvyInit( void *die_data /* user data */ ); - void IvySetBindCallback( +void IvySetBindCallback( IvyBindCallback bind_callback, void *bind_data ); - void IvyDelBindCallback(); +void IvyDelBindCallback(); void IvyStart (const char*); void IvyStop (); -- cgit v1.1 From 5165be98a850bad1c2371f8ae8fa1e4cc8b76a15 Mon Sep 17 00:00:00 2001 From: fcolin Date: Wed, 19 Apr 2006 16:30:08 +0000 Subject: Add indication on regexp filtering when classes are used call BindingCallback --- src/ivy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ivy.h') diff --git a/src/ivy.h b/src/ivy.h index 9911137..fd1fb62 100644 --- a/src/ivy.h +++ b/src/ivy.h @@ -29,7 +29,7 @@ extern "C" { typedef struct _clnt_lst *IvyClientPtr; typedef enum { IvyApplicationConnected, IvyApplicationDisconnected } IvyApplicationEvent; -typedef enum { IvyAddBind, IvyRemoveBind } IvyBindEvent; +typedef enum { IvyAddBind, IvyRemoveBind, IvyFilterBind } IvyBindEvent; extern void IvyDefaultApplicationCallback( IvyClientPtr app, void *user_data, IvyApplicationEvent event ) ; extern void IvyDefaultBindCallback( IvyClientPtr app, void *user_data, int id, char* regexp, IvyBindEvent event ) ; -- cgit v1.1 From d20808b04feb328272a35ee2b03f4ae19db23fbe Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 20 Apr 2006 15:51:37 +0000 Subject: cleanup DEBUG code --- src/ivy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ivy.h') diff --git a/src/ivy.h b/src/ivy.h index fd1fb62..1056cd1 100644 --- a/src/ivy.h +++ b/src/ivy.h @@ -68,7 +68,7 @@ void IvyInit( void IvySetBindCallback( IvyBindCallback bind_callback, void *bind_data ); -void IvyDelBindCallback(); + void IvyStart (const char*); void IvyStop (); @@ -76,7 +76,7 @@ void IvyStop (); char *IvyGetApplicationName( IvyClientPtr app ); char *IvyGetApplicationHost( IvyClientPtr app ); IvyClientPtr IvyGetApplication( char *name ); -char *IvyGetApplicationList(); +char *IvyGetApplicationList(const char *sep); char **IvyGetApplicationMessages( IvyClientPtr app); /* demande de reception d'un message */ MsgRcvPtr IvyBindMsg( MsgCallback callback, void *user_data, const char *fmt_regexp, ... ); /* avec sprintf prealable */ -- cgit v1.1 From a885259e1ffaa6de1d71107d19c815fb7875c86a Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 21 Apr 2006 12:13:54 +0000 Subject: Separation du code Regexp dans un module --- src/ivy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ivy.h') diff --git a/src/ivy.h b/src/ivy.h index 1056cd1..e892070 100644 --- a/src/ivy.h +++ b/src/ivy.h @@ -54,7 +54,7 @@ typedef void (*MsgDirectCallback)( IvyClientPtr app, void *user_data, int id, ch typedef struct _msg_rcv *MsgRcvPtr; /* filtrage des regexps */ -void IvyClasses( int argc, const char **argv); +void IvySetFilter( int argc, const char **argv); void IvyInit( const char *AppName, /* nom de l'application */ -- cgit v1.1 From e761e4e47ad5da0036d4fec4e70319afacd10fd6 Mon Sep 17 00:00:00 2001 From: bustico Date: Fri, 22 Sep 2006 09:41:53 +0000 Subject: ajout du message IvyChangeMessage pour changer la regexp d'un abonnement déjà établi --- src/ivy.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ivy.h') diff --git a/src/ivy.h b/src/ivy.h index e892070..0ee4542 100644 --- a/src/ivy.h +++ b/src/ivy.h @@ -29,7 +29,7 @@ extern "C" { typedef struct _clnt_lst *IvyClientPtr; typedef enum { IvyApplicationConnected, IvyApplicationDisconnected } IvyApplicationEvent; -typedef enum { IvyAddBind, IvyRemoveBind, IvyFilterBind } IvyBindEvent; +typedef enum { IvyAddBind, IvyRemoveBind, IvyFilterBind, IvyChangeBind } IvyBindEvent; extern void IvyDefaultApplicationCallback( IvyClientPtr app, void *user_data, IvyApplicationEvent event ) ; extern void IvyDefaultBindCallback( IvyClientPtr app, void *user_data, int id, char* regexp, IvyBindEvent event ) ; @@ -80,6 +80,8 @@ char *IvyGetApplicationList(const char *sep); char **IvyGetApplicationMessages( IvyClientPtr app); /* demande de reception d'un message */ MsgRcvPtr IvyBindMsg( MsgCallback callback, void *user_data, const char *fmt_regexp, ... ); /* avec sprintf prealable */ +MsgRcvPtr IvyChangeMsg (MsgRcvPtr msg, const char *fmt_regex, ... ); /* avec sprintf prealable */ + void IvyUnbindMsg( MsgRcvPtr id ); /* emission d'un message d'erreur */ -- cgit v1.1