develooper Front page | perl.cvs.mod_parrot | Postings from January 2009

[svn:mod_parrot] r584 - mod_parrot/trunk/lib/ModParrot/Apache

From:
jhorwitz
Date:
January 6, 2009 12:49
Subject:
[svn:mod_parrot] r584 - mod_parrot/trunk/lib/ModParrot/Apache
Message ID:
20090106204857.CCC0ACB9F9@x12.develooper.com
Author: jhorwitz
Date: Tue Jan  6 12:48:54 2009
New Revision: 584

Added:
   mod_parrot/trunk/lib/ModParrot/Apache/ServerRec.pir

Log:
forgot to add the ServerRec PIR code!


Added: mod_parrot/trunk/lib/ModParrot/Apache/ServerRec.pir
==============================================================================
--- (empty file)
+++ mod_parrot/trunk/lib/ModParrot/Apache/ServerRec.pir	Tue Jan  6 12:48:54 2009
@@ -0,0 +1,50 @@
+# $Id$
+
+# Copyright (c) 2008 Jeff Horwitz
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+=head1 NAME
+
+Apache/ServerRec.pir
+
+=head1 SYNOPSIS
+
+=head1 DESCRIPTION
+
+This code implements the ModParrot;Apache;ServerRec class, an encapsulation of
+Apache's server_rec structure.
+ 
+=head2 Methods
+
+=over 4
+
+=cut
+
+.namespace [ 'ModParrot'; 'Apache'; 'ServerRec' ]
+
+.sub _initialize :load
+    .local pmc sr_class
+    .local pmc func
+
+    newclass sr_class, [ 'ModParrot'; 'Apache'; 'ServerRec' ]
+    addattribute sr_class, 'server_rec'
+.end
+
+.include 'build/src/pir/server_rec.pir'
+
+=head1 AUTHOR
+
+Jeff Horwitz
+
+=cut



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About