|
Email lists >
New Cherokee webserver list >
[Cherokee] 'External' handler development >
[Cherokee] 'External' handler development
[Cherokee] 'External' handler development
This post if a part of this thread
|
2008-06-16 21:06:01 |
|
|
'External' handler development
|
Hi,
For sake of documentation I have created a start for
handler_example.c
(forked from server_info). A module that should be well
documented and
shows some patterns for new developers.
I see two things if I pull this file from the well found
source tree;
since it is required to include <cherokee/cherokee.h>
instead of the
loose headers it looks more easy, but it fact it gets
buggy:
skinkie xen01 ~/development/htdocs/cherokee $ make
gcc -fPIC -shared -I/opt/cherokee/include -o
libplugin_example.so
handler_example.c
In file included from
/opt/cherokee/include/cherokee/cherokee.h:35,
from handler_example.h:37,
from handler_example.c:26:
/opt/cherokee/include/cherokee/util.h:102: warning: 'struct
passwd'
declared inside parameter list
/opt/cherokee/include/cherokee/util.h:102: warning: its
scope is only
this definition or declaration, which is probably not what
you want
/opt/cherokee/include/cherokee/util.h:103: warning: 'struct
group'
declared inside parameter list
It also seems that...
connection-protected.h:#define CONN_SRV(c)
(SRV(CONN(c)->server))
Provides some non trivial header magic. But including this
file by
itself pulls in *a lot* of other header files. Including
config.h/constants.h
I managed to get all the header files:
connection-protected.h
common-internal.h <-- needs update
<config.h/constants.h> -> "..."
socket.h
iocache.h
encoder_table.h
header-protected.h
matching_list.h
virtual_server.h
virtual_server_names.h
rule_list.h
config.h
constants.h
...obviously cherokee/cherokee.h need to include
connection-protected.h
Sources:
http://xen.bot.nu/cheroke
e/
I hope it would we could get some examples dir in the source
tree
containing some useful examples for cherokee development.
Stefan
_______________________________________________
Cherokee mailing list
Cherokee cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee
|
|
|
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|