Missed an extern "C".
Twiddled the input enum's a little bit more...