diff options
author | ZyX <kp-pav@ya.ru> | 2014-05-10 00:53:36 +0400 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-02 11:04:04 -0300 |
commit | 880957ad4e3fc0ff681025f5e29c5eccf797c564 (patch) | |
tree | c222654d93e73760c98a0aca92411942ca94237a /src/nvim/os/rstream.h | |
parent | 52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853 (diff) | |
download | rneovim-880957ad4e3fc0ff681025f5e29c5eccf797c564.tar.gz rneovim-880957ad4e3fc0ff681025f5e29c5eccf797c564.tar.bz2 rneovim-880957ad4e3fc0ff681025f5e29c5eccf797c564.zip |
Move documentation from function declarations to definitions
Uses a perl script to move it (scripts/movedocs.pl)
Diffstat (limited to 'src/nvim/os/rstream.h')
-rw-r--r-- | src/nvim/os/rstream.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/nvim/os/rstream.h b/src/nvim/os/rstream.h index 5afa864f04..b93430ebcf 100644 --- a/src/nvim/os/rstream.h +++ b/src/nvim/os/rstream.h @@ -8,74 +8,27 @@ #include "nvim/os/event_defs.h" #include "nvim/os/rstream_defs.h" -/// Creates a new RStream instance. A RStream encapsulates all the boilerplate -/// necessary for reading from a libuv stream. -/// -/// @param cb A function that will be called whenever some data is available -/// for reading with `rstream_read` -/// @param buffer_size Size in bytes of the internal buffer. -/// @param data Some state to associate with the `RStream` instance -/// @param async Flag that specifies if the callback should only be called -/// outside libuv event loop(When processing async events with -/// KE_EVENT). Only the RStream instance reading user input should set -/// this to false -/// @return The newly-allocated `RStream` instance RStream * rstream_new(rstream_cb cb, size_t buffer_size, void *data, bool async); -/// Frees all memory allocated for a RStream instance -/// -/// @param rstream The `RStream` instance void rstream_free(RStream *rstream); -/// Sets the underlying `uv_stream_t` instance -/// -/// @param rstream The `RStream` instance -/// @param stream The new `uv_stream_t` instance void rstream_set_stream(RStream *rstream, uv_stream_t *stream); -/// Sets the underlying file descriptor that will be read from. Only pipes -/// and regular files are supported for now. -/// -/// @param rstream The `RStream` instance -/// @param file The file descriptor void rstream_set_file(RStream *rstream, uv_file file); -/// Tests if the stream is backed by a regular file -/// -/// @param rstream The `RStream` instance -/// @return True if the underlying file descriptor represents a regular file bool rstream_is_regular_file(RStream *rstream); -/// Starts watching for events from a `RStream` instance. -/// -/// @param rstream The `RStream` instance void rstream_start(RStream *rstream); -/// Stops watching for events from a `RStream` instance. -/// -/// @param rstream The `RStream` instance void rstream_stop(RStream *rstream); -/// Reads data from a `RStream` instance into a buffer. -/// -/// @param rstream The `RStream` instance -/// @param buffer The buffer which will receive the data -/// @param count Number of bytes that `buffer` can accept -/// @return The number of bytes copied into `buffer` size_t rstream_read(RStream *rstream, char *buffer, size_t count); -/// Returns the number of bytes available for reading from `rstream` -/// -/// @param rstream The `RStream` instance -/// @return The number of bytes available size_t rstream_available(RStream *rstream); -/// Runs the read callback associated with the rstream -/// -/// @param event Object containing data necessary to invoke the callback void rstream_read_event(Event event); #endif // NVIM_OS_RSTREAM_H |