Subversion Repositories SvarDOS

Rev

Rev 219 | Rev 237 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 219 Rev 225
Line 1... Line 1...
1
/*
1
/*
2
 * This file is part of FDNPKG.
2
 * This file is part of pkginst.
3
 *
3
 *
4
 * Copyright (C) 2012-2016 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
 
Line 11... Line 11...
11
  char *name;
11
  char *name;
12
  char *location;
12
  char *location;
13
  struct customdirs *next;
13
  struct customdirs *next;
14
};
14
};
15
 
15
 
16
/* Loads the list of repositories from the config file specified in %FDNPKG%.
16
/* Loads the list of custom directories from the config file specified in %FDNPKG%.
17
 * Returns the amount of repositories found (and loaded) on success, or -1 on failure. */
17
 * Returns 0 on success, or -1 on failure. */
18
int loadconf(char *cfgfile, char **repolist, int maxreps, unsigned long *crc32val, long *maxcachetime, struct customdirs **dirlist, int *nosourceflag, char **proxy, int *proxyport, char **mapdrv);
18
int loadconf(char *cfgfile, struct customdirs **dirlist, int *flags);
19
 
19
 
20
/* Free the memory allocated at configuration load. */
20
/* Free the memory allocated at configuration load. */
21
void freeconf(char **repolist, int repscount, struct customdirs **dirlist);
21
void freeconf(struct customdirs **dirlist);
22
 
22
 
23
#endif
23
#endif