diff options
| author | Ben Pfaff <blp@nicira.com> | 2009-11-19 16:48:12 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2009-11-19 16:48:12 -0800 |
| commit | b966380b45d66ae058c31fbcab67ccfcb8751005 (patch) | |
| tree | e6baf05fff92d7c53e224325bd4a1f515ba44d54 /lib/ovsdb-parser.h | |
| parent | b9edf64b05c7de01f39b7d88aa45af3d13b5cc72 (diff) | |
| download | openvswitch-b966380b45d66ae058c31fbcab67ccfcb8751005.tar.gz | |
ovsdb: Require database, table, column names to be valid identifiers.
Database, table, and column names have always been required by the OVSDB
specification to be identifiers (e.g. valid C identifiers), but this has
never been enforced.
This commit adds enforcement and fixes one instance of an invalid column
name in the vswitch schema.
Diffstat (limited to 'lib/ovsdb-parser.h')
| -rw-r--r-- | lib/ovsdb-parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ovsdb-parser.h b/lib/ovsdb-parser.h index 6a3e32df6..6efa0a73c 100644 --- a/lib/ovsdb-parser.h +++ b/lib/ovsdb-parser.h @@ -71,4 +71,6 @@ struct ovsdb_error *ovsdb_parser_get_error(const struct ovsdb_parser *); struct ovsdb_error *ovsdb_parser_finish(struct ovsdb_parser *) WARN_UNUSED_RESULT; +bool ovsdb_parser_is_id(const char *string); + #endif /* ovsdb-parser.h */ |
