38 #include "clientpipe.h" 42 static const char *module_str =
"enforce_cmd";
60 "Force the enforcer to run once for every zone.\n\n" 65 handles(
const char *cmd, ssize_t n)
71 reschedule_enforce(
task_type *task, time_t t_when,
const char *z_when)
73 ods_log_assert(task->
who);
74 task->
who = strdup(z_when);
84 run(
int sockfd,
engine_type* engine,
const char *cmd, ssize_t n,
98 reschedule_enforce(task, t_next,
"next zone");
void ods_log_debug(const char *format,...)
time_t perform_enforce_lock(int sockfd, engine_type *engine, int bForceUpdate, task_type *task, db_connection_t *dbconn)
int(* run)(int sockfd, struct engine_struct *engine, const char *cmd, ssize_t n, db_connection_t *dbconn)
ods_status schedule_task(schedule_type *schedule, task_type *task)
struct cmd_func_block * enforce_funcblock(void)
void(* usage)(int sockfd)
task_type * enforce_task(engine_type *engine, bool all)
void task_cleanup(task_type *task)
int(* handles)(const char *cmd, ssize_t n)