X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fjson.h;h=ef2312449b55c49a4ff4b42221f352c10c38a5f7;hb=f80022d9df98d29ee41176a4bc6cb91025da84b8;hp=5c32c06cd42f166ef58aae3b031dd9558604742b;hpb=0225f3a0f2b18c95ea76362f4a5f816682557a52;p=sliver-openvswitch.git diff --git a/lib/json.h b/lib/json.h index 5c32c06cd..ef2312449 100644 --- a/lib/json.h +++ b/lib/json.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * 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. */