add a bunch more of the state stuff

This commit is contained in:
Ariadne Conill 2020-07-20 08:19:23 -06:00
parent 6fe4630f52
commit aa1cc0815c
4 changed files with 111 additions and 7 deletions

View file

@ -19,9 +19,12 @@
#include <stdio.h>
#include "libifupdown/interface.h"
extern bool lif_state_read(struct lif_dict *state, FILE *f);
extern bool lif_state_read_path(struct lif_dict *state, const char *path);
extern void lif_state_upsert(struct lif_dict *state, const char *ifname, struct lif_interface *iface);
extern void lif_state_delete(struct lif_dict *state, const char *ifname);
extern void lif_state_write(const struct lif_dict *state, FILE *f);
extern bool lif_state_write_path(const struct lif_dict *state, const char *path);
extern struct lif_interface *lif_state_lookup(struct lif_dict *state, struct lif_dict *if_collection, const char *ifname);
#endif