Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: implementing Apache::CmdParms::info(): msg#00327

apache.mod-perl.devel

Subject: Re: implementing Apache::CmdParms::info()


> Since now things are implemented in perl, may be it'd make more sense to
match the perl
> API with perl keys? Since now you have:
>
>> + cmd_data => 'some info',
>
> but you retrieve it with:
>
> ->info
>
> that's confusing.

well, confusing or not, it's following the Apache convention

struct command_struct {
...
/** Extra data, for functions which implement multiple commands... */
void *cmd_data;

and

struct cmd_parms_struct {
/** Argument to command from cmd_table */
void *info;

and is the same as it was in mp1. I'm inclined to keep it info(), since for (most if not) all other record accessors (which cmd_data and info both are) the names are the same as the record slot.

>
>> the patch was (for the most part) generated by making the above change in
WrapXS,
>> compiling, then putting the results from the generated .c into
Apache__CmdParms.h -
>> in other words, the patch was autogenerated too, so don't blame me :)
>
>
> Yes, but you need to rewrite it to reduce the clutter, which is ok when
things are
> autogenerated, since no one has to maintain them. There is a typemap for
doing all the
> conversions and croaking. Look at other thin wrappers in .h files under xs/
or the
> guide for writing those wrappers. It should be pretty trivial for this
function.

I don't see much that can be cleaned up, but I'll take a look at it.

>
>> anyway, I had to shuffle the modperl_module_cmd_data_t struct around so that
>> everybody could see everything, but it all worked out in the end.
>
>
> Won't it better to put it into modperl_types.h then? All public types reside
there.

that's fine, I'll move it there instead.

--Geoff


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation