2015-10-24 5:26 GMT-02:00 Bo Lorentsen <[email protected]>:
> On 10/24/2015 08:30 AM, Roberto De Ioris wrote:
>> Hi, the cutelyst project is a qt webframework built upon uWSGI:
>>
>> http://cutelyst.org/
>>
>> you can check their work or (as already suggested) look at the cplusplus
>> included plugin as a starting point.
> Ok, thanks ... I am not sure i would have found this project myself.
>
> They have made some done some wrapping work and use cmake for build,
> thats a good start.
>
> Are there any were where the plugin hooks are defined, or is the best
> action to just browse different plugins ?
In cutelyst the plugin part is in uwsgiEngine directory
https://github.com/cutelyst/cutelyst/tree/master/uwsgiEngine

There in plugin.cpp
https://github.com/cutelyst/cutelyst/blob/master/uwsgiEngine/plugin.cpp#L339
you have the hooks, which uWSIG will call.
Depending on your usage you won't want a custom event loop (which
is needed so that Qt classes work properly, Qt can integrate with any
event loop but that would be more work),
so not all hooks are needed.
On the C++ plugin the hooks where defined with named syntax .name = "cplusplus",
this isn't valid C++ code so you either have to put into a .c file
file or use the way I did in
plugin.cpp, which is better if you happened to share a config structure and not
want to get unaligned warnings on 64bits.

Best,

-- 
Daniel Nicoletti

KDE Developer - http://dantti.wordpress.com
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to