xmlops_mod.c

Go to the documentation of this file.
00001 
00033 #include <stdio.h>
00034 #include <stdlib.h>
00035 #include <string.h>
00036 #include <libxml/parser.h>
00037 #include <time.h>
00038 
00039 #include "../../sr_module.h"
00040 #include "../../dprint.h"
00041 #include "pv_xml.h"
00042 
00043 MODULE_VERSION
00044 
00045 extern int pv_xml_buf_size;
00046 
00047 static pv_export_t mod_pvs[] = {
00048         { {"xml", sizeof("xml")-1}, PVT_OTHER, pv_get_xml, pv_set_xml,
00049                 pv_parse_xml_name, 0, 0, 0 },
00050         { {0, 0}, 0, 0, 0, 0, 0, 0, 0 }
00051 };
00052 
00053 static param_export_t params[]={
00054         { "buf_size",  INT_PARAM, &pv_xml_buf_size },
00055         { "xml_ns",    STR_PARAM|USE_FUNC_PARAM, (void*)pv_xml_ns_param },
00056         { 0, 0, 0}
00057 };
00058 
00060 struct module_exports exports= {
00061         "xmlops",               /* module name */
00062          DEFAULT_DLFLAGS,       /* dlopen flags */
00063          0,                     /* exported functions */
00064          params,                /* exported parameters */
00065          0,                             /* exported statistics */
00066          0,                             /* exported MI functions */
00067          mod_pvs,               /* exported pseudo-variables */
00068          0,                             /* extra processes */
00069          0,                             /* module initialization function */
00070          0,                             /* response handling function */
00071          0,                             /* destroy function */
00072          0                              /* per-child init function */
00073 };
00074