nix-super/src/globals.cc

24 lines
451 B
C++
Raw Normal View History

#include "globals.hh"
#include "db.hh"
string dbPath2Id = "path2id";
string dbId2Paths = "id2paths";
2003-07-04 15:18:06 +03:00
string dbSuccessors = "successors";
string dbSubstitutes = "substitutes";
string nixStore = "/UNINIT";
string nixDataDir = "/UNINIT";
string nixLogDir = "/UNINIT";
string nixDB = "/UNINIT";
void initDB()
{
createDB(nixDB, dbPath2Id);
createDB(nixDB, dbId2Paths);
2003-07-04 15:18:06 +03:00
createDB(nixDB, dbSuccessors);
createDB(nixDB, dbSubstitutes);
}