summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-24 19:44:03 -0400
committermidipix <writeonce@midipix.org>2016-04-24 19:51:42 -0400
commit1f115d726147285da256a499abc1fe98b3726453 (patch)
tree674eda491b08e1079fef4bba4472829c24e9a4cd /include
parentb2d0f49b5a6349b7ec93b3a37f81757f60532863 (diff)
downloadsofort-1f115d726147285da256a499abc1fe98b3726453.tar.bz2
sofort-1f115d726147285da256a499abc1fe98b3726453.tar.xz
driver: added struct sfrt_source_version, sfrt_source_version().
Diffstat (limited to 'include')
-rw-r--r--include/sofort/sofort.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sofort/sofort.h b/include/sofort/sofort.h
index 639266a..4bf4c1a 100644
--- a/include/sofort/sofort.h
+++ b/include/sofort/sofort.h
@@ -40,6 +40,13 @@ extern "C" {
#define SFRT_OUTPUT_NAME 0x0001 /* dummy */
#define SFRT_OUTPUT_ADDRESS 0x0002 /* dummy */
+struct sfrt_source_version {
+ int major;
+ int minor;
+ int revision;
+ const char * commit;
+};
+
struct sfrt_input {
void * addr;
size_t size;
@@ -71,6 +78,9 @@ struct sfrt_unit_ctx {
int nerrors;
};
+/* package info */
+sfrt_api const struct sfrt_source_version * sfrt_source_version(void);
+
/* driver api */
sfrt_api int sfrt_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, struct sfrt_driver_ctx **);
sfrt_api int sfrt_create_driver_ctx (const struct sfrt_common_ctx *, struct sfrt_driver_ctx **);