Lines Matching refs:disc
31 Dt_t* dtopen(Dtdisc_t* disc, Dtmethod_t* meth)
33 Dt_t* dtopen(disc, meth)
34 Dtdisc_t* disc;
42 if(!disc || !meth)
52 dt->disc = NIL(Dtdisc_t*);
53 dtdisc(dt,disc,0);
59 if(disc->eventf)
62 if((e = (*disc->eventf)(dt,DT_OPEN,(Void_t*)(&data),disc)) < 0)
71 if(!disc->memoryf)
75 if(!(dt = (*disc->memoryf)(0, 0, sizeof(Dt_t), disc)) )
79 dt->disc = NIL(Dtdisc_t*);
80 dtdisc(dt,disc,0);
88 if(!(data = (Dtdata_t*)(dt->memoryf)(dt,NIL(Void_t*),sizeof(Dtdata_t),disc)) )
105 if(disc->eventf)
106 (*disc->eventf)(dt, DT_ENDOPEN, (Void_t*)dt, disc);