Subversion Repositories SvarDOS

Rev

Rev 225 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
219 mateuszvis 1
/*
2
 * This file is part of FDNPKG.
3
 *
4
 * Copyright (C) 2012-2016 Mateusz Viste
5
 */
6
 
7
#ifndef loadrepolist_sentinel
8
#define loadrepolist_sentinel
9
 
10
struct customdirs {
11
  char *name;
12
  char *location;
13
  struct customdirs *next;
14
};
15
 
16
/* Loads the list of repositories from the config file specified in %FDNPKG%.
17
 * Returns the amount of repositories found (and loaded) 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);
19
 
20
/* Free the memory allocated at configuration load. */
21
void freeconf(char **repolist, int repscount, struct customdirs **dirlist);
22
 
23
#endif