The user data structures and the macros for accessing them are defined in magproblem.h, the control flags and their macros in mag.h.
magproblem.h
mag.h