Lines Matching refs:sd_list
230 static const SANE_Device **sd_list = NULL;
240 if ( sd_list )
242 DBG(100, "free sd_list at %p\n", (void *) sd_list);
243 free(sd_list);
244 sd_list=NULL;
251 if ( sd_list )
253 DBG(100, "free sd_list at %p\n", (void *) sd_list);
254 free(sd_list); /* free array of pointers */
257 sd_list = (const SANE_Device **)
259 DBG(100, "sane_get_devices: sd_list=%p, malloc'd %lu bytes\n",
260 (void *) sd_list, (u_long) ((md_num_devices + 1) * sizeof(SANE_Device **)));
262 if ( ! sd_list )
264 DBG(1, "sane_get_devices: malloc() for sd_list failed\n");
268 *device_list = sd_list;
292 sd_list[index] = &md->sane;
298 sd_list[index] = NULL;