Home | History | Annotate | Download | only in libprop

Lines Matching refs:ctx

49 	prop_ingest_context_t ctx;
51 ctx = _PROP_MALLOC(sizeof(*ctx), M_TEMP);
52 if (ctx != NULL) {
53 ctx->pic_error = PROP_INGEST_ERROR_NO_ERROR;
54 ctx->pic_type = PROP_TYPE_UNKNOWN;
55 ctx->pic_key = NULL;
56 ctx->pic_private = xprivate;
58 return (ctx);
66 prop_ingest_context_free(prop_ingest_context_t ctx)
69 _PROP_FREE(ctx, M_TEMP);
77 prop_ingest_context_error(prop_ingest_context_t ctx)
80 return (ctx->pic_error);
88 prop_ingest_context_type(prop_ingest_context_t ctx)
91 return (ctx->pic_type);
99 prop_ingest_context_key(prop_ingest_context_t ctx)
102 return (ctx->pic_key);
110 prop_ingest_context_private(prop_ingest_context_t ctx)
113 return (ctx->pic_private);
124 prop_ingest_context_t ctx)
129 ctx->pic_error = PROP_INGEST_ERROR_NO_ERROR;
132 ctx->pic_key = pite->pite_key;
134 ctx->pic_type = prop_object_type(obj);
137 if ((*pite->pite_handler)(ctx, NULL) == false) {
138 ctx->pic_error =
144 ctx->pic_error = PROP_INGEST_ERROR_NO_KEY;
147 if (ctx->pic_type != pite->pite_type &&
149 ctx->pic_error = PROP_INGEST_ERROR_WRONG_TYPE;
152 if ((*pite->pite_handler)(ctx, obj) == false) {
153 ctx->pic_error = PROP_INGEST_ERROR_HANDLER_FAILED;