Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


remove the reparant_threadd function from host os hooks
[palacios.git] / palacios / include / palacios / vmm_stream.h
index 02b7aed..ce4cb8f 100644 (file)
 
 #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)                                    \
 #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);
-
 };