Author: jkaluza
Date: Wed Feb 20 09:46:03 2013
New Revision: 1448060

URL: http://svn.apache.org/r1448060
Log:
* xs/maps/apache2_functions.map: Add function for ServerRec::loglevel
* xs/Apache2/ServerUtil/Apache2__ServerUtil.h: port ServerRec::loglevel to
  httpd-2.4

Modified:
    perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h
    perl/modperl/branches/httpd24/xs/maps/apache2_functions.map

Modified: 
perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h
URL: 
http://svn.apache.org/viewvc/perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h?rev=1448060&r1=1448059&r2=1448060&view=diff
==============================================================================
--- perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h 
(original)
+++ perl/modperl/branches/httpd24/xs/Apache2/ServerUtil/Apache2__ServerUtil.h 
Wed Feb 20 09:46:03 2013
@@ -205,3 +205,14 @@ static void mpxs_Apache2__ServerUtil_BOO
     newCONSTSUB(PL_defstash, "Apache2::ServerUtil::get_server_built",
                 newSVpv(ap_get_server_built(), 0));
 }
+
+static MP_INLINE
+int mpxs_Apache2__ServerRec_loglevel(pTHX_ server_rec *s, int loglevel)
+{
+    if (loglevel) {
+        s->log.level = loglevel;
+    }
+
+    return s->log.level;
+}
+

Modified: perl/modperl/branches/httpd24/xs/maps/apache2_functions.map
URL: 
http://svn.apache.org/viewvc/perl/modperl/branches/httpd24/xs/maps/apache2_functions.map?rev=1448060&r1=1448059&r2=1448060&view=diff
==============================================================================
--- perl/modperl/branches/httpd24/xs/maps/apache2_functions.map (original)
+++ perl/modperl/branches/httpd24/xs/maps/apache2_functions.map Wed Feb 20 
09:46:03 2013
@@ -168,6 +168,7 @@ MODULE=Apache2::ServerUtil   PACKAGE=Apa
  int:DEFINE_method_register | | server_rec *:s, const char *:methname
 ~add_version_component
  void:DEFINE_add_version_component | | server_rec *:s, const char *:component
+ mpxs_Apache2__ServerRec_loglevel | | server_rec *:s, loglevel=NULL
 
 MODULE=Apache2::ServerUtil   PACKAGE=Apache2::ServerUtil
  ap_exists_config_define


Reply via email to