src/plugins/sd/example-plugin-sd.c
static bRC newPlugin(bpContext *ctx)
{
   int JobId = 0;
   bfuncs->getBaculaValue(ctx, bsdVarJobId, (void *)&JobId);
   printf("example-plugin-sd: newPlugin JobId=%d\n", JobId);
   bfuncs->registerBaculaEvents(ctx, 1, 2, 0);
   return bRC_OK;
}
/*
 * Create a new instance of the plugin i.e. allocate our private storage
 */
Create a new instance of the plugin i.e. allocate our private storage
Create a new instance of the plugin i . e . allocate our private storage
static bRC newPlugin(bpContext *ctx)
{
   int JobId = 0;
   bfuncs->getBaculaValue(ctx, bsdVarJobId, (void *)&JobId);
   printf("example-plugin-sd: newPlugin JobId=%d\n", JobId);
   bfuncs->registerBaculaEvents(ctx, 1, 2, 0);
   return bRC_OK;
}
static bRC newPlugin ( bpContext * ctx ) { int JobId = 0 ; bfuncs -> getBaculaValue ( ctx , bsdVarJobId , ( void * ) & JobId ) ; printf ( " \n " , JobId ) ; bfuncs -> registerBaculaEvents ( ctx , 1 , 2 , 0 ) ; return bRC_OK ; }
Create a new instance of the plugin i.e.
Create a new instance of the plugin i . e .