pass the name of the changed variable to the callback in resolv_reinit()
authorMiklos Tirpak <miklos@iptel.org>
Wed, 13 Feb 2008 15:17:39 +0000 (15:17 +0000)
committerMiklos Tirpak <miklos@iptel.org>
Wed, 13 Feb 2008 15:17:39 +0000 (15:17 +0000)
resolve.c
resolve.h

index fe18e43..c1d3f96 100644 (file)
--- a/resolve.c
+++ b/resolve.c
@@ -162,7 +162,7 @@ void resolv_reinit(str *name)
        _resolv_init();
 
 #ifdef DNS_WATCHDOG_SUPPORT
-       if (on_resolv_reinit_cb) on_resolv_reinit_cb();
+       if (on_resolv_reinit_cb) on_resolv_reinit_cb(name);
 #endif
        LOG(L_DBG, "DEBUG: resolv_reinit(): "
                "DNS resolver has been reinitialized\n");
index 1ac54c2..585ee9b 100644 (file)
--- a/resolve.h
+++ b/resolve.h
@@ -417,7 +417,7 @@ void reinit_naptr_proto_prefs(str *name);
  * If the callback is registered after forking, only the child process
  * that installs the hook will call the callback.
  */
-typedef void (*on_resolv_reinit)(void);
+typedef void (*on_resolv_reinit)(str*);
 int register_resolv_reinit_cb(on_resolv_reinit cb);
 #endif