diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-06T14·49+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-06T14·49+0000 |
commit | 7abf9911d997b241f1e6b58805140fbfe1f2771d (patch) | |
tree | 79618b0bc9919ff92fd7161f0f68e78e0c7d9ad0 /src/nix-env/names.hh | |
parent | 49bafe1faf4eedf0f059740be4f99c700ee93fe7 (diff) |
* Refactoring.
Diffstat (limited to 'src/nix-env/names.hh')
-rw-r--r-- | src/nix-env/names.hh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/nix-env/names.hh b/src/nix-env/names.hh new file mode 100644 index 000000000000..0fc9b57d0741 --- /dev/null +++ b/src/nix-env/names.hh @@ -0,0 +1,29 @@ +#ifndef __NAMES_H +#define __NAMES_H + +#include <string> +#include <list> + +#include "util.hh" + + +struct DrvName +{ + string fullName; + string name; + string version; + unsigned int hits; + + DrvName(const string & s); + bool matches(DrvName & n); +}; + + +typedef list<DrvName> DrvNames; + + +int compareVersions(const string & v1, const string & v2); +DrvNames drvNamesFromArgs(const Strings & opArgs); + + +#endif /* !__NAMES_H */ |