void c_abc_open(struct pipe *p, struct stackmodule_i *module) { int start_tm = START_TM; channel_set_attributes(p->channel->channelno, p->channel->attrlist); p->channel->hdrsize = chameleon_hdrsize(p->channel->attrlist); PRINTF("~c_abc_open \n"); PRINTFE("\n %d \n", DURATION_TM(start_tm)); }
/*---------------------------------------------------------------------------*/ void channel_set_attributes(uint16_t channelno, const struct rimebuf_attrlist attrlist[]) { struct channel *c; c = channel_lookup(channelno); if(c != NULL) { c->attrlist = attrlist; c->hdrsize = chameleon_hdrsize(attrlist); } }