X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstream.h;h=5c536c6ae5ff1af0548e4bb5f715ebb9a50cb12b;hb=d530fcd2425c2443c1a1c093903b6932c4c5814c;hp=d8b0814663db00b49eb0d246e2d016f3904bf4bf;hpb=cc1ad53290f439bb137888fed3cc51826addd24c;p=openvswitch diff --git a/lib/stream.h b/lib/stream.h index d8b08146..5c536c6a 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, + struct vlog_module *, const char *stream_name); #endif /* stream.h */