SWIG experiments: introduce context
This commit is contained in:
1 parent
a503dfcd98
commit
1562b75fc9
11 files changed
+434
-87
No files matched your search
@@ -15,9 +15,13 @@
|
||||
/* Parse the header file to generate wrappers */
|
||||
#endif
|
||||
|
||||
typedef struct pm3_context pm3_context;
|
||||
pm3_context *pm3_init(void);
|
||||
void pm3_exit(pm3_context *ctx);
|
||||
pm3_context *pm3_get_current_context(void);
|
||||
typedef struct pm3_device pm3_device;
|
||||
pm3_device* pm3_open(char *port);
|
||||
int pm3_console(pm3_device* dev, char *cmd);
|
||||
void pm3_close(pm3_device* dev);
|
||||
pm3_device* pm3_get_current_dev(void);
|
||||
pm3_device *pm3_open(pm3_context *ctx, char *port);
|
||||
pm3_device *pm3_get_dev(pm3_context *ctx, int n);
|
||||
int pm3_console(pm3_device *dev, char *cmd);
|
||||
void pm3_close(pm3_device *dev);
|
||||
#endif
|
||||
Reference in new issue
Block a user