summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2014-06-22 20:01:49 -0700
committerTushar Gohad <tushar.gohad@intel.com>2014-06-22 21:18:26 -0700
commita61532fc8bcac21513d388b0faf08b2b48eeecab (patch)
treecd5bebfebd3178656a1ae1018e8f9134aad6e39e /src
parent1a05a6efc1cacd2ae6bfd562ee98fbb9bac2e204 (diff)
downloadpyeclib-a61532fc8bcac21513d388b0faf08b2b48eeecab.tar.gz
ec_iface: Expose DATA/PARITY constraints in Python API
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/c/pyeclib_c/pyeclib_c.h4
-rw-r--r--src/python/pyeclib/ec_iface.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/c/pyeclib_c/pyeclib_c.h b/src/c/pyeclib_c/pyeclib_c.h
index d5d691b..aa26736 100644
--- a/src/c/pyeclib_c/pyeclib_c.h
+++ b/src/c/pyeclib_c/pyeclib_c.h
@@ -31,8 +31,8 @@
* Make sure these enum values match those exposed from the Python EC interface
* src/python/pyeclib/ec_iface.py
*/
-#define PYECC_MAX_DATA 32
-#define PYECC_MAX_PARITY 32
+#define PYECLIB_MAX_DATA 32
+#define PYECLIB_MAX_PARITY 32
typedef enum {
PYECC_NOT_FOUND = 0,
diff --git a/src/python/pyeclib/ec_iface.py b/src/python/pyeclib/ec_iface.py
index befa8b4..7183617 100644
--- a/src/python/pyeclib/ec_iface.py
+++ b/src/python/pyeclib/ec_iface.py
@@ -26,6 +26,9 @@ from enum import Enum
from enum import unique
from utils import create_instance
+PYECLIB_MAX_DATA = 32
+PYECLIB_MAX_PARITY = 32
+
@unique
class PyECLibEnum(Enum):