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.c | 4 ++++ src/ivy.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ivy.c b/src/ivy.c index 07e262e..6414f72 100644 --- a/src/ivy.c +++ b/src/ivy.c @@ -400,6 +400,10 @@ static void Receive( Client client, void *data, char *line ) #ifdef DEBUG printf("Warning: regexp '%s' illegal, removing from %s\n",arg,ApplicationName); #endif //DEBUG + if ( application_bind_callback ) + { + (*application_bind_callback)( clnt, application_bind_data, id, snd->str_regexp, IvyFilterBind ); + } return; } #ifndef USE_PCRE_REGEX 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