Changeset 4e72a4c in mainline


Ignore:
Timestamp:
2013-04-12T04:14:48Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d120133
Parents:
6eeaf1d
Message:

libhound: add stream drain function

Location:
uspace/lib/hound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/hound/include/hound/client.h

    r6eeaf1d r4e72a4c  
    7171int hound_stream_write(hound_stream_t *stream, const void *data, size_t size);
    7272int hound_stream_read(hound_stream_t *stream, void *data, size_t size);
     73int hound_stream_drain(hound_stream_t *stream);
    7374
    7475int hound_write_main_stream(hound_context_t *hound,
  • uspace/lib/hound/src/client.c

    r6eeaf1d r4e72a4c  
    361361
    362362/**
     363 * Wait until the server side buffer is empty.
     364 * @param stream The stream that shoulod be drained.
     365 * @return Error code.
     366 */
     367int hound_stream_drain(hound_stream_t *stream)
     368{
     369        assert(stream);
     370        return hound_service_stream_drain(stream->exch);
     371}
     372
     373/**
    363374 * Main stream getter function.
    364375 * @param hound Houndcontext.
Note: See TracChangeset for help on using the changeset viewer.