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:
@@ -55,7 +55,7 @@ typedef struct {
|
||||
}
|
||||
~maa_gpio_context()
|
||||
{
|
||||
maa_gpio_close($self);
|
||||
maa_gpio_unexport($self);
|
||||
}
|
||||
%feature("autodoc") write "
|
||||
Write a value to a GPIO pin
|
||||
@@ -118,7 +118,6 @@ typedef struct {
|
||||
}
|
||||
~maa_i2c_context()
|
||||
{
|
||||
maa_i2c_stop($self);
|
||||
}
|
||||
int frequency(int hz)
|
||||
{
|
||||
@@ -167,7 +166,7 @@ typedef struct {
|
||||
}
|
||||
~maa_pwm_context()
|
||||
{
|
||||
maa_pwm_close($self);
|
||||
maa_pwm_unexport($self);
|
||||
}
|
||||
int write(float percentage)
|
||||
{
|
||||
@@ -226,7 +225,6 @@ typedef struct {
|
||||
}
|
||||
~maa_spi_context()
|
||||
{
|
||||
maa_spi_stop($self);
|
||||
}
|
||||
int mode(unsigned short mode)
|
||||
{
|
||||
@@ -260,7 +258,6 @@ typedef struct {
|
||||
}
|
||||
~maa_aio_context()
|
||||
{
|
||||
maa_aio_close($self);
|
||||
}
|
||||
unsigned int read()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user