mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-04-06 12:29:57 +08:00
Fix historic make & cmake
This commit is contained in:
parent
bcbef2edfc
commit
6adcfad752
9 changed files with 427 additions and 772 deletions
client
|
@ -269,7 +269,7 @@ endif
|
||||||
CFLAGS ?= $(DEFCFLAGS)
|
CFLAGS ?= $(DEFCFLAGS)
|
||||||
# We cannot just use CFLAGS+=... because it has impact on sub-makes if CFLAGS is defined in env:
|
# We cannot just use CFLAGS+=... because it has impact on sub-makes if CFLAGS is defined in env:
|
||||||
PM3CFLAGS = $(CFLAGS)
|
PM3CFLAGS = $(CFLAGS)
|
||||||
PM3CFLAGS += -I./src -I../include -I../common -I../common_fpga $(INCLUDES)
|
PM3CFLAGS += -I./src -I./include -I../include -I../common -I../common_fpga $(INCLUDES)
|
||||||
# WIP Testing
|
# WIP Testing
|
||||||
#PM3CFLAGS += -std=c11 -pedantic
|
#PM3CFLAGS += -std=c11 -pedantic
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ endif
|
||||||
|
|
||||||
CXXFLAGS ?= -Wall -Werror -O3
|
CXXFLAGS ?= -Wall -Werror -O3
|
||||||
PM3CXXFLAGS = $(CXXFLAGS)
|
PM3CXXFLAGS = $(CXXFLAGS)
|
||||||
PM3CXXFLAGS += -I../include
|
PM3CXXFLAGS += -I../include -I./include
|
||||||
|
|
||||||
ifeq ($(QT_FOUND),1)
|
ifeq ($(QT_FOUND),1)
|
||||||
PM3CFLAGS += -DHAVE_GUI
|
PM3CFLAGS += -DHAVE_GUI
|
||||||
|
|
|
@ -111,6 +111,7 @@ set_property(TARGET pm3rrg_rdv4_hardnested PROPERTY POSITION_INDEPENDENT_CODE ON
|
||||||
target_include_directories(pm3rrg_rdv4_hardnested PRIVATE
|
target_include_directories(pm3rrg_rdv4_hardnested PRIVATE
|
||||||
../../common
|
../../common
|
||||||
../../include
|
../../include
|
||||||
|
../include
|
||||||
../src
|
../src
|
||||||
jansson)
|
jansson)
|
||||||
target_include_directories(pm3rrg_rdv4_hardnested INTERFACE hardnested)
|
target_include_directories(pm3rrg_rdv4_hardnested INTERFACE hardnested)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
MYSRCPATHS =
|
MYSRCPATHS =
|
||||||
MYINCLUDES = -I../../../common -I../../../include -I../../src -I../jansson
|
MYINCLUDES = -I../../../common -I../../../include -I../../src -I../../include -I../jansson
|
||||||
MYCFLAGS =
|
MYCFLAGS =
|
||||||
MYDEFS =
|
MYDEFS =
|
||||||
MYSRCS = hardnested_bruteforce.c
|
MYSRCS = hardnested_bruteforce.c
|
||||||
|
|
|
@ -5,7 +5,7 @@ typedef struct pm3_device pm3_device;
|
||||||
|
|
||||||
pm3_device* pm3_open(char *port);
|
pm3_device* pm3_open(char *port);
|
||||||
int pm3_device_console(pm3_device* dev, char *cmd);
|
int pm3_device_console(pm3_device* dev, char *cmd);
|
||||||
char *pm3_device_name_get(pm3_device* dev);
|
const char * pm3_device_name_get(pm3_device* dev);
|
||||||
void pm3_device_close(pm3_device* dev);
|
void pm3_device_close(pm3_device* dev);
|
||||||
pm3_device* pm3_device_get_current_dev(void);
|
pm3_device* pm3_device_get_current_dev(void);
|
||||||
#endif // LIBPM3_H
|
#endif // LIBPM3_H
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
pm3_device *p;
|
pm3_device *p;
|
||||||
p = pm3_open("/dev/ttyACM0");
|
p = pm3_open("/dev/ttyACM0");
|
||||||
pm3_console(p, "hw status");
|
pm3_device_console(p, "hw status");
|
||||||
pm3_close(p);
|
pm3_device_close(p);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,85 +1,24 @@
|
||||||
# This file was automatically generated by SWIG (http://www.swig.org).
|
# This file was automatically generated by SWIG (http://www.swig.org).
|
||||||
# Version 3.0.12
|
# Version 4.0.1
|
||||||
#
|
#
|
||||||
# Do not make changes to this file unless you know what you are doing--modify
|
# Do not make changes to this file unless you know what you are doing--modify
|
||||||
# the SWIG interface file instead.
|
# the SWIG interface file instead.
|
||||||
|
|
||||||
from sys import version_info as _swig_python_version_info
|
from sys import version_info as _swig_python_version_info
|
||||||
if _swig_python_version_info >= (2, 7, 0):
|
if _swig_python_version_info < (2, 7, 0):
|
||||||
def swig_import_helper():
|
raise RuntimeError("Python 2.7 or later required")
|
||||||
import importlib
|
|
||||||
pkg = __name__.rpartition('.')[0]
|
# Import the low-level C/C++ module
|
||||||
mname = '.'.join((pkg, '_pm3')).lstrip('.')
|
if __package__ or "." in __name__:
|
||||||
try:
|
from . import _pm3
|
||||||
return importlib.import_module(mname)
|
|
||||||
except ImportError:
|
|
||||||
return importlib.import_module('_pm3')
|
|
||||||
_pm3 = swig_import_helper()
|
|
||||||
del swig_import_helper
|
|
||||||
elif _swig_python_version_info >= (2, 6, 0):
|
|
||||||
def swig_import_helper():
|
|
||||||
from os.path import dirname
|
|
||||||
import imp
|
|
||||||
fp = None
|
|
||||||
try:
|
|
||||||
fp, pathname, description = imp.find_module('_pm3', [dirname(__file__)])
|
|
||||||
except ImportError:
|
|
||||||
import _pm3
|
|
||||||
return _pm3
|
|
||||||
try:
|
|
||||||
_mod = imp.load_module('_pm3', fp, pathname, description)
|
|
||||||
finally:
|
|
||||||
if fp is not None:
|
|
||||||
fp.close()
|
|
||||||
return _mod
|
|
||||||
_pm3 = swig_import_helper()
|
|
||||||
del swig_import_helper
|
|
||||||
else:
|
else:
|
||||||
import _pm3
|
import _pm3
|
||||||
del _swig_python_version_info
|
|
||||||
|
|
||||||
try:
|
|
||||||
_swig_property = property
|
|
||||||
except NameError:
|
|
||||||
pass # Python < 2.2 doesn't have 'property'.
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import builtins as __builtin__
|
import builtins as __builtin__
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import __builtin__
|
import __builtin__
|
||||||
|
|
||||||
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
|
|
||||||
if (name == "thisown"):
|
|
||||||
return self.this.own(value)
|
|
||||||
if (name == "this"):
|
|
||||||
if type(value).__name__ == 'SwigPyObject':
|
|
||||||
self.__dict__[name] = value
|
|
||||||
return
|
|
||||||
method = class_type.__swig_setmethods__.get(name, None)
|
|
||||||
if method:
|
|
||||||
return method(self, value)
|
|
||||||
if (not static):
|
|
||||||
if _newclass:
|
|
||||||
object.__setattr__(self, name, value)
|
|
||||||
else:
|
|
||||||
self.__dict__[name] = value
|
|
||||||
else:
|
|
||||||
raise AttributeError("You cannot add attributes to %s" % self)
|
|
||||||
|
|
||||||
|
|
||||||
def _swig_setattr(self, class_type, name, value):
|
|
||||||
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
|
|
||||||
|
|
||||||
|
|
||||||
def _swig_getattr(self, class_type, name):
|
|
||||||
if (name == "thisown"):
|
|
||||||
return self.this.own()
|
|
||||||
method = class_type.__swig_getmethods__.get(name, None)
|
|
||||||
if method:
|
|
||||||
return method(self)
|
|
||||||
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
|
|
||||||
|
|
||||||
|
|
||||||
def _swig_repr(self):
|
def _swig_repr(self):
|
||||||
try:
|
try:
|
||||||
strthis = "proxy of " + self.this.__repr__()
|
strthis = "proxy of " + self.this.__repr__()
|
||||||
|
@ -87,38 +26,55 @@ def _swig_repr(self):
|
||||||
strthis = ""
|
strthis = ""
|
||||||
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
||||||
|
|
||||||
try:
|
|
||||||
_object = object
|
|
||||||
_newclass = 1
|
|
||||||
except __builtin__.Exception:
|
|
||||||
class _object:
|
|
||||||
pass
|
|
||||||
_newclass = 0
|
|
||||||
|
|
||||||
class device(_object):
|
def _swig_setattr_nondynamic_instance_variable(set):
|
||||||
__swig_setmethods__ = {}
|
def set_instance_attr(self, name, value):
|
||||||
__setattr__ = lambda self, name, value: _swig_setattr(self, device, name, value)
|
if name == "thisown":
|
||||||
__swig_getmethods__ = {}
|
self.this.own(value)
|
||||||
__getattr__ = lambda self, name: _swig_getattr(self, device, name)
|
elif name == "this":
|
||||||
|
set(self, name, value)
|
||||||
|
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
|
||||||
|
set(self, name, value)
|
||||||
|
else:
|
||||||
|
raise AttributeError("You cannot add instance attributes to %s" % self)
|
||||||
|
return set_instance_attr
|
||||||
|
|
||||||
|
|
||||||
|
def _swig_setattr_nondynamic_class_variable(set):
|
||||||
|
def set_class_attr(cls, name, value):
|
||||||
|
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
|
||||||
|
set(cls, name, value)
|
||||||
|
else:
|
||||||
|
raise AttributeError("You cannot add class attributes to %s" % cls)
|
||||||
|
return set_class_attr
|
||||||
|
|
||||||
|
|
||||||
|
def _swig_add_metaclass(metaclass):
|
||||||
|
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
|
||||||
|
def wrapper(cls):
|
||||||
|
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
|
class _SwigNonDynamicMeta(type):
|
||||||
|
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
|
||||||
|
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
|
||||||
|
|
||||||
|
|
||||||
|
class device(object):
|
||||||
|
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||||
__repr__ = _swig_repr
|
__repr__ = _swig_repr
|
||||||
|
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
this = _pm3.new_device(*args)
|
_pm3.device_swiginit(self, _pm3.new_device(*args))
|
||||||
try:
|
|
||||||
self.this.append(this)
|
|
||||||
except __builtin__.Exception:
|
|
||||||
self.this = this
|
|
||||||
__swig_destroy__ = _pm3.delete_device
|
__swig_destroy__ = _pm3.delete_device
|
||||||
__del__ = lambda self: None
|
|
||||||
|
|
||||||
def console(self, cmd):
|
def console(self, cmd):
|
||||||
return _pm3.device_console(self, cmd)
|
return _pm3.device_console(self, cmd)
|
||||||
__swig_getmethods__["name"] = _pm3.device_name_get
|
name = property(_pm3.device_name_get)
|
||||||
if _newclass:
|
|
||||||
name = _swig_property(_pm3.device_name_get)
|
# Register device in _pm3:
|
||||||
device_swigregister = _pm3.device_swigregister
|
_pm3.device_swigregister(device)
|
||||||
device_swigregister(device)
|
|
||||||
|
|
||||||
# This file is compatible with both classic and new-style classes.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* ----------------------------------------------------------------------------
|
/* ----------------------------------------------------------------------------
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||||
* Version 3.0.12
|
* Version 4.0.1
|
||||||
*
|
*
|
||||||
* This file is not intended to be easily readable and contains a number of
|
* This file is not intended to be easily readable and contains a number of
|
||||||
* coding conventions designed to improve portability and efficiency. Do not make
|
* coding conventions designed to improve portability and efficiency. Do not make
|
||||||
|
@ -185,6 +185,7 @@
|
||||||
/* Flags for pointer conversions */
|
/* Flags for pointer conversions */
|
||||||
#define SWIG_POINTER_DISOWN 0x1
|
#define SWIG_POINTER_DISOWN 0x1
|
||||||
#define SWIG_CAST_NEW_MEMORY 0x2
|
#define SWIG_CAST_NEW_MEMORY 0x2
|
||||||
|
#define SWIG_POINTER_NO_NULL 0x4
|
||||||
|
|
||||||
/* Flags for new pointer objects */
|
/* Flags for new pointer objects */
|
||||||
#define SWIG_POINTER_OWN 0x1
|
#define SWIG_POINTER_OWN 0x1
|
||||||
|
@ -713,6 +714,23 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Errors in SWIG */
|
||||||
|
#define SWIG_UnknownError -1
|
||||||
|
#define SWIG_IOError -2
|
||||||
|
#define SWIG_RuntimeError -3
|
||||||
|
#define SWIG_IndexError -4
|
||||||
|
#define SWIG_TypeError -5
|
||||||
|
#define SWIG_DivisionByZero -6
|
||||||
|
#define SWIG_OverflowError -7
|
||||||
|
#define SWIG_SyntaxError -8
|
||||||
|
#define SWIG_ValueError -9
|
||||||
|
#define SWIG_SystemError -10
|
||||||
|
#define SWIG_AttributeError -11
|
||||||
|
#define SWIG_MemoryError -12
|
||||||
|
#define SWIG_NullReferenceError -13
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* luarun.swg
|
* luarun.swg
|
||||||
*
|
*
|
||||||
|
@ -895,8 +913,8 @@ typedef struct swig_elua_entry {
|
||||||
* -------------------------------------------------------------------------- */
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Push the string STR on the Lua stack, like lua_pushstring, but
|
/* Push the string STR on the Lua stack, like lua_pushstring, but
|
||||||
prefixed with the the location of the innermost Lua call-point
|
prefixed with the location of the innermost Lua call-point
|
||||||
(as formated by luaL_where). */
|
(as formatted by luaL_where). */
|
||||||
SWIGRUNTIME void
|
SWIGRUNTIME void
|
||||||
SWIG_Lua_pusherrstring (lua_State *L, const char *str)
|
SWIG_Lua_pusherrstring (lua_State *L, const char *str)
|
||||||
{
|
{
|
||||||
|
@ -906,8 +924,8 @@ SWIG_Lua_pusherrstring (lua_State *L, const char *str)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Push a formatted string generated from FMT and following args on
|
/* Push a formatted string generated from FMT and following args on
|
||||||
the Lua stack, like lua_pushfstring, but prefixed with the the
|
the Lua stack, like lua_pushfstring, but prefixed with the
|
||||||
location of the innermost Lua call-point (as formated by luaL_where). */
|
location of the innermost Lua call-point (as formatted by luaL_where). */
|
||||||
SWIGRUNTIME void
|
SWIGRUNTIME void
|
||||||
SWIG_Lua_pushferrstring (lua_State *L, const char *fmt, ...)
|
SWIG_Lua_pushferrstring (lua_State *L, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
@ -1004,7 +1022,7 @@ to tell the two structures apart within SWIG, other than by looking at the type
|
||||||
typedef struct {
|
typedef struct {
|
||||||
swig_type_info *type;
|
swig_type_info *type;
|
||||||
int own; /* 1 if owned & must be destroyed */
|
int own; /* 1 if owned & must be destroyed */
|
||||||
char data[1]; /* arbitary amount of data */
|
char data[1]; /* arbitrary amount of data */
|
||||||
} swig_lua_rawdata;
|
} swig_lua_rawdata;
|
||||||
|
|
||||||
/* Common SWIG API */
|
/* Common SWIG API */
|
||||||
|
@ -1754,17 +1772,11 @@ SWIGINTERN int SWIG_Lua_class_tostring(lua_State *L)
|
||||||
{
|
{
|
||||||
/* there should be 1 param passed in
|
/* there should be 1 param passed in
|
||||||
(1) userdata (not the metatable) */
|
(1) userdata (not the metatable) */
|
||||||
const char *className;
|
swig_lua_userdata* userData;
|
||||||
void* userData;
|
|
||||||
assert(lua_isuserdata(L,1)); /* just in case */
|
assert(lua_isuserdata(L,1)); /* just in case */
|
||||||
userData = lua_touserdata(L,1); /* get the userdata address for later */
|
userData = (swig_lua_userdata*)lua_touserdata(L,1); /* get the userdata address */
|
||||||
lua_getmetatable(L,1); /* get the meta table */
|
|
||||||
assert(lua_istable(L,-1)); /* just in case */
|
|
||||||
|
|
||||||
lua_getfield(L, -1, ".type");
|
lua_pushfstring(L, "<userdata of type '%s' at %p>", userData->type->str, userData->ptr);
|
||||||
className = lua_tostring(L, -1);
|
|
||||||
|
|
||||||
lua_pushfstring(L, "<%s userdata: %p>", className, userData);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2480,7 +2492,12 @@ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L,int index,void **ptr,swig_type
|
||||||
{
|
{
|
||||||
swig_lua_userdata *usr;
|
swig_lua_userdata *usr;
|
||||||
swig_cast_info *cast;
|
swig_cast_info *cast;
|
||||||
if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */
|
/* special case: lua nil => NULL pointer */
|
||||||
|
if (lua_isnil(L,index))
|
||||||
|
{
|
||||||
|
*ptr=0;
|
||||||
|
return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
|
||||||
|
}
|
||||||
usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */
|
usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */
|
||||||
if (usr)
|
if (usr)
|
||||||
{
|
{
|
||||||
|
@ -2575,7 +2592,7 @@ SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) {
|
||||||
switch(constants[i].type) {
|
switch(constants[i].type) {
|
||||||
case SWIG_LUA_INT:
|
case SWIG_LUA_INT:
|
||||||
lua_pushstring(L,constants[i].name);
|
lua_pushstring(L,constants[i].name);
|
||||||
lua_pushinteger(L,(lua_Number)constants[i].lvalue);
|
lua_pushinteger(L,(lua_Integer)constants[i].lvalue);
|
||||||
lua_rawset(L,-3);
|
lua_rawset(L,-3);
|
||||||
break;
|
break;
|
||||||
case SWIG_LUA_FLOAT:
|
case SWIG_LUA_FLOAT:
|
||||||
|
@ -2586,7 +2603,7 @@ SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) {
|
||||||
case SWIG_LUA_CHAR:
|
case SWIG_LUA_CHAR:
|
||||||
lua_pushstring(L,constants[i].name);
|
lua_pushstring(L,constants[i].name);
|
||||||
{
|
{
|
||||||
char c = constants[i].lvalue;
|
char c = (char)constants[i].lvalue;
|
||||||
lua_pushlstring(L,&c,1);
|
lua_pushlstring(L,&c,1);
|
||||||
}
|
}
|
||||||
lua_rawset(L,-3);
|
lua_rawset(L,-3);
|
||||||
|
@ -2686,7 +2703,7 @@ SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx) {
|
||||||
SWIGINTERN pm3_device *new_pm3_device__SWIG_1(char *port){
|
SWIGINTERN pm3_device *new_pm3_device__SWIG_1(char *port){
|
||||||
printf("SWIG pm3_device constructor with port, open pm3\n");
|
printf("SWIG pm3_device constructor with port, open pm3\n");
|
||||||
pm3_device * p = pm3_open(port);
|
pm3_device * p = pm3_open(port);
|
||||||
p->script_embedded = 1;
|
p->script_embedded = 0;
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
SWIGINTERN void delete_pm3_device(pm3_device *self){
|
SWIGINTERN void delete_pm3_device(pm3_device *self){
|
||||||
|
@ -3011,7 +3028,7 @@ SWIG_InitializeModule(void *clientdata) {
|
||||||
|
|
||||||
/* Now work on filling in swig_module.types */
|
/* Now work on filling in swig_module.types */
|
||||||
#ifdef SWIGRUNTIME_DEBUG
|
#ifdef SWIGRUNTIME_DEBUG
|
||||||
printf("SWIG_InitializeModule: size %d\n", swig_module.size);
|
printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
|
||||||
#endif
|
#endif
|
||||||
for (i = 0; i < swig_module.size; ++i) {
|
for (i = 0; i < swig_module.size; ++i) {
|
||||||
swig_type_info *type = 0;
|
swig_type_info *type = 0;
|
||||||
|
@ -3019,7 +3036,7 @@ SWIG_InitializeModule(void *clientdata) {
|
||||||
swig_cast_info *cast;
|
swig_cast_info *cast;
|
||||||
|
|
||||||
#ifdef SWIGRUNTIME_DEBUG
|
#ifdef SWIGRUNTIME_DEBUG
|
||||||
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* if there is another module already loaded */
|
/* if there is another module already loaded */
|
||||||
|
@ -3095,7 +3112,7 @@ SWIG_InitializeModule(void *clientdata) {
|
||||||
for (i = 0; i < swig_module.size; ++i) {
|
for (i = 0; i < swig_module.size; ++i) {
|
||||||
int j = 0;
|
int j = 0;
|
||||||
swig_cast_info *cast = swig_module.cast_initial[i];
|
swig_cast_info *cast = swig_module.cast_initial[i];
|
||||||
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
|
||||||
while (cast->type) {
|
while (cast->type) {
|
||||||
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
|
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
|
||||||
cast++;
|
cast++;
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "pm3.h"
|
||||||
|
|
||||||
#define PROXPROMPT_MAX_SIZE 255
|
#define PROXPROMPT_MAX_SIZE 255
|
||||||
|
|
||||||
|
@ -51,13 +52,6 @@ const char *get_my_executable_directory(void);
|
||||||
const char *get_my_user_directory(void);
|
const char *get_my_user_directory(void);
|
||||||
void main_loop(char *script_cmds_file, char *script_cmd, bool stayInCommandLoop);
|
void main_loop(char *script_cmds_file, char *script_cmd, bool stayInCommandLoop);
|
||||||
|
|
||||||
typedef struct pm3_device pm3_device;
|
|
||||||
pm3_device* pm3_open(char *port);
|
|
||||||
int pm3_console(pm3_device* dev, char *cmd);
|
|
||||||
char *pm3_get_name(pm3_device* dev);
|
|
||||||
void pm3_close(pm3_device* dev);
|
|
||||||
pm3_device* pm3_get_current_dev(void);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue