client/src/unifycr.c
inline int unifycr_get_fid_from_path(const char* path)
{
    int i = 0;
    while (i < unifycr_max_files)
    {
        if(unifycr_filelist[i].in_use &&
           strcmp((void *)&unifycr_filelist[i].filename, path) == 0)
        {
            debug("File found: unifycr_filelist[%d].filename = %s\n",
                  i, (char*)&unifycr_filelist[i].filename
            );
            return i;
        }
        i++;
    }

    /* couldn't find specified path */
    return -1;
}
/* given a path, return the file id */
given a path, return the file id
given a path return the file id
inline int unifycr_get_fid_from_path(const char* path)
{
    int i = 0;
    while (i < unifycr_max_files)
    {
        if(unifycr_filelist[i].in_use &&
           strcmp((void *)&unifycr_filelist[i].filename, path) == 0)
        {
            debug("File found: unifycr_filelist[%d].filename = %s\n",
                  i, (char*)&unifycr_filelist[i].filename
            );
            return i;
        }
        i++;
    }
    return -1;
}
inline int unifycr_get_fid_from_path ( const char * path ) { int i = 0 ; while ( i < unifycr_max_files ) { if ( unifycr_filelist [ i ] . in_use && strcmp ( ( void * ) & unifycr_filelist [ i ] . filename , path ) == 0 ) { debug ( " \n " , i , ( char * ) & unifycr_filelist [ i ] . filename ) ; return i ; } i ++ ; } return -1 ; }
given a path, return the file id
given a path return the file id
/* couldn't find specified path */