Lines Matching refs:reader
31 typedef void (*eager_reader_cb)(eager_reader_t *reader, void *context);
33 // Creates a new eager reader object, which pulls data from |fd_to_read| into
46 // Frees an eager reader object, and associated internal resources.
47 // |reader| may be NULL.
48 void eager_reader_free(eager_reader_t *reader);
50 // Registers |reader| with the |reactor|. When the reader has data
52 // Neither |reader|, nor |reactor|, nor |read_cb| may be NULL. |context| may be NULL.
53 void eager_reader_register(eager_reader_t *reader, reactor_t *reactor, eager_reader_cb read_cb, void *context);
55 // Unregisters |reader| from whichever reactor it is registered with, if any. This
57 void eager_reader_unregister(eager_reader_t *reader);
64 size_t eager_reader_read(eager_reader_t *reader, uint8_t *buffer, size_t max_size, bool block);
66 // Returns the inbound read thread for a given |reader| or NULL if the thread
68 thread_t* eager_reader_get_read_thread(const eager_reader_t *reader);