This message was posted on behalf of Intel Corporation
Thanks for reaching out!
Are you looking for something like mraa (https://github.com/intel-iot-devkit/mraa)? This library allows you to interface with the IO on Galileo with a structured and sane API.
You can read its documentation in https://iotdk.intel.com/docs/master/mraa/.
I hope this information helps you,