• Home
  • Raw
  • Download

Lines Matching refs:pst

63 	ctx->pst[0].cb		= cb;  in lecp_construct()
64 ctx->pst[0].paths = paths; in lecp_construct()
65 ctx->pst[0].count_paths = count_paths; in lecp_construct()
70 ctx->pst[0].cb(ctx, LECPCB_CONSTRUCTED); in lecp_construct()
77 if (ctx->pst[0].cb) in lecp_destruct()
78 ctx->pst[0].cb(ctx, LECPCB_DESTRUCTED); in lecp_destruct()
84 ctx->pst[0].cb(ctx, LECPCB_DESTRUCTED); in lecp_change_callback()
85 ctx->pst[0].cb = cb; in lecp_change_callback()
86 ctx->pst[0].cb(ctx, LECPCB_CONSTRUCTED); in lecp_change_callback()
131 n < ctx->pst[ctx->pst_sp].count_paths; n++) { in lecp_check_path_match()
135 q = *((char **)(((char *)ctx->pst[ctx->pst_sp].paths) + in lecp_check_path_match()
164 ctx->path_match_len = ctx->pst[ctx->pst_sp].ppos; in lecp_check_path_match()
180 if (s_start && ctx->pst[ctx->pst_sp].cb(ctx, s_start)) in lecp_push()
220 ctx->pst[ctx->pst_sp].ppos = st->p; in lecp_pop()
229 if (st->pop_iss && ctx->pst[ctx->pst_sp].cb(ctx, st->pop_iss)) in lecp_pop()
264 if (ctx->pst[ctx->pst_sp].cb(ctx, in lwcp_completed()
323 struct _lecp_parsing_stack *pst = &ctx->pst[ctx->pst_sp]; in report_raw_cbor() local
328 if (pst->cb(ctx, LECPCB_LITERAL_CBOR)) in report_raw_cbor()
377 struct _lecp_parsing_stack *pst = &ctx->pst[ctx->pst_sp]; in lecp_parse() local
412 if (ctx->pst[ctx->pst_sp].cb(ctx, in lecp_parse()
460 pst->cb(ctx, (char)(LECPCB_VAL_STR_START + to))) in lecp_parse()
463 if (pst->cb(ctx, (char)(LECPCB_VAL_STR_END + to))) in lecp_parse()
473 pst->cb(ctx, (char)(LECPCB_VAL_STR_START + to))) in lecp_parse()
490 pst->cb(ctx, (char)(LECPCB_VAL_STR_START + to))) in lecp_parse()
495 st->p = pst->ppos; in lecp_parse()
504 if (pst->ppos + 3u >= sizeof(ctx->path)) in lecp_parse()
507 st->p = pst->ppos; in lecp_parse()
508 ctx->path[pst->ppos++] = '['; in lecp_parse()
509 ctx->path[pst->ppos++] = ']'; in lecp_parse()
510 ctx->path[pst->ppos] = '\0'; in lecp_parse()
519 if (pst->cb(ctx, LECPCB_ARRAY_START)) in lecp_parse()
523 if (pst->cb(ctx, LECPCB_ARRAY_END)) in lecp_parse()
525 pst->ppos = st->p; in lecp_parse()
526 ctx->path[pst->ppos] = '\0'; in lecp_parse()
556 if (pst->ppos + 1u >= sizeof(ctx->path)) in lecp_parse()
559 st->p = pst->ppos; in lecp_parse()
560 ctx->path[pst->ppos++] = '.'; in lecp_parse()
561 ctx->path[pst->ppos] = '\0'; in lecp_parse()
565 if (pst->cb(ctx, LECPCB_OBJECT_START)) in lecp_parse()
569 if (pst->cb(ctx, LECPCB_OBJECT_END)) in lecp_parse()
571 pst->ppos = st->p; in lecp_parse()
572 ctx->path[pst->ppos] = '\0'; in lecp_parse()
664 if (pst->cb(ctx, LECPCB_VAL_SIMPLE)) in lecp_parse()
697 pst->cb(ctx, (char)((st->opcode == in lecp_parse()
745 if (pst->cb(ctx, LECPCB_VAL_SIMPLE)) in lecp_parse()
772 pst->ppos = st->p; in lecp_parse()
773 st->p = pst->ppos; in lecp_parse()
774 if (pst->ppos + ctx->npos > sizeof(ctx->path)) in lecp_parse()
776 memcpy(&ctx->path[pst->ppos], ctx->buf, in lecp_parse()
778 pst->ppos = (uint8_t)(pst->ppos + ctx->npos); in lecp_parse()
796 if (pst->cb(ctx, (char)o)) in lecp_parse()
871 st->p = pst->ppos; in lecp_parse()
886 if (pst->cb(ctx, ctx->present)) in lecp_parse()
912 ctx->pst[ctx->pst_sp].cb(ctx, LECPCB_FAILED); in lecp_parse()