MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / isDisplayStringExcluded

Function isDisplayStringExcluded

server/faker.cpp:288–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287
288bool isDisplayStringExcluded(char *name)
289{
290 fconfig_reloadenv();
291
292 char *dpyList = strdup(fconfig.excludeddpys);
293 char *excluded = strtok(dpyList, ", \t");
294 while(excluded)
295 {
296 if(!strcasecmp(name, excluded))
297 {
298 free(dpyList); return true;
299 }
300 excluded = strtok(NULL, ", \t");
301 }
302 free(dpyList);
303 return false;
304}
305
306
307extern "C" {

Callers 1

setupXDisplayFunction · 0.85

Calls 1

fconfig_reloadenvFunction · 0.85

Tested by

no test coverage detected