X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstream-provider.h;h=43c63e81beafdc671a95ca2c137eab5c94da9563;hb=7431e17196fdb1c3189d67e3aeed4adeab4cf479;hp=b39dcf01788785d7692a72175a3f65d46eeb3a61;hpb=f89b7ce502441c9b71ac469846049ecacabcd888;p=sliver-openvswitch.git diff --git a/lib/stream-provider.h b/lib/stream-provider.h index b39dcf017..43c63e81b 100644 --- a/lib/stream-provider.h +++ b/lib/stream-provider.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira, Inc. + * Copyright (c) 2009, 2010, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ #ifndef STREAM_PROVIDER_H #define STREAM_PROVIDER_H 1 -#include #include #include "stream.h" @@ -46,7 +45,7 @@ void stream_set_local_port(struct stream *, ovs_be16 local_port); static inline void stream_assert_class(const struct stream *stream, const struct stream_class *class) { - assert(stream->class == class); + ovs_assert(stream->class == class); } struct stream_class { @@ -140,13 +139,15 @@ struct stream_class { struct pstream { const struct pstream_class *class; char *name; + ovs_be16 bound_port; }; void pstream_init(struct pstream *, const struct pstream_class *, const char *name); +void pstream_set_bound_port(struct pstream *, ovs_be16 bound_port); static inline void pstream_assert_class(const struct pstream *pstream, const struct pstream_class *class) { - assert(pstream->class == class); + ovs_assert(pstream->class == class); } struct pstream_class {