Subversion Repositories SvarDOS

Rev

Rev 614 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
219 mateuszvis 1
/*
268 mateuszvis 2
 * This file is part of pkg.
219 mateuszvis 3
 *
1892 mateusz.vi 4
 * Copyright (C) 2012-2024 Mateusz Viste
219 mateuszvis 5
 */
6
 
7
#ifndef loadrepolist_sentinel
8
#define loadrepolist_sentinel
9
 
10
struct customdirs {
11
  struct customdirs *next;
238 mateuszvis 12
  char name[9];
13
  char location[1]; /* extended at alloc time */
219 mateuszvis 14
};
15
 
1892 mateusz.vi 16
/* Loads the list of custom directories from the config file, as well as the
17
 * bootdrive (defaults to 'C' if not found)
225 mateuszvis 18
 * Returns 0 on success, or -1 on failure. */
1892 mateusz.vi 19
int loadconf(const char *dosdir, struct customdirs **dirlist, char *bootdrive);
219 mateuszvis 20
 
21
/* Free the memory allocated at configuration load. */
225 mateuszvis 22
void freeconf(struct customdirs **dirlist);
219 mateuszvis 23
 
24
#endif