bRC queryParameter(bpContext *ctx, struct query_pkt *qp)

If this entry point is set, the user via bconsole can call the plugin to have information about parameters.

struct query_pkt {
   int32_t pkt_size;                  /* Size of this packet */
   char *parameter;
   char *command;
   char *api_opts;
   char *result;
   int32_t pkt_end;                   /* end packet sentinel */
};

The plugin command line is stored in command, the parameter in parameter, and the current API options in api_opts can be used directly in the OutputWriter object.

.query plugin="plugin: parameters" parameter="parameter"

Possible Next Steps

Go back to Plugin EntryPoints.

Go back to Bacula FD Plugin API.

Go back to Developer Guide.