Lines Matching refs:state
37 struct msg_pool_usage_state *state = (struct msg_pool_usage_state *)_s;
40 sprintf_append(state->mem_ctx, &state->s, &state->len, &state->buflen,
46 sprintf_append(state->mem_ctx, &state->s, &state->len, &state->buflen,
54 sprintf_append(state->mem_ctx, &state->s, &state->len, &state->buflen,
73 struct msg_pool_usage_state state;
79 state.mem_ctx = talloc_init("msg_pool_usage");
80 if (!state.mem_ctx) {
83 state.len = 0;
84 state.buflen = 512;
85 state.s = NULL;
87 talloc_report_depth_cb(NULL, 0, -1, msg_pool_usage_helper, &state);
89 if (!state.s) {
90 talloc_destroy(state.mem_ctx);
95 (uint8 *)state.s, strlen(state.s)+1);
97 talloc_destroy(state.mem_ctx);