summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ) ;