Fwd: Document on developing modules for 2.4 and onwards

2012-04-11 Thread Daniel Gruno
As per Igor's advice, I'm forwarding this message to the dev@ and
modules-dev@ lists as well:


Hello all httpd document lovers,
As per our nifty little STATUS document, it came to my attention that we
were missing an introductory segment on how to develop simple modules
for httpd 2.4, so I took the liberty of drawing up a proposal for what
we could put in place for this request. The draft is located at
http://httpd.apache.org/docs/trunk/developer/modguide.html and I would
much appreciate it if you guys could give me some feedback on whether
this will fit in as an, at least for the time being, appropriate
document to describe how to develop modules for the server.

I plan to expand on the subject, probably add another 10 pages or so,
during the summer, as well as letting it into the 2.4 fold, provided I
get positive feedback from this mailing list.

So, please do read the document and tell me what you think :)
Any suggestions, critique etc you might have will be warmly accepted.

With regards,
Daniel.



Re: Fwd: Document on developing modules for 2.4 and onwards

2012-04-11 Thread rm
On Wed, Apr 11, 2012 at 11:12:31AM +0200, Daniel Gruno wrote:
 As per Igor's advice, I'm forwarding this message to the dev@ and
 modules-dev@ lists as well:
 
 
 Hello all httpd document lovers,
 As per our nifty little STATUS document, it came to my attention that we
 were missing an introductory segment on how to develop simple modules
 for httpd 2.4, so I took the liberty of drawing up a proposal for what
 we could put in place for this request. The draft is located at
 http://httpd.apache.org/docs/trunk/developer/modguide.html and I would
 much appreciate it if you guys could give me some feedback on whether
 this will fit in as an, at least for the time being, appropriate
 document to describe how to develop modules for the server.
 
 I plan to expand on the subject, probably add another 10 pages or so,
 during the summer, as well as letting it into the 2.4 fold, provided I
 get positive feedback from this mailing list.
 
 So, please do read the document and tell me what you think :)
 Any suggestions, critique etc you might have will be warmly accepted.
 
 With regards,
 Daniel.


More comments: first, it might be a matter of style (or good habbits)
but i think you should cast void pointers to the correct type in your
code. So:

 example_config* base = BASE ;

should be:

 example_config* base = (example_config*) BASE ;

A real bug? 

  strcpy(conf-path, strlen(add-path) ? add-path : base-path);

Don't you mean strncpy here?
BTW, 'char path[256];' is pretty dangerous, there are OS/Compiler
constants that provide the operating sytem's max path length.

Cheers, RalfD


 


Fwd: Document on developing modules for 2.4 and onwards

2012-04-11 Thread Daniel Gruno
As per Igor's advice, I'm forwarding this message to the dev@ and
modules-dev@ lists as well:


Hello all httpd document lovers,
As per our nifty little STATUS document, it came to my attention that we
were missing an introductory segment on how to develop simple modules
for httpd 2.4, so I took the liberty of drawing up a proposal for what
we could put in place for this request. The draft is located at
http://httpd.apache.org/docs/trunk/developer/modguide.html and I would
much appreciate it if you guys could give me some feedback on whether
this will fit in as an, at least for the time being, appropriate
document to describe how to develop modules for the server.

I plan to expand on the subject, probably add another 10 pages or so,
during the summer, as well as letting it into the 2.4 fold, provided I
get positive feedback from this mailing list.

So, please do read the document and tell me what you think :)
Any suggestions, critique etc you might have will be warmly accepted.

With regards,
Daniel.



Re: Document on developing modules for 2.4 and onwards

2012-04-11 Thread Bing Swen
Hi Daniel,

The draft is already a great document and very useful for Httpd application 
developers. And I think it could be more helpful if it provides some guidelines 
for updating modules from 2.2.x to 2.4.x, or some way to use the new 2.4 
features. 

Regards,
Bing 


-邮件原件-
发件人: Daniel Gruno [mailto:rum...@cord.dk] 
发送时间: 2012年4月11日 17:13
收件人: modules-...@httpd.apache.org; dev@httpd.apache.org
主题: Fwd: Document on developing modules for 2.4 and onwards

As per Igor's advice, I'm forwarding this message to the dev@ and modules-dev@ 
lists as well:


Hello all httpd document lovers,
As per our nifty little STATUS document, it came to my attention that we were 
missing an introductory segment on how to develop simple modules for httpd 2.4, 
so I took the liberty of drawing up a proposal for what we could put in place 
for this request. The draft is located at 
http://httpd.apache.org/docs/trunk/developer/modguide.html and I would much 
appreciate it if you guys could give me some feedback on whether this will fit 
in as an, at least for the time being, appropriate document to describe how to 
develop modules for the server.

I plan to expand on the subject, probably add another 10 pages or so, during 
the summer, as well as letting it into the 2.4 fold, provided I get positive 
feedback from this mailing list.

So, please do read the document and tell me what you think :) Any suggestions, 
critique etc you might have will be warmly accepted.

With regards,
Daniel.



Re: Document on developing modules for 2.4 and onwards

2012-04-11 Thread Jeff Trawick
On Wed, Apr 11, 2012 at 10:07 AM, Bing Swen bs...@pku.edu.cn wrote:
 Hi Daniel,

 The draft is already a great document and very useful for Httpd application 
 developers. And I think it could be more helpful if it provides some 
 guidelines for updating modules from 2.2.x to 2.4.x, or some way to use the 
 new 2.4 features.

http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html


 Regards,
 Bing


 -邮件原件-
 发件人: Daniel Gruno [mailto:rum...@cord.dk]
 发送时间: 2012年4月11日 17:13
 收件人: modules-...@httpd.apache.org; dev@httpd.apache.org
 主题: Fwd: Document on developing modules for 2.4 and onwards

 As per Igor's advice, I'm forwarding this message to the dev@ and 
 modules-dev@ lists as well:
 

 Hello all httpd document lovers,
 As per our nifty little STATUS document, it came to my attention that we were 
 missing an introductory segment on how to develop simple modules for httpd 
 2.4, so I took the liberty of drawing up a proposal for what we could put in 
 place for this request. The draft is located at 
 http://httpd.apache.org/docs/trunk/developer/modguide.html and I would much 
 appreciate it if you guys could give me some feedback on whether this will 
 fit in as an, at least for the time being, appropriate document to describe 
 how to develop modules for the server.

 I plan to expand on the subject, probably add another 10 pages or so, during 
 the summer, as well as letting it into the 2.4 fold, provided I get positive 
 feedback from this mailing list.

 So, please do read the document and tell me what you think :) Any 
 suggestions, critique etc you might have will be warmly accepted.

 With regards,
 Daniel.




-- 
Born in Roswell... married an alien...


Re: Fwd: Document on developing modules for 2.4 and onwards

2012-04-11 Thread Daniel Gruno
On 11-04-2012 16:46, r...@tuxteam.de wrote:
 Nice work, and I bet it'll be helpful for new module authors. Just a
 small bug: in your example on configuration setting, in the function
 'example_create_dir_conf(...)' your code returns 'dir' which isn't
 declared in function scope. Shouldn't this read 'return cfg;' ???
 Cheers, Ralf Mattes
Yes, of course it should - fixed, thanks! :)

As per the strcpy, it's really not a concern, since the path isn't a
file path per se, but instead gets to hold one of two values; Merged
configuration or Newly created configuration at this point. But I
should probably look at casting properly, yeah, so I'll go fix that next.

With regards,
Daniel.