X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fjson.h;h=ef2312449b55c49a4ff4b42221f352c10c38a5f7;hb=591cb419cf3694e0ae66a95973e73c61bad9e03d;hp=cfe9457ef82c641d76c47e4df7ec43a114c76c89;hpb=e368cad8ecf6dbf272b2a3775b2e3e5e2dc6a5cf;p=sliver-openvswitch.git diff --git a/lib/json.h b/lib/json.h index cfe9457ef..ef2312449 100644 --- a/lib/json.h +++ b/lib/json.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira, Inc. + * Copyright (c) 2009, 2010, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -127,6 +127,8 @@ enum { }; char *json_to_string(const struct json *, int flags); void json_to_ds(const struct json *, int flags, struct ds *); + +size_t json_serialized_length(const struct json *); /* JSON string formatting operations. */