hostpad/wpa_supplicant is opensource code with enough c/c++ knowledge you can implement whatever you want, thats the big benefit of opensource
hostap-1 - hostapd/wpa_supplicant 1.x for example is the source for 1.0 version
to run your end application you only need a .service file if you use systemd to have it under systemd control