<?xml version="1.0"?>
<extension name="x4">
 <summary>My first Extension</summary>
 <logo src='x2.png' mimetype='image/png'/>
 <release>
  <version>0.1</version>
  <date>2002-02-28</date>
  <state>alpha</state>
  <license>php</license>
  <notes>
      - first experimental draft
  </notes>
 </release>

 <deps language="cpp"/>

 <functions>
  <function name="foobar">
   <proto>string foobar(string foo, int bar)</proto>
   <summary>A dummy function</summary>
   <description>
This function returns a given string 'foo' 'bar' times.
   </description>
   <code>
<![CDATA[
int i, len;
char *newstr;

len = foo_len * bar;

newstr = (char *)emalloc(len + 1);
*newstr = '\0';

for (i=0; i<bar; i++) {
  strcat(newstr, foo);
}

RETURN_STRINGL(newstr, len, 0);
]]>
   </code>
  </function>
 </functions>

</extension>