Lines Matching defs:gDeviceNames
53 static char **gDeviceNames = NULL;
975 if (gDeviceNames) {
976 for (int32 i = 1; gDeviceNames[i]; i++)
977 free(gDeviceNames[i]);
978 free(gDeviceNames);
979 gDeviceNames = NULL;
991 if (gDeviceNames) {
992 for (int32 i = 0; gDeviceNames[i]; i++)
993 free(gDeviceNames[i]);
994 free(gDeviceNames);
995 gDeviceNames = NULL;
999 gDeviceNames = (char **)malloc(sizeof(char *) * (gDeviceCount + 2));
1000 if (gDeviceNames == NULL)
1003 gDeviceNames[index++] = strdup(DEVICE_NAME);
1008 gDeviceNames[index++] = strdup(element->name);
1012 gDeviceNames[index++] = NULL;
1014 return (const char **)gDeviceNames;