[ovs-dev] [PATCH] jsonrpc: Comment possible return values from jsonrpc_get_status().

Andrew Evans aevans at nicira.com
Sun Jan 30 20:01:58 UTC 2011


---
 lib/jsonrpc.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c
index 7c761ea..61fb74a 100644
--- a/lib/jsonrpc.c
+++ b/lib/jsonrpc.c
@@ -142,6 +142,12 @@ jsonrpc_wait(struct jsonrpc *rpc)
     }
 }
 
+/*
+ * Possible status values:
+ * - 0: no error yet
+ * - EOF (-1): end of file (remote end closed connection; not necessarily
+ *                          an error)
+ */
 int
 jsonrpc_get_status(const struct jsonrpc *rpc)
 {
-- 
1.7.2.3





More information about the dev mailing list