src/siri/db/series.c
/*
 * Open SiriDB series store file.
 *
 * Returns 0 if successful or -1 in case of an error.
 */
Open SiriDB series store file.
Returns 0 if successful or -1 in case of an error.
Open SiriDB series store file . Returns 0 if successful or - 1 in case of an error .
int siridb_series_open_store(siridb_t * siridb)
{
    SIRIDB_GET_FN(fn, siridb->dbpath, SIRIDB_SERIES_FN)
    if ((siridb->store = qp_open(fn, "a")) == NULL)
    {
        log_critical("Cannot open file '%s' for appending", fn);
        return -1;
    }
    return 0;
}
int siridb_series_open_store ( siridb_t * siridb ) { SIRIDB_GET_FN ( fn , siridb -> dbpath , SIRIDB_SERIES_FN ) if ( ( siridb -> store = qp_open ( fn , " " ) ) == NULL ) { log_critical ( " " , fn ) ; return -1 ; } return 0 ; }
Open SiriDB series store file.
Open SiriDB series store file .
/* macro get series file name */