extern "C" { struct Color { float r, g, b, a; }; // this is what we will reload dynamically Color get_background_color() { // change this while program runs, rebuild .so, it will update return {0.7f, 0.1f, 0.2f, 1.0f}; } }