]>
cygwin.com Git - cygwin-apps/setup.git/blob - package_meta.h
2 * Copyright (c) 2001, Robert Collins.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
12 * Written by Robert Collins <rbtcollins@hotmail.com>
16 #ifndef _PACKAGE_META_H_
17 #define _PACKAGE_META_H_
24 packagemeta (char const *pkgname
):installed_from (0), versions (0),
25 versioncount (0), versionspace (0), installed (0), prev (0), exp (0)
27 name
= new char[strlen (pkgname
) + 1];
28 strcpy (name
, pkgname
);
31 packagemeta (char const *pkgname
,
32 char const *installedfrom
):installed_from (0), versions (0),
33 versioncount (0), versionspace (0), installed (0), prev (0), exp (0)
35 name
= new char[strlen (pkgname
) + 1];
36 strcpy (name
, pkgname
);
37 installed_from
= new char[strlen (installedfrom
) + 1];
38 strcpy (installed_from
, installedfrom
);
46 delete installed_from
;
49 void add_version (packageversion
&);
50 void set_installed (packageversion
&);
54 /* legacy variable used to output data for installed.db versions <= 2 */
57 /* this array is //NOT// sorted - too many pointer to get out of joint. */
58 /* we can have member functions to return sorted details if desired */
59 packageversion
**versions
;
62 /* which one is installed. */
63 packageversion
*installed
;
64 /* which one is listed as "prev" in our available packages db */
66 /* ditto for current - stable */
68 /* and finally the experimental version */
72 #endif /* _PACKAGE_META_H_ */
This page took 0.041569 seconds and 6 git commands to generate.