author | Tero Marttila <terom@fixme.fi> |
Thu, 28 May 2009 01:17:36 +0300 | |
branch | new-lib-errors |
changeset 219 | cefec18b8268 |
parent 157 | src/fifo.h@1e5674d0eec4 |
permissions | -rw-r--r-- |
154
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
1 |
#ifndef FIFO_H |
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
2 |
#define FIFO_H |
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
3 |
|
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
4 |
#include "transport.h" |
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
5 |
|
157 | 6 |
#include <event2/event.h> |
7 |
||
154
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
8 |
/** |
157 | 9 |
* A read-only transport based on a FIFO, this provides nonblocking read operations by re-opening the FIFO on EOF. |
154
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
10 |
* |
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
11 |
* The transport will be ready for use right away, transport_callbacks::on_connect will never be called. |
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
12 |
* |
157 | 13 |
* @param transport_info the setup info required to create the transport |
155
c59d3eaff0fb
most of the new transport/sock code compiles, but things are still missing
Tero Marttila <terom@fixme.fi>
parents:
154
diff
changeset
|
14 |
* @param transport_ptr returned transport |
154
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
15 |
* @param path the path to the filesystem fifo object |
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
16 |
* @param err returned error info |
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
17 |
*/ |
157 | 18 |
err_t fifo_open_read (struct transport_info *transport_info, transport_t **transport_ptr, struct event_base *ev_base, |
19 |
const char *path, error_t *err); |
|
154
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
20 |
|
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
21 |
|
f4472119de3b
initial code towards transport implementation, doesn't compile
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
22 |
#endif |