Sure it could be templated, but least of my concerns. The 26 parameters cannot be duplicated all over the place. This is an absurd function signature. Why are we implementing C-APIs, when we don't want to support C?