diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:08 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:08 +0200 |
commit | 2987f964d309366b5a8ea8e480f1596f8ff5a060 (patch) | |
tree | d1b6e3212781fba06af8a0957383357adc5ceaab /src/include/tome/squelch/automatizer.hpp | |
parent | 0f36ab53cbac06b61d1b4b6509590759ed8c6703 (diff) |
Switch Automatizer over to using jsoncons
Diffstat (limited to 'src/include/tome/squelch/automatizer.hpp')
-rw-r--r-- | src/include/tome/squelch/automatizer.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/include/tome/squelch/automatizer.hpp b/src/include/tome/squelch/automatizer.hpp index 786ca1ae..4361941a 100644 --- a/src/include/tome/squelch/automatizer.hpp +++ b/src/include/tome/squelch/automatizer.hpp @@ -2,8 +2,8 @@ #include <boost/noncopyable.hpp> #include <memory> +#include <jsoncons/json.hpp> #include <vector> -#include <jansson.h> #include "tome/squelch/rule_fwd.hpp" #include "tome/squelch/cursor_fwd.hpp" @@ -44,15 +44,14 @@ public: bool apply_rules(object_type *o_ptr, int item_idx) const; /** - * Build a JSON data structure to represent - * all the rules. + * Build a JSON document to represent all the rules. */ - std::shared_ptr<json_t> to_json() const; + jsoncons::json to_json() const; /** - * Load rules from a JSON data structure. + * Load rules from a JSON document. */ - void load_json(json_t *json); + void load_json(jsoncons::json const &); /** * Remove currently selected condition or rule. |