smap: New functions smap_from_json(), smap_to_json().
[openvswitch] / lib / smap.h
index 51f6397c4aab3cc63c66ffdd87710580970af560..8510a3761efabda1a127f680e64d1e8a36935931 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "hmap.h"
 
+struct json;
+
 /* A map from string to string. */
 struct smap {
     struct hmap map;           /* Contains "struct smap_node"s. */
@@ -60,4 +62,7 @@ size_t smap_count(const struct smap *);
 void smap_clone(struct smap *dst, const struct smap *src);
 const struct smap_node **smap_sort(const struct smap *);
 
+void smap_from_json(struct smap *, const struct json *);
+struct json *smap_to_json(const struct smap *);
+
 #endif /* smap.h */