aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/sbkenum.h
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-01-28 11:57:21 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:13:51 -0300
commitcf25d3b294c1e6497ce5f7a9644d98c9d460500c (patch)
treedb35071ab8c510ef0f742fdcc0b773f1f70e6a6e /libshiboken/sbkenum.h
parentfd8e28fa13c7424f0ebba60d90d025cf4ac3b7b9 (diff)
Fixed enum __repr__ function.
fixes bug #617. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/sbkenum.h')
-rw-r--r--libshiboken/sbkenum.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libshiboken/sbkenum.h b/libshiboken/sbkenum.h
index 50ac9220a..95b500ca4 100644
--- a/libshiboken/sbkenum.h
+++ b/libshiboken/sbkenum.h
@@ -46,6 +46,7 @@ namespace Enum
LIBSHIBOKEN_API PyObject* newItem(PyTypeObject* enumType, long itemValue, const char* itemName = 0);
LIBSHIBOKEN_API PyTypeObject* newType(const char* name);
LIBSHIBOKEN_API long getValue(PyObject* enumItem);
+ LIBSHIBOKEN_API PyObject* getEnumItemFromValue(PyTypeObject* enumType, long itemValue);
}
} // namespace Shiboken