Further improve XLib code and include go code capable of calling it

This commit is contained in:
2021-10-22 15:15:11 +02:00
parent 0729d9a9ee
commit 9ca48b7bf8
8 changed files with 215 additions and 115 deletions

View File

@ -0,0 +1,16 @@
#include "devnodes.h"
#include "xslaves.h"
#include <stdio.h>
int main(int argc, char** argv) {
XSlaves* xs = get_slave_info();
for (int i=0; i < xs->length; i++)
{
XSlaveInfo si = xs->slaves[i];
printf("%s = %s\n", si.name, si.dev_node);
}
free_xslaves(xs);
}