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

@@ -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()
{