Plugin EntryPoints
This section will describe each of the entry points (subroutines) within the plugin that the plugin must provide for Bacula, when they are called and their arguments. As noted above, pointers to these subroutines are passed back to Bacula in the pFuncs structure when Bacula calls the loadPlugin() externally defined entry point.
Read more:
- pluginIO(bpContext *ctx, struct io_pkt *io)
- setPluginValue(bpContext *ctx, pVariable var, void *value)
- setFileAttributes(bpContext *ctx, struct restore_pkt *rp)
- bool checkFile(bpContext *ctx, char *fname)
- startVerifyFile(bpContext *ctx, struct save_pkt *sp)
- startRestoreFile(bpContext *ctx, const char *cmd)
- createFile(bpContext *ctx, struct restore_pkt *rp)
- endBackupFile(bpContext *ctx)
- startBackupFile(bpContext *ctx, struct save_pkt *sp)
- freePlugin(bpContext *ctx)
- bRC queryParameter(bpContext *ctx, struct query_pkt *qp)
- newPlugin(bpContext *ctx)
- getPluginValue(bpContext *ctx, pVariable var, void *value)
- handlePluginEvent(bpContext *ctx, bEvent *event, void *value)
- endRestoreFile(bpContext *ctx)
See also
Next articles:
Go back to: Bacula FD Plugin API.