bwVarJobReport = 1,
bwVarVolumeName = 2,
bwVarPriority = 3,
- bwVarJobLevel = 4,
+ bwVarJobLevel = 4
} bwVariable;
typedef enum {
bEventJobStart = 1,
bEventJobEnd = 2,
+ bEventExit = 3
} bEventType;
typedef struct s_bEvent {
edit_uint64_with_commas(sm_max_bytes, b3),
edit_uint64_with_commas(sm_buffers, b4),
edit_uint64_with_commas(sm_max_buffers, b5));
+
+ /* TODO: use this function once for all daemons */
+ if (debug_level > 0 && plugin_list->size() > 0) {
+ int len;
+ Plugin *plugin;
+ POOL_MEM msg(PM_FNAME);
+ pm_strcpy(msg, " Plugin: ");
+ foreach_alist(plugin, plugin_list) {
+ len = pm_strcat(msg, plugin->file);
+ if (len > 80) {
+ pm_strcat(msg, "\n ");
+ } else {
+ pm_strcat(msg, " ");
+ }
+ }
+ ua->send_msg("%s\n", msg.c_str());
+ }
}
static void do_director_status(UAContext *ua)
if (debug_level > 0 && plugin_list->size() > 0) {
Plugin *plugin;
int len;
- pm_strcpy(msg, "Plugin=");
+ pm_strcpy(msg, "Plugin: ");
foreach_alist(plugin, plugin_list) {
len = pm_strcat(msg, plugin->file);
if (len > 80) {
$(CXX) $(LDFLAGS) -L${LIBDIR} dir_plugins.o -o main -lbac -lpthread -lssl -l crypto -ldl
example-plugin-dir.o: example-plugin-dir.c ${DIRDIR}/dir_plugins.h
- $(CXX) -fPIC -I../.. -I${DIRDIR} -c example-plugin-fd.c
+ $(CXX) -fPIC -I../.. -I${DIRDIR} -c example-plugin-dir.c
example-plugin-dir.so: example-plugin-dir.o
$(CXX) $(LDFLAGS) -shared example-plugin-dir.o -o example-plugin-dir.so
General:
12Nov08
+ebl Do work on plugins
+ - fix compilation of the director plugins
+ - add plugin list to status dir output
+ - add director plugin dump after a fatal signal
ebl Apply Riccardo's patch that fix some win32 compilation errors
and a bug with bat version browser.
11Nov08