Mapping a variable in an object from C