Index: modperl_util.h
===================================================================
RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_util.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -u -r1.45 -r1.46
--- modperl_util.h 20 Aug 2003 23:11:23 -0000 1.45
+++ modperl_util.h 30 Aug 2003 02:33:26 -0000 1.46
@@ -141,6 +141,14 @@
MP_INLINE int modperl_perl_module_loaded(pTHX_ const char *name);
+/**
+ * slurp the contents of r->filename and return them as a scalar
+ * @param r request record
+ * @param tainted whether the SV should be marked tainted or not
+ * @return a PV scalar with the contents of the file
+ */
+SV *modperl_slurp_filename(pTHX_ request_rec *r, int tainted);
+

How about we slowly start documenting mod_perl C API? At least the public functions? Here is the first one to start with, I guess we can just follow the docxygen API as in Apache/APR header files.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to