typedef struct _context_history_list_handle_s {
ctx::Json jlist;
int current;
- _context_history_list_handle_s()
- {
+ _context_history_list_handle_s() {
current = 0;
}
} _cx_history_list_handle;
int req_id;
ctx::Json tmp_list;
int err = ctx::request_handler::read_sync(data_type_str.c_str(), (filter)? &filter->jfilter : NULL, &req_id, &tmp_list);
- IF_FAIL_RETURN_TAG(err==ERR_NONE, err, _E, "Getting list failed");
+ IF_FAIL_RETURN_TAG(err == ERR_NONE, err, _E, "Getting list failed");
_J("Read response", tmp_list);
ctx::Json jrule; // rule_id, description, details(event, condition[])
ctx::Json jref;
- _context_trigger_rule_s()
- {
+ _context_trigger_rule_s() {
jrule = INITIAL_RULE;
jref = INITIAL_REF;
}
int type;
ctx::Json jref;
- _context_trigger_rule_entry_s(int t): type(t)
- {
+ _context_trigger_rule_entry_s(int t): type(t) {
jentry = INITIAL_ENTRY;
if (t == TYPE_CONDITION) {
// Err: Invalid Json
ctx::Json jfact = fact;
- IF_FAIL_RETURN_TAG(jfact.valid(), CONTEXT_TRIGGER_ERROR_INVALID_RULE, _E, "Cannot parse fact Json" );
+ IF_FAIL_RETURN_TAG(jfact.valid(), CONTEXT_TRIGGER_ERROR_INVALID_RULE, _E, "Cannot parse fact Json");
ctx::Json data;
data.set(NULL, CT_CUSTOM_NAME, name);