X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstream.h;h=e7eef365b4b8d83cb845d999995a5452bb6179b4;hb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;hp=7a62a5a374d0284ac0142832b35941e160c92353;hpb=58fda1dab104041fc693032475ec4662c1a52849;p=openvswitch diff --git a/lib/stream.h b/lib/stream.h index 7a62a5a3..e7eef365 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -17,17 +17,14 @@ #ifndef STREAM_H #define STREAM_H 1 -#include #include #include #include -#include "flow.h" - struct pstream; struct stream; -void stream_usage(const char *name, bool active, bool passive); +void stream_usage(const char *name, bool active, bool passive, bool bootstrap); /* Bidirectional byte streams. */ int stream_open(const char *name, struct stream **); @@ -42,6 +39,9 @@ int stream_connect(struct stream *); int stream_recv(struct stream *, void *buffer, size_t n); int stream_send(struct stream *, const void *buffer, size_t n); +void stream_run(struct stream *); +void stream_run_wait(struct stream *); + enum stream_wait_type { STREAM_CONNECT, STREAM_RECV,