]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - fx2lib/examples/fx2/cpp/fx2.i
Import fx2lib into fx2lafw directly.
[sigrok-firmware-fx2lafw.git] / fx2lib / examples / fx2 / cpp / fx2.i
diff --git a/fx2lib/examples/fx2/cpp/fx2.i b/fx2lib/examples/fx2/cpp/fx2.i
new file mode 100644 (file)
index 0000000..9ffbc96
--- /dev/null
@@ -0,0 +1,30 @@
+/**
+ * Copyright (C) 2009 Ubixum, Inc. 
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ **/
+
+/* interface file for python/swig */
+
+%module fx2
+//%include "typemaps.i"
+%include "cdata.i"
+%apply (char* STRING, int LENGTH)  { (char* buf, int size) }
+
+%{
+#include "fx2.h"
+%}
+
+%include "fx2.h"