The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/ctl: Print devices as well

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
233ca935 5c08dc16

+14 -1
+14 -1
src/xrt/targets/ctl/main.c
··· 42 42 exit(1); 43 43 } 44 44 45 + printf("Clients:\n"); 45 46 for (uint32_t i = 0; i < IPC_MAX_CLIENTS; i++) { 46 47 if (clients.ids[i] < 0) { 47 48 continue; ··· 58 59 } 59 60 60 61 printf( 61 - "id: %d" 62 + "\tid: %d" 62 63 "\tact: %d" 63 64 "\tdisp: %d" 64 65 "\tfoc: %d" ··· 76 77 cs.z_order, // 77 78 cs.pid, // 78 79 cs.info.application_name); 80 + } 81 + 82 + printf("\nDevices:\n"); 83 + for (uint32_t i = 0; i < ipc_c->ism->num_isdevs; i++) { 84 + struct ipc_shared_device *isdev = &ipc_c->ism->isdevs[i]; 85 + printf( 86 + "\tid: %d" 87 + "\tname: %d" 88 + "\t\"%s\"\n", 89 + i, // 90 + isdev->name, // 91 + isdev->str); // 79 92 } 80 93 81 94 return 0;