src/lib/gscphost/callbackregistries.c
gs_retval_t sidequeue_pop(FTAID * from, gs_sp_t buf, gs_int32_t* length)
{
    struct sq * s;
    
    if (sqtop) {
        *from=sqtop->from;
        memcpy(buf,&sqtop->buf[0],MAXMSGSZ);
        *length=sqtop->length;
        s=sqtop;
        sqtop=sqtop->next;
        if (sqtop==0) sqtail=0;
        free(s);
        return 0;
    }
    return -1;
}
/* removes a buffer from the top of the sidequeue*/
removes a buffer from the top of the sidequeue
removes a buffer from the top of the sidequeue
gs_retval_t sidequeue_pop(FTAID * from, gs_sp_t buf, gs_int32_t* length)
{
    struct sq * s;
    if (sqtop) {
        *from=sqtop->from;
        memcpy(buf,&sqtop->buf[0],MAXMSGSZ);
        *length=sqtop->length;
        s=sqtop;
        sqtop=sqtop->next;
        if (sqtop==0) sqtail=0;
        free(s);
        return 0;
    }
    return -1;
}
gs_retval_t sidequeue_pop ( FTAID * from , gs_sp_t buf , gs_int32_t * length ) { struct sq * s ; if ( sqtop ) { * from = sqtop -> from ; memcpy ( buf , & sqtop -> buf [ 0 ] , MAXMSGSZ ) ; * length = sqtop -> length ; s = sqtop ; sqtop = sqtop -> next ; if ( sqtop == 0 ) sqtail = 0 ; free ( s ) ; return 0 ; } return -1 ; }
removes a buffer from the top of the sidequeue
removes a buffer from the top of the sidequeue