aboutsummaryrefslogtreecommitdiff
path: root/src/os/wstream.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-07 17:57:45 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-12 19:28:30 -0300
commit519fd1deb6613aa41984a019082d458f5b8a27cc (patch)
treede0b7f29b577cdbb2e831e44529ad82b17b4dc9a /src/os/wstream.c
parent7f00608d57998858fd6a3e0720cbdbfeb92bd567 (diff)
downloadrneovim-519fd1deb6613aa41984a019082d458f5b8a27cc.tar.gz
rneovim-519fd1deb6613aa41984a019082d458f5b8a27cc.tar.bz2
rneovim-519fd1deb6613aa41984a019082d458f5b8a27cc.zip
Refactor modules to use handle data accessors
The job, rstream and wstream modules now use handle data accessors
Diffstat (limited to 'src/os/wstream.c')
-rw-r--r--src/os/wstream.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/os/wstream.c b/src/os/wstream.c
index c7984d8266..6bbd09dcd1 100644
--- a/src/os/wstream.c
+++ b/src/os/wstream.c
@@ -3,6 +3,7 @@
#include <uv.h>
+#include "os/uv_helpers.h"
#include "os/wstream.h"
#include "os/wstream_defs.h"
#include "vim.h"
@@ -54,7 +55,7 @@ void wstream_free(WStream *wstream)
void wstream_set_stream(WStream *wstream, uv_stream_t *stream)
{
- stream->data = wstream;
+ handle_set_wstream((uv_handle_t *)stream, wstream);
wstream->stream = stream;
}
@@ -112,3 +113,4 @@ static void write_cb(uv_write_t *req, int status)
free(data);
}
+