configure.ac: add libusb/libusbx support (for xpp)
[dahdi/tools.git] / xpp / astribank_license.h
1 #ifndef ASTRIBANK_ALLOW_H
2 #define ASTRIBANK_ALLOW_H
3
4 #include "mpp.h"
5
6 enum license_markers {
7         LICENSE_MARKER_NONE = 0,
8         LICENSE_MARKER_XORCOM = 1,
9         LICENSE_MARKER_GENERIC = 2,
10 };
11
12 int license_marker_valid(unsigned int which);
13 void license_markers_help(const char *prefix, FILE *fp);
14
15 int write_to_file(
16         struct eeprom_table *eeprom_table,
17         struct capabilities *caps,
18         struct capkey *key,
19         unsigned int marker,
20         FILE *f);
21
22 int read_from_file(
23         struct eeprom_table *eeprom_table,
24         struct capabilities *caps,
25         struct capkey *capkey,
26         unsigned int *used_marker,
27         FILE *f);
28
29 #endif  /* ASTRIBANK_ALLOW_H */