Lines Matching refs:dep
67 struct snmp_dependency dep;
607 ctx->dep = &context->depend->dep;
611 asn_oid2str(&ctx->dep->obj));
613 ret = context->depend->func(ctx, ctx->dep, SNMP_DEPOP_COMMIT);
638 ctx->dep = &context->depend->dep;
642 asn_oid2str(&ctx->dep->obj));
644 ret = context->depend->func(ctx, ctx->dep, SNMP_DEPOP_ROLLBACK);
647 snmp_debug("set: dep rollback returns %u: %s %s", ret,
648 asn_oid2str_r(&ctx->dep->obj, objbuf),
649 asn_oid2str_r(&ctx->dep->idx, idxbuf));
664 ctx->dep = &d->dep;
665 (void)d->func(ctx, ctx->dep, SNMP_DEPOP_FINISH);
942 if (asn_compare_oid(obj, &d->dep.obj) == 0 &&
943 ((idx == NULL && d->dep.idx.len == 0) ||
944 (idx != NULL && asn_compare_oid(idx, &d->dep.idx) == 0))) {
947 return (&d->dep);
953 if ((d = malloc(offsetof(struct depend, dep) + len)) == NULL)
955 memset(&d->dep, 0, len);
957 d->dep.obj = *obj;
959 d->dep.idx.len = 0;
961 d->dep.idx = *idx;
967 return (&d->dep);