ofproto: Cleanups to openflow.h (OpenFlow 0.9)
[openvswitch] / lib / ovsdb-parser.h
index f9a2ef7ed9a42972a71ef7d3c9a26dad35bc7e35..a27563a354a6d61eb92b3225fae7f44103f574bf 100644 (file)
@@ -1,4 +1,4 @@
-/* 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.
@@ -61,7 +61,7 @@ void ovsdb_parser_init(struct ovsdb_parser *, const struct json *,
                        const char *name, ...)
     PRINTF_FORMAT(3, 4);
 const struct json *ovsdb_parser_member(struct ovsdb_parser *, const char *name,
-                                     enum ovsdb_parser_types);
+                                       enum ovsdb_parser_types);
 
 void ovsdb_parser_raise_error(struct ovsdb_parser *parser,
                               const char *format, ...)
@@ -70,5 +70,8 @@ bool ovsdb_parser_has_error(const struct ovsdb_parser *);
 struct ovsdb_error *ovsdb_parser_get_error(const struct ovsdb_parser *);
 struct ovsdb_error *ovsdb_parser_finish(struct ovsdb_parser *)
     WARN_UNUSED_RESULT;
+void ovsdb_parser_destroy(struct ovsdb_parser *);
+
+bool ovsdb_parser_is_id(const char *string);
 
 #endif /* ovsdb-parser.h */