From 1ac2b7cdc13b4df0e5f1f961090ae934ddbf0f84 Mon Sep 17 00:00:00 2001
From: Justin Carpentier <justin.carpentier@inria.fr>
Date: Thu, 31 Dec 2020 10:03:20 +0100
Subject: [PATCH] core: add SWIG data object

---
 CMakeLists.txt           |  1 +
 include/eigenpy/swig.hpp | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 include/eigenpy/swig.hpp

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 133f9f82..c45fa58f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -128,6 +128,7 @@ SET(${PROJECT_NAME}_HEADERS
   include/eigenpy/ufunc.hpp
   include/eigenpy/register.hpp
   include/eigenpy/stride.hpp
+  include/eigenpy/swig.hpp
   include/eigenpy/version.hpp
 )
 
diff --git a/include/eigenpy/swig.hpp b/include/eigenpy/swig.hpp
new file mode 100644
index 00000000..56f81cbf
--- /dev/null
+++ b/include/eigenpy/swig.hpp
@@ -0,0 +1,18 @@
+//
+// Copyright (c) 2020 INRIA
+//
+
+#ifndef __eigenpy_swig_hpp__
+#define __eigenpy_swig_hpp__
+
+namespace eigenpy
+{
+  struct PySwigObject
+  {
+    PyObject_HEAD
+    void * ptr;
+    const char * desc;
+  };
+}
+
+#endif // ifndef __eigenpy_swig_hpp__
-- 
GitLab