I have a struct I\'m accessing via ctypes:
struct attrl { char *name; char *resource; char *value; struct attrl *next; enum batch_op op;
Using c_int or c_uint would be fine. Alternatively, there is a recipe in the cookbook for an Enumeration class.
c_int
c_uint