src/lib/gscphost/callbackregistries.c
FTAID * ftacallback_next_wakeup()
{
    for(;(nwakeup<lstreamid)
	    &&(fstreamid[nwakeup].streamid != swakeup);
        nwakeup++);
    if (nwakeup<lstreamid) {
        gs_int32_t x;
        for(x=0;x<lwakeup;x++)
            if ((fwakeup[x].r==fstreamid[nwakeup].r) &&
                (fwakeup[x].used==1)) {
                fwakeup[x].used=0;
                nwakeup++;
                return & fwakeup[x].ftaid;
            }
    }
    nwakeup ++;
    return (FTAID *) 0;
}
/* returns all the msgid blocked on the streamid passed in
 * ftacallback_start_streamid and removes the msgid from
 * the wakeup list
 */
returns all the msgid blocked on the streamid passed in
ftacallback_start_streamid and removes the msgid from
the wakeup list
returns all the msgid blocked on the streamid passed in ftacallback_start_streamid and removes the msgid from the wakeup list
FTAID * ftacallback_next_wakeup()
{
    for(;(nwakeup<lstreamid)
	    &&(fstreamid[nwakeup].streamid != swakeup);
        nwakeup++);
    if (nwakeup<lstreamid) {
        gs_int32_t x;
        for(x=0;x<lwakeup;x++)
            if ((fwakeup[x].r==fstreamid[nwakeup].r) &&
                (fwakeup[x].used==1)) {
                fwakeup[x].used=0;
                nwakeup++;
                return & fwakeup[x].ftaid;
            }
    }
    nwakeup ++;
    return (FTAID *) 0;
}
FTAID * ftacallback_next_wakeup ( ) { for ( ; ( nwakeup < lstreamid ) && ( fstreamid [ nwakeup ] . streamid != swakeup ) ; nwakeup ++ ) ; if ( nwakeup < lstreamid ) { gs_int32_t x ; for ( x = 0 ; x < lwakeup ; x ++ ) if ( ( fwakeup [ x ] . r == fstreamid [ nwakeup ] . r ) && ( fwakeup [ x ] . used == 1 ) ) { fwakeup [ x ] . used = 0 ; nwakeup ++ ; return & fwakeup [ x ] . ftaid ; } } nwakeup ++ ; return ( FTAID * ) 0 ; }
returns all the msgid blocked on the streamid passed in
 ftacallback_start_streamid and removes the msgid from
 the wakeup list
returns all the msgid blocked on the streamid passed in ftacallback_start_streamid and removes the msgid from the wakeup list