Skip to content

Commit

Permalink
Added positioning as a module which is built together with iso22133 a…
Browse files Browse the repository at this point in the history
…nd becomes available to the user after installation
  • Loading branch information
viktorjo committed Jun 18, 2021
1 parent 715a373 commit a1aef66
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
20 changes: 20 additions & 0 deletions positioning.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* File : positioning.i */
%module positioning

%{
#include "positioning.h"
#define SWIG_PYTHON_STRICT_BYTE_CHAR
%}
typedef double double_t;
typedef long int ssize_t;

struct timeval {
long int tv_sec;
long int tv_usec;
};

%include "stdint.i"
%include "cpointer.i"
%include "positioning.h"
%pointer_functions(uint32_t, uint32ptr);

7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
iso22133 = Extension('_iso22133',
sources=['iso22133.i','iso22133.c','positioning.c'],
)
positioning = Extension('_positioning',
sources=['positioning.i','positioning.c'],
)

setup (name = 'iso22133',
version = '0.1',
author = "AstaZero",
description = """iso22133 implementation wrapper""",
ext_modules = [iso22133],
py_modules = ["iso22133"],
ext_modules = [iso22133, positioning],
py_modules = ["iso22133", "positioning"],
)

0 comments on commit a1aef66

Please sign in to comment.