mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
StoreAPI -> Store
Calling a class an API is a bit redundant...
This commit is contained in:
parent
c10c61449f
commit
fa7cd5369b
24 changed files with 51 additions and 51 deletions
|
@ -94,7 +94,7 @@ void printClosure(const Path & nePath, const StoreExpr & fs)
|
|||
#endif
|
||||
|
||||
|
||||
void printDotGraph(StoreAPI & store, const PathSet & roots)
|
||||
void printDotGraph(Store & store, const PathSet & roots)
|
||||
{
|
||||
PathSet workList(roots);
|
||||
PathSet doneSet;
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
class StoreAPI;
|
||||
class Store;
|
||||
|
||||
void printDotGraph(StoreAPI & store, const PathSet & roots);
|
||||
void printDotGraph(Store & store, const PathSet & roots);
|
||||
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ static Path gcRoot;
|
|||
static int rootNr = 0;
|
||||
static bool indirectRoot = false;
|
||||
static bool noOutput = false;
|
||||
static std::shared_ptr<StoreAPI> store;
|
||||
static std::shared_ptr<Store> store;
|
||||
|
||||
|
||||
LocalStore & ensureLocalStore()
|
||||
|
@ -84,7 +84,7 @@ static PathSet realisePath(Path path, bool build = true)
|
|||
Path rootName = gcRoot;
|
||||
if (rootNr > 1) rootName += "-" + std::to_string(rootNr);
|
||||
if (i->first != "out") rootName += "-" + i->first;
|
||||
outPath = addPermRoot(ref<StoreAPI>(store), outPath, rootName, indirectRoot);
|
||||
outPath = addPermRoot(ref<Store>(store), outPath, rootName, indirectRoot);
|
||||
}
|
||||
outputs.insert(outPath);
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ static PathSet realisePath(Path path, bool build = true)
|
|||
Path rootName = gcRoot;
|
||||
rootNr++;
|
||||
if (rootNr > 1) rootName += "-" + std::to_string(rootNr);
|
||||
path = addPermRoot(ref<StoreAPI>(store), path, rootName, indirectRoot);
|
||||
path = addPermRoot(ref<Store>(store), path, rootName, indirectRoot);
|
||||
}
|
||||
return singleton<PathSet>(path);
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ static void opRealise(Strings opFlags, Strings opArgs)
|
|||
}
|
||||
|
||||
if (settings.get("print-missing", true))
|
||||
printMissing(ref<StoreAPI>(store), willBuild, willSubstitute, unknown, downloadSize, narSize);
|
||||
printMissing(ref<Store>(store), willBuild, willSubstitute, unknown, downloadSize, narSize);
|
||||
|
||||
if (dryRun) return;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ static string makeNode(const string & id)
|
|||
}
|
||||
|
||||
|
||||
void printXmlGraph(StoreAPI & store, const PathSet & roots)
|
||||
void printXmlGraph(Store & store, const PathSet & roots)
|
||||
{
|
||||
PathSet workList(roots);
|
||||
PathSet doneSet;
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
class StoreAPI;
|
||||
class Store;
|
||||
|
||||
void printXmlGraph(StoreAPI & store, const PathSet & roots);
|
||||
void printXmlGraph(Store & store, const PathSet & roots);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue