src/dird/ua_restore.c
static int jobid_handler(void *ctx, int num_fields, char **row)
{
   RESTORE_CTX *rx = (RESTORE_CTX *)ctx;

   if (strcmp(rx->last_jobid, row[0]) == 0) {
      return 0;                       /* duplicate id */
   }
   bstrncpy(rx->last_jobid, row[0], sizeof(rx->last_jobid));
   if (rx->JobIds[0] != 0) {
      pm_strcat(rx->JobIds, ",");
   }
   pm_strcat(rx->JobIds, row[0]);
   return 0;
}
/*
 * Callback handler make list of JobIds
 */
Callback handler make list of JobIds
Callback handler make list of JobIds
static int jobid_handler(void *ctx, int num_fields, char **row)
{
   RESTORE_CTX *rx = (RESTORE_CTX *)ctx;
   if (strcmp(rx->last_jobid, row[0]) == 0) {
      return 0;                       
   }
   bstrncpy(rx->last_jobid, row[0], sizeof(rx->last_jobid));
   if (rx->JobIds[0] != 0) {
      pm_strcat(rx->JobIds, ",");
   }
   pm_strcat(rx->JobIds, row[0]);
   return 0;
}
static int jobid_handler ( void * ctx , int num_fields , char * * row ) { RESTORE_CTX * rx = ( RESTORE_CTX * ) ctx ; if ( strcmp ( rx -> last_jobid , row [ 0 ] ) == 0 ) { return 0 ; } bstrncpy ( rx -> last_jobid , row [ 0 ] , sizeof ( rx -> last_jobid ) ) ; if ( rx -> JobIds [ 0 ] != 0 ) { pm_strcat ( rx -> JobIds , " " ) ; } pm_strcat ( rx -> JobIds , row [ 0 ] ) ; return 0 ; }
Callback handler make list of JobIds
Callback handler make list of JobIds
/* duplicate id */