Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 258 → Rev 259

/pkginst/fdnpkg.h
File deleted
/pkginst/loadconf.c
10,7 → 10,7
#include <string.h> /* strcasecmp() */
#include <stdlib.h> /* malloc(), free() */
 
#include "fdnpkg.h" /* PKGINST_SKIPLINKS... */
#include "pkginst.h" /* PKGINST_SKIPLINKS... */
#include "helpers.h" /* slash2backslash(), removeDoubleBackslashes()... */
#include "kprintf.h"
#include "loadconf.h"
/pkginst/pkginst.c
12,7 → 12,6
#include <sys/types.h> /* struct utimbuf */
 
#include "crc32.h" /* all CRC32 related stuff */
#include "fdnpkg.h" /* PKGINST_SKIPLINKS... */
#include "helpers.h" /* slash2backslash(), strtolower() */
#include "fileexst.h"
#include "kprintf.h"
/pkginst/pkginst.h
8,6 → 8,9
 
#include "loadconf.h" /* required for struct customdirs */
 
#define PKGINST_SKIPLINKS 1
#define PKGINST_UPDATE 2
 
int is_package_installed(const char *pkgname, const char *dosdir);
struct ziplist *pkginstall_preparepackage(const char *pkgname, const char *localfile, int flags, FILE **zipfd, const char *dosdir, const struct customdirs *dirlist);
int pkginstall_installpackage(const char *pkgname, const char *dosdir, const struct customdirs *dirlist, struct ziplist *ziplinkedlist, FILE *zipfd);
/pkginst/showinst.c
10,7 → 10,6
#include <sys/types.h>
#include <direct.h> /* opendir() and friends */
 
#include "fdnpkg.h"
#include "helpers.h" /* fdnpkg_strcasestr(), slash2backslash()... */
#include "kprintf.h"
#include "libunzip.h" /* zip_freelist()... */
/pkginst/showinst.h
5,6 → 5,12
 
#ifndef showinst_h_sentinel
#define showinst_h_sentinel
 
struct flist_t {
struct flist_t *next;
char fname[1]; /* this must be the last item in the structure, it will be expanded to fit the filename */
};
 
void pkg_freeflist(struct flist_t *flist);
struct flist_t *pkg_loadflist(const char *pkgname, const char *dosdir);
int showinstalledpkgs(const char *filterstr, const char *dosdir);