src/dird/mac_sql.c
static int unique_dbid_handler(void *ctx, int num_fields, char **row)
{
   idpkt *ids = (idpkt *)ctx;

   /* Sanity check */
   if (!row || !row[0]) {
      Dmsg0(dbglevel, "dbid_hdlr error empty row\n");
      return 1;              /* stop calling us */
   }

   add_unique_id(ids, row[0]);
   Dmsg3(dbglevel, "dbid_hdlr count=%d Ids=%p %s\n", ids->count, ids->list, ids->list);
   return 0;
}
/*
 * Callback handler make list of DB Ids
 */
Callback handler make list of DB Ids
Callback handler make list of DB Ids
static int unique_dbid_handler(void *ctx, int num_fields, char **row)
{
   idpkt *ids = (idpkt *)ctx;
   if (!row || !row[0]) {
      Dmsg0(dbglevel, "dbid_hdlr error empty row\n");
      return 1;              
   }
   add_unique_id(ids, row[0]);
   Dmsg3(dbglevel, "dbid_hdlr count=%d Ids=%p %s\n", ids->count, ids->list, ids->list);
   return 0;
}
static int unique_dbid_handler ( void * ctx , int num_fields , char * * row ) { idpkt * ids = ( idpkt * ) ctx ; if ( ! row || ! row [ 0 ] ) { Dmsg0 ( dbglevel , " \n " ) ; return 1 ; } add_unique_id ( ids , row [ 0 ] ) ; Dmsg3 ( dbglevel , " \n " , ids -> count , ids -> list , ids -> list ) ; return 0 ; }
Callback handler make list of DB Ids
Callback handler make list of DB Ids
/* Sanity check */ /* stop calling us */