1 : #ifndef __NAMES_H
2 : #define __NAMES_H
3 :
4 : #include "types.hh"
5 :
6 :
7 : namespace nix {
8 :
9 :
10 : struct DrvName
11 698 : {
12 : string fullName;
13 : string name;
14 : string version;
15 : unsigned int hits;
16 :
17 : DrvName();
18 : DrvName(const string & s);
19 : bool matches(DrvName & n);
20 : };
21 :
22 :
23 : typedef list<DrvName> DrvNames;
24 :
25 :
26 : int compareVersions(const string & v1, const string & v2);
27 : DrvNames drvNamesFromArgs(const Strings & opArgs);
28 :
29 :
30 : }
31 :
32 :
33 : #endif /* !__NAMES_H */
|