aura  0.1
 All Data Structures Functions Variables Modules Pages
dummy-call-too-early.c
1 #include <aura/aura.h>
2 
3 int main() {
4  slog_init(NULL, 18);
5 
6  int ret;
7  struct aura_node *n = aura_open("dummy", NULL);
8  struct aura_buffer *retbuf;
9 
10  /* We don't wait for status. Call should fail. Call shouldn't leak */
11  //aura_wait_status(n, AURA_STATUS_ONLINE);
12 
13  ret = aura_call(n, "echo_u16", &retbuf, 0x0102);
14  slog(0, SLOG_DEBUG, "call ret %d", ret);
15  if (ret ==0)
16  BUG(n, "This shouldn't happen");
17 
18  aura_close(n);
19  return 0;
20 }
21 
22 
int aura_call(struct aura_node *node, const char *name, struct aura_buffer **retbuf,...)
Definition: aura.c:666
struct aura_node * aura_open(const char *name, const char *opts)
Definition: aura.c:34
void aura_close(struct aura_node *node)
Definition: aura.c:102