Lines Matching defs:obj
2510 json_object *ctxobj, *obj;
2540 obj = json_object_new_string(buf);
2541 CHECKMEM(obj);
2542 json_object_object_add(ctxobj, "id", obj);
2545 obj = json_object_new_string(ctx->name);
2546 CHECKMEM(obj);
2547 json_object_object_add(ctxobj, "name", obj);
2550 obj = json_object_new_int64(ctx->references);
2551 CHECKMEM(obj);
2552 json_object_object_add(ctxobj, "references", obj);
2554 obj = json_object_new_int64(ctx->total);
2555 CHECKMEM(obj);
2556 json_object_object_add(ctxobj, "total", obj);
2558 obj = json_object_new_int64(ctx->inuse);
2559 CHECKMEM(obj);
2560 json_object_object_add(ctxobj, "inuse", obj);
2562 obj = json_object_new_int64(ctx->maxinuse);
2563 CHECKMEM(obj);
2564 json_object_object_add(ctxobj, "maxinuse", obj);
2570 obj = json_object_new_int64(blocksize);
2571 CHECKMEM(obj);
2572 json_object_object_add(ctxobj, "blocksize", obj);
2575 obj = json_object_new_int64(ctx->poolcnt);
2576 CHECKMEM(obj);
2577 json_object_object_add(ctxobj, "pools", obj);
2581 obj = json_object_new_int64(ctx->hi_water);
2582 CHECKMEM(obj);
2583 json_object_object_add(ctxobj, "hiwater", obj);
2585 obj = json_object_new_int64(ctx->lo_water);
2586 CHECKMEM(obj);
2587 json_object_object_add(ctxobj, "lowater", obj);
2606 json_object *ctxarray, *obj;
2627 obj = json_object_new_int64(summary.total);
2628 CHECKMEM(obj);
2629 json_object_object_add(memobj, "TotalUse", obj);
2631 obj = json_object_new_int64(summary.inuse);
2632 CHECKMEM(obj);
2633 json_object_object_add(memobj, "InUse", obj);
2635 obj = json_object_new_int64(summary.blocksize);
2636 CHECKMEM(obj);
2637 json_object_object_add(memobj, "BlockSize", obj);
2639 obj = json_object_new_int64(summary.contextsize);
2640 CHECKMEM(obj);
2641 json_object_object_add(memobj, "ContextSize", obj);
2643 obj = json_object_new_int64(lost);
2644 CHECKMEM(obj);
2645 json_object_object_add(memobj, "Lost", obj);