*/
/*
- Copyright (C) 2000-2003 Kern Sibbald and John Walker
+ Copyright (C) 2000-2004 Kern Sibbald and John Walker
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
/* Forward referenced functions */
-static void *connect_thread(void *arg);
+extern "C" void *connect_thread(void *arg);
+
static void *handle_UA_client_request(void *arg);
return;
}
-static void *connect_thread(void *arg)
+extern "C"
+void *connect_thread(void *arg)
{
struct s_addr_port *UA = (struct s_addr_port *)arg;
* Create a Job Control Record for a control "job",
* filling in all the appropriate fields.
*/
-JCR *new_control_jcr(char *base_name, int job_type)
+JCR *new_control_jcr(const char *base_name, int job_type)
{
JCR *jcr;
jcr = new_jcr(sizeof(JCR), dird_free_jcr);
create_unique_job_name(jcr, base_name);
jcr->sched_time = jcr->start_time;
jcr->JobType = job_type;
- jcr->JobLevel = L_FULL;
+ jcr->JobLevel = L_NONE;
jcr->JobStatus = JS_Running;
jcr->JobId = 0;
/*