add count(), fix bad llist logic in remove()
git-svn-id: http://skia.googlecode.com/svn/trunk@2958 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/utils/SkJSON.h b/include/utils/SkJSON.h
index 215d54a..5268af5 100644
--- a/include/utils/SkJSON.h
+++ b/include/utils/SkJSON.h
@@ -77,6 +77,12 @@
void addBool(const char name[], bool value);
/**
+ * Return the number of slots/fields in this object. These can be
+ * iterated using Iter.
+ */
+ int count() const;
+
+ /**
* Returns true if a slot matching the name and Type is found.
*/
bool find(const char name[], Type) const;