- While this /nearly/ qualifies for enum, places like python
argument converting will not be able to produce "true enum" values.
So dont even try.
/** \ingroup header
* Convert header to/from (legacy) data presentation
* @param h header
- * @param op operation
+ * @param op one of headerConvOps operations
* @return 1 on success, 0 on failure
*/
-int headerConvert(Header h, headerConvOps op);
+int headerConvert(Header h, int op);
#ifdef __cplusplus
}
}
}
-int headerConvert(Header h, headerConvOps op)
+int headerConvert(Header h, int op)
{
int rc = 1;
static PyObject *hdrConvert(hdrObject *self, PyObject *args, PyObject *kwds)
{
char *kwlist[] = {"op", NULL};
- headerConvOps op = -1;
+ int op = -1;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "i", kwlist, &op)) {
return NULL;