summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfcolin2006-04-19 16:30:08 +0000
committerfcolin2006-04-19 16:30:08 +0000
commit5165be98a850bad1c2371f8ae8fa1e4cc8b76a15 (patch)
tree10da9fe1a0b9c5fc49ac621d80c6d8cccce36f88 /src
parent32ad3909b0de5402cf92dba6aa196d1608af0e65 (diff)
downloadivy-c-5165be98a850bad1c2371f8ae8fa1e4cc8b76a15.zip
ivy-c-5165be98a850bad1c2371f8ae8fa1e4cc8b76a15.tar.gz
ivy-c-5165be98a850bad1c2371f8ae8fa1e4cc8b76a15.tar.bz2
ivy-c-5165be98a850bad1c2371f8ae8fa1e4cc8b76a15.tar.xz
Add indication on regexp filtering when classes are used call BindingCallback
Diffstat (limited to 'src')
-rw-r--r--src/ivy.c4
-rw-r--r--src/ivy.h2
2 files changed, 5 insertions, 1 deletions
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 ) ;