X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_stream.h;h=ce4cb8fa7e1394ab8251b50251bbd07a678fe01f;hb=58ea47f1e53d66fae94afb18a314bdfd8862948e;hp=02b7aed6180509f7a6d9a6a9e5a1d8d008800bf8;hpb=ae4e727a7abfdb7df9cb93769a0799494ec75254;p=palacios.git diff --git a/palacios/include/palacios/vmm_stream.h b/palacios/include/palacios/vmm_stream.h index 02b7aed..ce4cb8f 100644 --- a/palacios/include/palacios/vmm_stream.h +++ b/palacios/include/palacios/vmm_stream.h @@ -26,11 +26,11 @@ #ifdef __V3VEE__ -#define V3_StreamOpen(path, mode) \ +#define V3_StreamOpen(path, notify_fn, private_data, mode) \ ({ \ extern struct v3_stream_hooks *stream_hooks; \ ((stream_hooks) && (stream_hooks)->stream_open) ? \ - (stream_hooks)->stream_open((path), (mode)) : NULL; \ + (stream_hooks)->stream_open((path), (notify_fn), (private_data), (mode)) : NULL; \ }) #define V3_StreamRead(stream, b, l) \ @@ -62,11 +62,10 @@ #define STREAM_OPEN_MODE_WRITE (1 << 1) struct v3_stream_hooks { - void *(*stream_open)(const char *path, int mode); + void *(*stream_open)(const char *path, void (*notify)(void *), void *private_data, int mode); int (*stream_read)(void *stream, char *buf, int len); int (*stream_write)(void *stream, char *buf, int len); int (*stream_close)(void *stream); - };