diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-03-15 21:47:11 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-03-15 21:47:11 +0000 |
commit | f1ed7db5cafc233b6f7fbd509452b739962fb000 (patch) | |
tree | 91433b327ecefb7e01466ba21edea637ae93f209 /xpp/astribank_license.h | |
parent | 1e1e345a26cafd67708d35bc102da6ba5992c337 (diff) |
xpp: Customizable license markers
* License strings markers (BEGIN.../END...) can be customized
* By default, generate a "generic" license markers
* We accept any (paired) markers from the valid list
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10502
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.6@10521 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/astribank_license.h')
-rw-r--r-- | xpp/astribank_license.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/xpp/astribank_license.h b/xpp/astribank_license.h new file mode 100644 index 0000000..74d6a31 --- /dev/null +++ b/xpp/astribank_license.h @@ -0,0 +1,29 @@ +#ifndef ASTRIBANK_ALLOW_H +#define ASTRIBANK_ALLOW_H + +#include "mpp.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 */ |