#ifndef MASTER_INSTANCE_H
#define MASTER_INSTANCE_H
struct master_instance_list;
struct master_instance {
const char *name;
const char *base_dir;
const char *config_path;
};
-1 if I/O error. */
const char *base_dir);
/* Set instance's name. Returns 1 if ok, 0 if name was already used for
another instance (base_dir) or -1 if I/O error. */
/* Remove instance. Returns 1 if ok, 0 if it didn't exist or -1 if I/O error. */
const char *base_dir);
/* Find instance by its name. */
const struct master_instance *
const char *name);
/* Iterate through existing instances. */
struct master_instance_list_iter *
const struct master_instance *
#endif