aboutsummaryrefslogtreecommitdiff
path: root/lib/smap.c
AgeCommit message (Collapse)Author
2013-04-22include strings.h for strcasecmpYAMAMOTO Takashi
while this is not the only place strcasecmp is used without an explicit inclusion of the header, it's the only place gcc complains on my environment. for other places, probably the header is included indirectly via other headers, i guess. Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-01-16Replace most uses of assert by ovs_assert.Ben Pfaff
This is a straight search-and-replace, except that I also removed #include <assert.h> from each file where there were no assert calls left. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
2012-07-18system-stats: Use "smap" instead of "shash".Ben Pfaff
"smap" is now the appropriate data structure for a string-to-string map. Also changes ovsdb_datum_from_shash() into ovsdb_datum_from_smap() since system-stats related code was the only client. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-07-18smap: New function smap_steal().Ben Pfaff
An upcoming commit will add a caller. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-07-18smap: New functions smap_from_json(), smap_to_json().Ben Pfaff
These will acquire a caller in an upcoming commit. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-06-19lib: Minor const tweak in smap library.Ethan Jackson
The source argument of smap_clone() isn't modified, and thus can be declared const. Signed-off-by: Ethan Jackson <ethan@nicira.com>
2012-06-14lib: New data structure - smap.Ethan Jackson
A smap is a string to string hash map. It has a cleaner interface than shash's which were traditionally used for the same purpose. This patch implements the data structure, and changes netdev and its providers to use it. Signed-off-by: Ethan Jackson <ethan@nicira.com>