strlist.h 499 Bytes
Newer Older
Bernhard Link's avatar
Bernhard Link committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#ifndef __MIRRORER_STRLIST_H
#define __MIRRORER_STRLIST_H

#ifndef __MIRRORER_ERROR_H
#include "error.h"
#warning "What's hapening here?"
#endif

struct strlist {
	char **values;
	int count,size;
};

retvalue strlist_new(struct strlist *strlist);
void strlist_free(struct strlist *strlist);

/* add a string, will get property of the strlist and free'd by it */
retvalue strlist_add(struct strlist *strlist,char *element);

20
int strlist_in(const struct strlist *strlist,const char *element);
Bernhard Link's avatar
Bernhard Link committed
21 22

#endif