summaryrefslogtreecommitdiff
path: root/FantomModule/FantomModule.h
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-02 07:20:35 +0800
committerTat-Chee Wan (USM)2011-03-02 07:20:35 +0800
commit96da3f913a2b6dc561bec9a3d109147230adef83 (patch)
tree67da734f3a68e7701d1994ce1f70ffc29a6d9ebb /FantomModule/FantomModule.h
parent2234d3c1cae095a3a450e7c5bbf0c7b89bb6c346 (diff)
added more template code
Diffstat (limited to 'FantomModule/FantomModule.h')
-rw-r--r--FantomModule/FantomModule.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/FantomModule/FantomModule.h b/FantomModule/FantomModule.h
index 4266d04..16818be 100644
--- a/FantomModule/FantomModule.h
+++ b/FantomModule/FantomModule.h
@@ -19,6 +19,8 @@
#define FANTOM_USB "USB"
#define FANTOM_BT_TIMEOUTSEC 2
#define FANTOM_NXTNAME_LEN 256
+#define FANTOM_DATA_BUFLEN 256
+#define FANTOM_NXT_PASSKEY "1234"
/* The classes below are exported */
#pragma GCC visibility push(default)
@@ -35,12 +37,16 @@ extern "C" PyObject *fantom_close(PyObject *py_self, PyObject *py_args);
class FantomModule
{
nFANTOM100::tStatus status;
- nFANTOM100::iNXTIterator* nxtIteratorPtr;
nFANTOM100::iNXT* nxtPtr;
+ ViChar pairedResourceName[FANTOM_NXTNAME_LEN];
public:
PyObject *finddevices(PyObject *py_self, PyObject *py_args);
PyObject *socket(PyObject *py_self, PyObject *py_args);
+ PyObject *connect(PyObject *py_self, PyObject *py_args);
+ PyObject *send(PyObject *py_self, PyObject *py_args);
+ PyObject *recv(PyObject *py_self, PyObject *py_args);
+ PyObject *close(PyObject *py_self, PyObject *py_args);
void HelloWorld(const char *);
};