X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstream.h;h=256667e6852039e057dc0cc33a96b1048a658914;hb=1e82e503c5358f8dce9eb2105448f0ec894d57bc;hp=d8b0814663db00b49eb0d246e2d016f3904bf4bf;hpb=cc1ad53290f439bb137888fed3cc51826addd24c;p=openvswitch diff --git a/lib/stream.h b/lib/stream.h index d8b08146..256667e6 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -20,6 +20,7 @@ #include #include #include +#include "vlog.h" struct pstream; struct stream; @@ -72,5 +73,17 @@ int pstream_open_with_default_ports(const char *name, uint16_t default_ptcp_port, uint16_t default_pssl_port, struct pstream **); + +/* Error reporting. */ + +enum stream_content_type { + STREAM_UNKNOWN, + STREAM_OPENFLOW, + STREAM_SSL, + STREAM_JSONRPC +}; + +void stream_report_content(const void *, size_t, enum stream_content_type, + enum vlog_module, const char *stream_name); #endif /* stream.h */