diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-19 17:36:54 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-27 19:34:51 +0200 |
commit | 3bd78eb2faf09635b8d307e4440ccb1420f80716 (patch) | |
tree | c6a5c38c6ad0edf82b81949772e7a14723cf89df /src/providers/dp_dyndns.h | |
parent | bfdb2eeed95bde6cd065a9a47a7cb1773990ccfb (diff) | |
download | sssd-3bd78eb2faf09635b8d307e4440ccb1420f80716.tar.gz sssd-3bd78eb2faf09635b8d307e4440ccb1420f80716.tar.xz sssd-3bd78eb2faf09635b8d307e4440ccb1420f80716.zip |
Fix dyndns timer initialization
The dyndns init function was starting the timer even if the updates were
set to False. This patch splits the init of dynamic updates and the
timer into two functions so that the back end can start the updates
separately from reading the options.
Diffstat (limited to 'src/providers/dp_dyndns.h')
-rw-r--r-- | src/providers/dp_dyndns.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/providers/dp_dyndns.h b/src/providers/dp_dyndns.h index 14b2dd08b..1e81c9b91 100644 --- a/src/providers/dp_dyndns.h +++ b/src/providers/dp_dyndns.h @@ -67,10 +67,13 @@ errno_t be_nsupdate_check(void); errno_t be_nsupdate_init(TALLOC_CTX *mem_ctx, struct be_ctx *be_ctx, struct dp_option *defopts, - nsupdate_timer_fn_t timer_callback, - void *timer_pvt, struct be_nsupdate_ctx **_ctx); +errno_t be_nsupdate_init_timer(struct be_nsupdate_ctx *ctx, + struct tevent_context *ev, + nsupdate_timer_fn_t timer_callback, + void *timer_pvt); + void be_nsupdate_timer_schedule(struct tevent_context *ev, struct be_nsupdate_ctx *ctx); |