X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fovsdb-parser.h;h=d6270bb12cb72cbec0452b7d6644f2d204ac0be4;hb=f915f1a8ca180828983ef22cf2fd21b8f010b972;hp=6a3e32df6e47285796bb1e7a6c0c47182656b967;hpb=124f9671b7c1bfed36836a98723f565bb55a116a;p=openvswitch diff --git a/lib/ovsdb-parser.h b/lib/ovsdb-parser.h index 6a3e32df..d6270bb1 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. @@ -49,6 +49,8 @@ enum ovsdb_parser_types { OP_INTEGER = 1 << JSON_INTEGER, /* 123. */ OP_NONINTEGER = 1 << JSON_REAL, /* 123.456. */ OP_STRING = 1 << JSON_STRING, /* "..." */ + OP_ANY = (OP_NULL | OP_FALSE | OP_TRUE | OP_OBJECT | OP_ARRAY + | OP_INTEGER | OP_NONINTEGER | OP_STRING), OP_BOOLEAN = OP_FALSE | OP_TRUE, OP_NUMBER = OP_INTEGER | OP_NONINTEGER, @@ -70,5 +72,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 */