From 75068e7d753cf6cbe45a4bf294000dca9bd41d8b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 4 Sep 2006 21:06:23 +0000 Subject: * Use a proper namespace. * Optimise header file usage a bit. * Compile the parser as C++. --- src/libexpr/get-drvs.hh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/libexpr/get-drvs.hh') diff --git a/src/libexpr/get-drvs.hh b/src/libexpr/get-drvs.hh index 75f6bcf9d..3dac56a4f 100644 --- a/src/libexpr/get-drvs.hh +++ b/src/libexpr/get-drvs.hh @@ -9,7 +9,10 @@ #include "eval.hh" -typedef map MetaInfo; +namespace nix { + + +typedef std::map MetaInfo; struct DrvInfo @@ -23,7 +26,7 @@ public: string attrPath; /* path towards the derivation */ string system; - shared_ptr attrs; + boost::shared_ptr attrs; string queryDrvPath(EvalState & state) const; string queryOutPath(EvalState & state) const; @@ -52,5 +55,8 @@ bool getDerivation(EvalState & state, Expr e, DrvInfo & drv); void getDerivations(EvalState & state, Expr e, const string & pathPrefix, const ATermMap & autoArgs, DrvInfos & drvs); + +} + #endif /* !__GET_DRVS_H */ -- cgit v1.2.3