2 * A trivial unit test to check linking without glib. A real test suite should
3 * probably based off libvhost-user-glib instead.
7 #include "libvhost-user.h"
10 panic(VuDev
*dev
, const char *err
)
16 set_watch(VuDev
*dev
, int fd
, int condition
,
17 vu_watch_cb cb
, void *data
)
23 remove_watch(VuDev
*dev
, int fd
)
28 static const VuDevIface iface
= {
33 main(int argc
, const char *argv
[])
36 uint16_t max_queues
= 2;
40 rc
= vu_init(&dev
, max_queues
, socket
, panic
, NULL
, set_watch
, remove_watch
, &iface
);