summaryrefslogtreecommitdiffstats
path: root/src/repo.h
blob: 8474371d6c9c898cd4f479f9be42e6343645fccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _OG_REPO_H_
#define _OG_REPO_H_

#include <stdint.h>
#include "list.h"

#define OG_ADDR_REPO_MAX	128

struct og_repo {
	struct list_head	list;
	const char		*name;
	uint32_t		id;
	struct in_addr		addr[OG_ADDR_REPO_MAX];
	int			num_ips;
};

int og_repo_list(struct list_head *repo_list);
void og_repo_free_list(struct list_head *repo_list);

#endif