9 struct aura_node *n =
aura_open(
"simpleusb",
"./simpleusbconfigs/pw-ctl.conf");
18 ret =
aura_call(n,
"bit_set", &retbuf, 12<<8 | 1, 1);
19 slog(0, SLOG_DEBUG,
"call ret %d", ret);
21 printf(
"====> buf pos %d len %d\n", retbuf->
pos, retbuf->
size);
28 printf(
"<=================>\n");
29 ret =
aura_call(n,
"bit_set", &retbuf, 12<<8, v);
30 slog(0, SLOG_DEBUG,
"call ret %d", ret);
32 printf(
"====> buf pos %d len %d\n", retbuf->
pos, retbuf->
size);
void aura_wait_status(struct aura_node *node, int status)
int aura_call(struct aura_node *node, const char *name, struct aura_buffer **retbuf,...)
struct aura_node * aura_open(const char *name, const char *opts)
void aura_buffer_release(struct aura_buffer *buf)
void aura_close(struct aura_node *node)