X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstream.h;h=5c111f999e3de4423481d036d9d5302abb68467e;hb=05bfbcb693680794c5a0398587a7da6b46b3e3f5;hp=2482bf20ceb5267e313b3ae6920aa7986cf488fa;hpb=4408d18aac89b94249c46f39757026cb337b949f;p=sliver-openvswitch.git diff --git a/lib/stream.h b/lib/stream.h index 2482bf20c..5c111f999 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * Copyright (c) 2009, 2010, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,10 @@ #include #include #include +#include #include "openvswitch/types.h" #include "vlog.h" +#include "socket-util.h" struct pstream; struct stream; @@ -74,7 +76,11 @@ int pstream_open_with_default_ports(const char *name, uint16_t default_ptcp_port, uint16_t default_pssl_port, struct pstream **); - +bool stream_parse_target_with_default_ports(const char *target, + uint16_t default_tcp_port, + uint16_t default_ssl_port, + struct sockaddr_in *sin); + /* Error reporting. */ enum stream_content_type { @@ -84,7 +90,7 @@ enum stream_content_type { STREAM_JSONRPC }; -void stream_report_content(const void *, size_t, enum stream_content_type, +void stream_report_content(const void *, ssize_t, enum stream_content_type, struct vlog_module *, const char *stream_name); #endif /* stream.h */