Browse code

pass the name of the changed variable to the callback in resolv_reinit()

Miklos Tirpak authored on 13/02/2008 15:17:39
Showing 2 changed files
... ...
@@ -162,7 +162,7 @@ void resolv_reinit(str *name)
162 162
 	_resolv_init();
163 163
 
164 164
 #ifdef DNS_WATCHDOG_SUPPORT
165
-	if (on_resolv_reinit_cb) on_resolv_reinit_cb();
165
+	if (on_resolv_reinit_cb) on_resolv_reinit_cb(name);
166 166
 #endif
167 167
 	LOG(L_DBG, "DEBUG: resolv_reinit(): "
168 168
 		"DNS resolver has been reinitialized\n");
... ...
@@ -417,7 +417,7 @@ void reinit_naptr_proto_prefs(str *name);
417 417
  * If the callback is registered after forking, only the child process
418 418
  * that installs the hook will call the callback.
419 419
  */
420
-typedef void (*on_resolv_reinit)(void);
420
+typedef void (*on_resolv_reinit)(str*);
421 421
 int register_resolv_reinit_cb(on_resolv_reinit cb);
422 422
 #endif
423 423