pkgtools

morpheus pkg tools
git clone git://git.2f30.org/pkgtools.git
Log | Files | Refs | README | LICENSE

commit 859165f3e7eea449f2e32df327516680baf8fe1d
parent ecebb8635637a9fb9cb7d8e8533312e42b821049
Author: sin <sin@2f30.org>
Date:   Tue Jun 24 15:20:38 +0100

Add some comments

Diffstat:
pkg.h | 18++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/pkg.h b/pkg.h @@ -23,17 +23,15 @@ #define ARCHIVEBUFSIZ BUFSIZ struct pkgentry { - /* full path */ - char path[PATH_MAX]; - /* relative path */ - char rpath[PATH_MAX]; + char path[PATH_MAX]; /* absolute path of package entry */ + char rpath[PATH_MAX]; /* relative path of package entry */ TAILQ_ENTRY(pkgentry) entry; }; struct pkg { - char *name; - char *version; - char path[PATH_MAX]; + char *name; /* package name */ + char *version; /* package version */ + char path[PATH_MAX]; /* path to package in db or .pkg.tgz */ TAILQ_HEAD(pe_head, pkgentry) pe_head; TAILQ_ENTRY(pkg) entry; }; @@ -44,9 +42,9 @@ struct rejrule { }; struct db { - DIR *pkgdir; - char prefix[PATH_MAX]; - char path[PATH_MAX]; + DIR *pkgdir; /* opendir() handle for DBPATH */ + char prefix[PATH_MAX]; /* db prefix to allow for installation in a mountpoint */ + char path[PATH_MAX]; /* absolute path to DBPATH including db prefix */ TAILQ_HEAD(rejrule_head, rejrule) rejrule_head; TAILQ_HEAD(pkg_head, pkg) pkg_head; };