Lines Matching defs:gDeviceNames
22 char* gDeviceNames[MAX_DEVICES + 1];
130 gDeviceNames[0] = NULL;
161 for (int32 i = 0; gDeviceNames[i]; i++) {
162 free(gDeviceNames[i]);
163 gDeviceNames[i] = NULL;
181 if (strcmp(gDeviceNames[i], name) == 0) {
238 for (int32 i = 0; gDeviceNames[i]; i++) {
239 free(gDeviceNames[i]);
240 gDeviceNames[i] = NULL;
248 gDeviceNames[deviceCount] = (char*)malloc(strlen(sDeviceBaseName) + 4);
249 if (gDeviceNames[deviceCount]) {
250 sprintf(gDeviceNames[deviceCount], "%s%ld", sDeviceBaseName, i + 1);
251 TRACE(INF, "publishing %s\n", gDeviceNames[deviceCount]);
257 gDeviceNames[deviceCount] = NULL;
258 return (const char**)&gDeviceNames[0];