Subversion Repositories SvarDOS

Rev

Rev 614 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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