Private
Public Access
2
0

mraa: add deinit function for valgrind testing

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-07-01 16:38:41 +01:00
parent b1def2a784
commit 437e26781c
3 changed files with 16 additions and 0 deletions

View File

@@ -186,6 +186,14 @@ mraa_result_t mraa_init() __attribute__((constructor));
mraa_result_t mraa_init();
#endif
/**
* De-Initilise MRAA
*
* This is not a strict requirement but useful to test memory leaks and for
* people who like super clean code.
*/
void mraa_deinit();
/**
* Checks if a pin is able to use the passed in mode.
*