jcr->sd_auth_key = bstrdup(sd_auth_key);
free_pool_memory(sd_auth_key);
Dmsg2(120, "JobId=%d Auth=%s\n", jcr->JobId, jcr->sd_auth_key);
- generate_plugin_event(jcr, bEventJobStart, (void *)dir->msg);
+ Mmsg(jcr->errmsg, "JobId=%d Job=%s", jcr->JobId, jcr->Job);
+ generate_plugin_event(jcr, bEventJobStart, (void *)jcr->errmsg);
return dir->fsend(OKjob, VERSION, LSMDATE, HOST_OS, DISTNAME, DISTVER);
}
{
int JobId = 0;
bfuncs->getBaculaValue(ctx, bVarJobId, (void *)&JobId);
- printf("plugin: newPlugin JobId=%d\n", JobId);
+// printf("plugin: newPlugin JobId=%d\n", JobId);
bfuncs->registerBaculaEvents(ctx, 1, 2, 0);
return 0;
}
{
int JobId = 0;
bfuncs->getBaculaValue(ctx, bVarJobId, (void *)&JobId);
- printf("plugin: freePlugin JobId=%d\n", JobId);
+// printf("plugin: freePlugin JobId=%d\n", JobId);
return 0;
}
static bpError getPluginValue(bpContext *ctx, pVariable var, void *value)
{
- printf("plugin: getPluginValue var=%d\n", var);
+// printf("plugin: getPluginValue var=%d\n", var);
return 0;
}
static bpError setPluginValue(bpContext *ctx, pVariable var, void *value)
{
- printf("plugin: setPluginValue var=%d\n", var);
+// printf("plugin: setPluginValue var=%d\n", var);
return 0;
}
char *name;
switch (event->eventType) {
case bEventJobStart:
- printf("plugin: HandleEvent JobStart\n");
+ printf("plugin: JobStart=%s\n", (char *)value);
break;
case bEventJobEnd:
- printf("plugin: HandleEvent JobEnd\n");
+ printf("plugin: JobEnd\n");
+ break;
+ case bEventBackupStart:
+ printf("plugin: BackupStart\n");
+ break;
+ case bEventBackupEnd:
+ printf("plugin: BackupEnd\n");
+ break;
+ case bEventPluginCommand:
+ printf("plugin: command=%s\n", (char *)value);
+ break;
+ case bEventLevel:
+ printf("plugin: JobLevel=%c %d\n", (int)value, (int)value);
+ break;
+ case bEventSince:
+ printf("plugin: since=%d\n", (int)value);
break;
}
bfuncs->getBaculaValue(ctx, bVarFDName, (void *)&name);
- printf("FD Name=%s\n", name);
- bfuncs->JobMessage(ctx, __FILE__, __LINE__, 1, 0, "JobMesssage message");
- bfuncs->DebugMessage(ctx, __FILE__, __LINE__, 1, "DebugMesssage message");
+// printf("FD Name=%s\n", name);
+// bfuncs->JobMessage(ctx, __FILE__, __LINE__, 1, 0, "JobMesssage message");
+// bfuncs->DebugMessage(ctx, __FILE__, __LINE__, 1, "DebugMesssage message");
return 0;
}