projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xenserverd: Give XAPI a grace period before refreshing network UUIDs.
[openvswitch]
/
lib
/
json.h
diff --git
a/lib/json.h
b/lib/json.h
index 611dea50e6a72d4d3560d21c6f6becd8c26922a6..41257b0d7e610fe3da88e042f917aa7e266557c4 100644
(file)
--- a/
lib/json.h
+++ b/
lib/json.h
@@
-1,5
+1,5
@@
/*
/*
- * 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-32,6
+32,8
@@
#include "shash.h"
#include "shash.h"
+struct ds;
+
/* Type of a JSON value. */
enum json_type {
JSON_NULL, /* null */
/* Type of a JSON value. */
enum json_type {
JSON_NULL, /* null */
@@
-111,6
+113,7
@@
void json_parser_abort(struct json_parser *);
struct json *json_from_string(const char *string);
struct json *json_from_file(const char *file_name);
struct json *json_from_string(const char *string);
struct json *json_from_file(const char *file_name);
+struct json *json_from_stream(FILE *stream);
\f
/* Serializing JSON. */
\f
/* Serializing JSON. */
@@
-119,5
+122,10
@@
enum {
JSSF_SORT = 1 << 1 /* Object members in sorted order, if true. */
};
char *json_to_string(const struct json *, int flags);
JSSF_SORT = 1 << 1 /* Object members in sorted order, if true. */
};
char *json_to_string(const struct json *, int flags);
+void json_to_ds(const struct json *, int flags, struct ds *);
+
\f
+/* JSON string formatting operations. */
+
+bool json_string_unescape(const char *in, size_t in_len, char **outp);
#endif /* json.h */
#endif /* json.h */