X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fovsdb-parser.h;h=a27563a354a6d61eb92b3225fae7f44103f574bf;hb=8d9f3d567e3863f195959828fa20b5d2ed6cbbea;hp=f9a2ef7ed9a42972a71ef7d3c9a26dad35bc7e35;hpb=f85f8ebbfac946c19b3c6eb0f4170f579d0a4d25;p=openvswitch diff --git a/lib/ovsdb-parser.h b/lib/ovsdb-parser.h index f9a2ef7e..a27563a3 100644 --- a/lib/ovsdb-parser.h +++ b/lib/ovsdb-parser.h @@ -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 */