don't think it is worth it.. it requires either writing an encode/decode for the op field, or casting it when passing to the method, e.g. get_opname((op_type_t)op);