Again, apologies if I've dumbed this down, but if I understand this all correctly...
The webserver starts uWSGI, the python application running within then does stuff via uWSGI. You want one of those things to be handled by a uWSGI extension that has been written in python, with CFFI, rather than in pure C. In other words, CFFI is going to generate the C part of the extension. Unfortunately I'm no CFFI expert, but the above sounds like something that might be better broken down into 2 parts. 1) Writing uWSGI extensions in Python and posted to a uWSGI development forum. 2) Generating python bindings for C calls with CFFI and clang and posted to a CFFI forum. (Why clang? GCC/G++ will work just as well and may be the default). Hope that helps. James -- https://mail.python.org/mailman/listinfo/python-list