src/lib/gscphost/callbackregistries.c
gs_retval_t ftacallback_state_streamid(gs_int32_t streamid,FTAID process, gs_int32_t state)
{
    gs_int32_t x;
    for(x=0;x<lstreamid;x++) {
        if ((fstreamid[x].streamid == streamid)
            && (fstreamid[x].r->destid.ip == process.ip )
            && (fstreamid[x].r->destid.port == process.port )
            && (fstreamid[x].refcnt > 0))
            fstreamid[x].state=state;
        return 0;
    }
    return -1;
}
/* set the state for a given streamid and destination process */
set the state for a given streamid and destination process
set the state for a given streamid and destination process
gs_retval_t ftacallback_state_streamid(gs_int32_t streamid,FTAID process, gs_int32_t state)
{
    gs_int32_t x;
    for(x=0;x<lstreamid;x++) {
        if ((fstreamid[x].streamid == streamid)
            && (fstreamid[x].r->destid.ip == process.ip )
            && (fstreamid[x].r->destid.port == process.port )
            && (fstreamid[x].refcnt > 0))
            fstreamid[x].state=state;
        return 0;
    }
    return -1;
}
gs_retval_t ftacallback_state_streamid ( gs_int32_t streamid , FTAID process , gs_int32_t state ) { gs_int32_t x ; for ( x = 0 ; x < lstreamid ; x ++ ) { if ( ( fstreamid [ x ] . streamid == streamid ) && ( fstreamid [ x ] . r -> destid . ip == process . ip ) && ( fstreamid [ x ] . r -> destid . port == process . port ) && ( fstreamid [ x ] . refcnt > 0 ) ) fstreamid [ x ] . state = state ; return 0 ; } return -1 ; }
set the state for a given streamid and destination process
set the state for a given streamid and destination process