Subversion Repositories SvarDOS

Rev

Rev 238 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
219 mateuszvis 1
/*
225 mateuszvis 2
 * This file is part of pkginst.
219 mateuszvis 3
 *
225 mateuszvis 4
 * Copyright (C) 2012-2021 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
 
237 mateuszvis 16
/* Loads the list of custom directories from the config file
225 mateuszvis 17
 * Returns 0 on success, or -1 on failure. */
260 mateuszvis 18
int loadconf(const char *dosdir, struct customdirs **dirlist);
219 mateuszvis 19
 
20
/* Free the memory allocated at configuration load. */
225 mateuszvis 21
void freeconf(struct customdirs **dirlist);
219 mateuszvis 22
 
23
#endif