I think, that there is no ready constants here. Function status was used as Boolean value before your changes. I recommend you to create new local constants. Also you can replace several error statuses pf read_frame_v4l2 function with the single one (1). In this case you do not need additional constants at all. Everything would work in the same Boolean style.