COMP9315 db
#include #include #include #include // #include #include #include #include #include “db.h” Conf* cf = NULL; Database* db = NULL; Conf* init_conf(const UINT page_size, const UINT buf_slots, const UINT file_limit, const char* buf_policy){ cf = malloc(sizeof(Conf)); cf->page_size = page_size; cf->buf_slots = buf_slots; cf->file_limit = file_limit; strcpy(cf->buf_policy,buf_policy); return cf; void free_conf(){ Conf* get_conf(){ return cf; Database* get_db(){ […]