1 #ifndef SRC_RTR_DB_DELTAS_ARRAY_H_
2 #define SRC_RTR_DB_DELTAS_ARRAY_H_
3 
4 #include "types/serial.h"
5 #include "rtr/db/delta.h"
6 
7 struct deltas_array;
8 
9 struct deltas_array *darray_create(void);
10 void darray_destroy(struct deltas_array *);
11 
12 unsigned int darray_len(struct deltas_array *);
13 void darray_add(struct deltas_array *, struct deltas *);
14 void darray_clear(struct deltas_array *);
15 
16 typedef int (*darray_foreach_cb)(struct deltas *, void *);
17 int darray_foreach_since(struct deltas_array *, serial_t from,
18     darray_foreach_cb, void *);
19 
20 #endif /* SRC_RTR_DB_DELTAS_ARRAY_H_ */
21