Lines Matching refs:vc
30 Vccontext_t* vcinitcontext(Vcodex_t* vc, Vccontext_t* ctxt)
32 Vccontext_t* vcinitcontext(vc, ctxt)
33 Vcodex_t* vc;
40 { for(p = NIL(Vccontext_t*), c = vc->ctxt; c; p = c, c = c->next)
50 { if(!vc->meth->eventf ||
51 (*vc->meth->eventf)(vc, VC_INITCONTEXT, (Void_t*)(&ctxt)) < 0 || !ctxt)
55 ctxt->next = vc->ctxt;
56 vc->ctxt = ctxt;
61 int vcfreecontext(Vcodex_t* vc, Vccontext_t* ctxt)
63 int vcfreecontext(vc, ctxt)
64 Vcodex_t* vc;
71 { if(vcinitcontext(vc, ctxt) != ctxt)
73 vc->ctxt = ctxt->next;
77 { ctxt = vc->ctxt;
78 vc->ctxt = NIL(Vccontext_t*);
83 if(vc->meth->eventf &&
84 (*vc->meth->eventf)(vc, VC_FREECONTEXT, (Void_t*)ctxt) < 0)