Private
Public Access
2
0

swig: add unexport() calls to be used by destructors in object api

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-02 16:31:16 +01:00
parent 3e0d0c8241
commit 09cec0931b
5 changed files with 41 additions and 11 deletions

View File

@@ -151,6 +151,14 @@ maa_result_t maa_pwm_pulsewidth_us(maa_pwm_context* pwm, int us);
*/
maa_result_t maa_pwm_enable(maa_pwm_context* pwm, int enable);
/** Unexport the PWM context (maa_pwm_close() will call this function)
*
* @param dev The PWM context/
*
* @return maa result type.
*/
maa_result_t maa_pwm_unexport(maa_pwm_context* pwm);
/** Close and unexport the PWM pin.
*
* @param pwm The PWM context to use.