/*
- *
+ *
* Bacula interface to Python for the Director
*
* Kern Sibbald, November MMIV
*/
/*
-
+
Copyright (C) 2004 Kern Sibbald
This program is free software; you can redistribute it and/or
PyMethodDef BaculaMethods[] = {
{"get", bacula_get, METH_VARARGS, "Get Bacula variables."},
{"set", (PyCFunction)bacula_set, METH_VARARGS|METH_KEYWORDS,
- "Set Bacula variables."},
+ "Set Bacula variables."},
{"run", (PyCFunction)bacula_run, METH_VARARGS, "Run a Bacula command."},
{NULL, NULL, 0, NULL} /* last item */
};
struct s_vars {
const char *name;
char *fmt;
-};
+};
static struct s_vars vars[] = {
{ N_("Job"), "s"},
{ N_("MediaType"), "s"},
{ N_("JobName"), "s"},
{ N_("JobStatus"), "s"},
-
+
{ NULL, NULL}
};
char *msg = NULL;
char *VolumeName = NULL;
static char *kwlist[] = {"jcr", "JobReport", "VolumeName", NULL};
- if (!PyArg_ParseTupleAndKeywords(args, keyw, "O|ss:set", kwlist,
+ if (!PyArg_ParseTupleAndKeywords(args, keyw, "O|ss:set", kwlist,
&CObject, &msg, &VolumeName)) {
return NULL;
}