tests/python/c_code@c_ext/cfile.xml
changeset 734 5c42cafaee15
child 859 dbf82971f09d
equal deleted inserted replaced
733:915be999f3f0 734:5c42cafaee15
       
     1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
       
     2 <CFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="cext_xsd.xsd">
       
     3   <includes>
       
     4 <![CDATA[]]>
       
     5   </includes>
       
     6   <variables/>
       
     7   <globals>
       
     8 <![CDATA[void Python_to_C_Call(int value){
       
     9   /* That code should never touch to 
       
    10      variables modified by PLC thread */
       
    11   printf("C code called by Python: %d\n",value);
       
    12 }
       
    13 ]]>
       
    14   </globals>
       
    15   <initFunction>
       
    16 <![CDATA[]]>
       
    17   </initFunction>
       
    18   <cleanUpFunction>
       
    19 <![CDATA[]]>
       
    20   </cleanUpFunction>
       
    21   <retrieveFunction>
       
    22 <![CDATA[]]>
       
    23   </retrieveFunction>
       
    24   <publishFunction>
       
    25 <![CDATA[]]>
       
    26   </publishFunction>
       
    27 </CFile>