diff options
author | midipix <writeonce@midipix.org> | 2016-04-25 09:20:57 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:42 -0500 |
commit | b7025c26792a6f56fb96288dc3bedc74b356a001 (patch) | |
tree | 58807ce0e4c0e49f413655064a8f03e18c56fbd6 /include | |
parent | 781ac1bd0f2df4523b1a715befd1ae63d92afecc (diff) | |
download | perk-b7025c26792a6f56fb96288dc3bedc74b356a001.tar.bz2 perk-b7025c26792a6f56fb96288dc3bedc74b356a001.tar.xz |
driver: added struct pe_source_version, pe_source_version().
Diffstat (limited to 'include')
-rw-r--r-- | include/perk/perk.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h index a99c8f4..d6f69ec 100644 --- a/include/perk/perk.h +++ b/include/perk/perk.h @@ -46,6 +46,13 @@ extern "C" { /* unit action flags */ #define PERK_ACTION_MAP_READWRITE 0x0001 +struct pe_source_version { + int major; + int minor; + int revision; + const char * commit; +}; + struct pe_raw_image { void * addr; size_t size; @@ -149,6 +156,9 @@ struct pe_unit_ctx { int nerrors; }; +/* package info */ +perk_api const struct pe_source_version * pe_source_version(void); + /* driver api */ perk_api int pe_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, struct pe_driver_ctx **); perk_api void pe_free_driver_ctx (struct pe_driver_ctx *); |