diff options
author | Ben Pfaff <blp@nicira.com> | 2010-03-23 15:30:17 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-04-12 11:03:32 -0700 |
commit | 26ad129e69fc7c800630dbd541dc2dcc8150c3a4 (patch) | |
tree | 4abd73e263bcf43bc2ea8cb75d07d03c8e001726 /lib/stream.h | |
parent | 218a6f5959af42f0fb089bc7d20f418d193832dc (diff) |
stream: New functions stream_verify_name() and pstream_verify_name().
These functions can be useful for checking whether a given name is an
active or passive connection method.
The implementation is cut-and-paste from vconn_verify_name() and
pvconn_verify_name().
Diffstat (limited to 'lib/stream.h')
-rw-r--r-- | lib/stream.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/stream.h b/lib/stream.h index e7eef365..d21de2f7 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +27,7 @@ struct stream; void stream_usage(const char *name, bool active, bool passive, bool bootstrap); /* Bidirectional byte streams. */ +int stream_verify_name(const char *name); int stream_open(const char *name, struct stream **); int stream_open_block(const char *name, struct stream **); void stream_close(struct stream *); @@ -53,6 +54,7 @@ void stream_recv_wait(struct stream *); void stream_send_wait(struct stream *); /* Passive streams: listeners for incoming stream connections. */ +int pstream_verify_name(const char *name); int pstream_open(const char *name, struct pstream **); const char *pstream_get_name(const struct pstream *); void pstream_close(struct pstream *); |