*/
switch(eventType) {
case bEventPluginCommand:
+ case bEventPluginOptions:
case bEventOptionPlugin:
name = (char *)value;
if (!get_plugin_name(jcr, name, &len)) {
bEventComponentInfo = 25, /* Plugin component */
bEventFeatures = 26, /* Ask for file list, ... "xxx,yyy,zzz" */
bEventVerifyStream = 27, /* Register to get a copy of the data stream during verify */
+ bEventPluginOptions = 28, /* Sent when starting the job */
} bEventType;
{"PidDirectory", store_dir, ITEM(res_client.pid_directory), 0, ITEM_REQUIRED, 0},
{"SubsysDirectory", store_dir, ITEM(res_client.subsys_directory), 0, 0, 0},
{"PluginDirectory", store_dir, ITEM(res_client.plugin_directory), 0, 0, 0},
- {"Plugin", store_alist_str, ITEM(res_client.plugins), 0, 0, 0},
+ {"PluginOptions", store_alist_str, ITEM(res_client.plugins), 0, 0, 0},
{"SnapshotCommand", store_str, ITEM(res_client.snapshot_command), 0, 0, 0},
{"ScriptsDirectory", store_dir, ITEM(res_client.scripts_directory), 0, 0, 0},
{"MaximumConcurrentJobs", store_pint32, ITEM(res_client.MaxConcurrentJobs), 0, ITEM_DEFAULT, 20},
POOL_MEM buf(PM_MESSAGE);
BSOCK *dir = jcr->dir_bsock;
int rtnstat;
+ char *p;
#if HAVE_WIN32
jcr->Snapshot = (strstr(dir->msg, "vss=1") != NULL);
pm_strcpy(buf, dir->msg);
add_fileset(jcr, buf.c_str());
}
+ /* Foreach special configuration in the FD, we call the PluginOption event */
+ if (me->plugins) {
+ foreach_alist(p, me->plugins) {
+ generate_plugin_event(jcr, bEventPluginOptions, (void *)p);
+ }
+ }
if (!term_fileset(jcr)) {
return 0;
}
if (jcr->plugin_options_list) {
foreach_alist(opts, jcr->plugin_options_list) {
- generate_plugin_event(jcr, bEventPluginCommand, (void *)opts);
+ generate_plugin_event(jcr, bEventPluginOptions, (void *)opts);
}
}
*/
switch (event->eventType) {
- case bEventPluginCommand:
+ case bEventPluginOptions:
Jmsg(ctx, M_INFO, "Got plugin command = %s\n", (char *)value);
self->parse_cmd((char *)value);
bfuncs->registerBaculaEvents(ctx, bEventVerifyStream);
*/
switch (event->eventType) {
- case bEventPluginCommand:
+ case bEventPluginOptions:
Jmsg(ctx, M_INFO, "Got plugin command = %s\n", (char *)value);
self->parse_cmd((char *)value);
bfuncs->registerBaculaEvents(ctx, bEventVerifyStream);