Subversion Repositories SvarDOS

Rev

Rev 268 | Rev 614 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
 * This file is part of pkg.
 *
 * Copyright (C) 2012-2021 Mateusz Viste
 */

#ifndef loadrepolist_sentinel
#define loadrepolist_sentinel

struct customdirs {
  struct customdirs *next;
  char name[9];
  char location[1]; /* extended at alloc time */
};

/* Loads the list of custom directories from the config file
 * Returns 0 on success, or -1 on failure. */
int loadconf(const char *dosdir, struct customdirs **dirlist);

/* Free the memory allocated at configuration load. */
void freeconf(struct customdirs **dirlist);

#endif