Subversion Repositories SvarDOS

Rev

Rev 614 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 614 Rev 1119
1
/*
1
/*
2
 * This file is part of pkg (SvarDOS)
2
 * This file is part of pkg (SvarDOS)
3
 * Copyright (C) 2013-2021 Mateusz Viste
3
 * Copyright (C) 2013-2021 Mateusz Viste
4
 */
4
 */
5
 
5
 
6
#ifndef showinst_h_sentinel
6
#ifndef showinst_h_sentinel
7
  #define showinst_h_sentinel
7
  #define showinst_h_sentinel
8
 
8
 
9
  struct flist_t {
9
  struct flist_t {
10
    struct flist_t *next;
10
    struct flist_t *next;
11
    char fname[1]; /* this must be the last item in the structure, it will be expanded to fit the filename */
11
    char fname[1]; /* this must be the last item in the structure, it will be expanded to fit the filename */
12
  };
12
  };
13
 
13
 
14
  void pkg_freeflist(struct flist_t *flist);
14
  void pkg_freeflist(struct flist_t *flist);
15
  struct flist_t *pkg_loadflist(const char *pkgname, const char *dosdir);
15
  struct flist_t *pkg_loadflist(const char *pkgname, const char *dosdir);
16
  int showinstalledpkgs(const char *filterstr, const char *dosdir);
16
  int showinstalledpkgs(const char *filterstr, const char *dosdir);
17
  int listfilesofpkg(const char *pkgname, const char *dosdir);
17
  int listfilesofpkg(const char *pkgname, const char *dosdir);
18
#endif
18
#endif
19
 
19