Subversion Repositories SvarDOS

Rev

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

Rev 269 Rev 614
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-2021 Mateusz Viste
5
 */
5
 */
6
 
6
 
7
#ifndef loadrepolist_sentinel
7
#ifndef loadrepolist_sentinel
8
#define loadrepolist_sentinel
8
#define loadrepolist_sentinel
9
 
9
 
10
struct customdirs {
10
struct customdirs {
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
17
 * Returns 0 on success, or -1 on failure. */
17
 * Returns 0 on success, or -1 on failure. */
18
int loadconf(const char *dosdir, struct customdirs **dirlist);
18
int loadconf(const char *dosdir, struct customdirs **dirlist);
19
 
19
 
20
/* Free the memory allocated at configuration load. */
20
/* Free the memory allocated at configuration load. */
21
void freeconf(struct customdirs **dirlist);
21
void freeconf(struct customdirs **dirlist);
22
 
22
 
23
#endif
23
#endif
24
 
24