#ifndef FIFO_H
#define FIFO_H
#include "transport.h"
#include <event2/event.h>
/**
* A read-only transport based on a FIFO, this provides nonblocking read operations by re-opening the FIFO on EOF.
*
* The transport will be ready for use right away, transport_callbacks::on_connect will never be called.
*
* @param transport_info the setup info required to create the transport
* @param transport_ptr returned transport
* @param path the path to the filesystem fifo object
* @param err returned error info
*/
err_t fifo_open_read (struct transport_info *transport_info, transport_t **transport_ptr, struct event_base *ev_base,
const char *path, error_t *err);
#endif