0e6b068e89
* Build new libxtalk as local convenience library * Have new mpptalk.[ch] and astribank.[ch] wrap the new API * Modify all tools to use the new API Signed-off-by: Oron Peled <oron.peled@xorcom.com> Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
30 lines
606 B
C
30 lines
606 B
C
#ifndef ASTRIBANK_ALLOW_H
|
|
#define ASTRIBANK_ALLOW_H
|
|
|
|
#include "mpptalk.h"
|
|
|
|
enum license_markers {
|
|
LICENSE_MARKER_NONE = 0,
|
|
LICENSE_MARKER_XORCOM = 1,
|
|
LICENSE_MARKER_GENERIC = 2,
|
|
};
|
|
|
|
int license_marker_valid(unsigned int which);
|
|
void license_markers_help(const char *prefix, FILE *fp);
|
|
|
|
int write_to_file(
|
|
struct eeprom_table *eeprom_table,
|
|
struct capabilities *caps,
|
|
struct capkey *key,
|
|
unsigned int marker,
|
|
FILE *f);
|
|
|
|
int read_from_file(
|
|
struct eeprom_table *eeprom_table,
|
|
struct capabilities *caps,
|
|
struct capkey *capkey,
|
|
unsigned int *used_marker,
|
|
FILE *f);
|
|
|
|
#endif /* ASTRIBANK_ALLOW_H */
|