Removed old interfaces and replaced them with the new ones.
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
b6e53f7da8
commit
34bb12933d
@@ -2,4 +2,4 @@ set (libname "ds1808lc")
|
||||
set (libdescription "Lighting Controller")
|
||||
set (module_src ${libname}.cxx mraa-utils.cxx)
|
||||
set (module_hpp ${libname}.hpp)
|
||||
upm_module_init(interfaces mraa)
|
||||
upm_module_init(mraa )
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "iLightController.hpp"
|
||||
#include "mraa/i2c.hpp"
|
||||
|
||||
namespace upm
|
||||
@@ -51,7 +50,9 @@ namespace upm
|
||||
*
|
||||
* @snippet ds1808lc.cxx Interesting
|
||||
*/
|
||||
class DS1808LC : public upm::ILightController
|
||||
#define UPM_THROW(msg) throw std::runtime_error(std::string(__FUNCTION__) + ": " + (msg))
|
||||
|
||||
class DS1808LC
|
||||
{
|
||||
public:
|
||||
DS1808LC(int gpioPower, int i2cBus);
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#ifdef SWIGJAVA
|
||||
%include "arrays_java.i";
|
||||
%include "../java_buffer.i"
|
||||
%typemap(javaimports) SWIGTYPE %{import upm_interfaces.*;%}
|
||||
%import "../interfaces/javaupm_iLightController.i"
|
||||
|
||||
JAVA_JNI_LOADLIBRARY(javaupm_ds1808lc)
|
||||
#endif
|
||||
@@ -13,15 +11,11 @@ JAVA_JNI_LOADLIBRARY(javaupm_ds1808lc)
|
||||
|
||||
/* BEGIN Javascript syntax ------------------------------------------------- */
|
||||
#ifdef SWIGJAVASCRIPT
|
||||
%include "iModuleStatus.hpp"
|
||||
%include "iLightController.hpp"
|
||||
#endif
|
||||
/* END Javascript syntax */
|
||||
|
||||
/* BEGIN Python syntax ----------------------------------------------------- */
|
||||
#ifdef SWIGPYTHON
|
||||
%include "iModuleStatus.hpp"
|
||||
%include "iLightController.hpp"
|
||||
#endif
|
||||
/* END Python syntax */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user