File: libxml.h

package info (click to toggle)
xacobeo 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,804 kB
  • ctags: 745
  • sloc: xml: 33,885; perl: 2,353; ansic: 1,128; makefile: 127
file content (32 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __XACOBEO_LIBXML_H__
#define __XACOBEO_LIBXML_H__

#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include <libxml/parser.h>

#define PmmSvNode(n)      PmmSvNodeExt(n,1)
#define PmmOWNERPO(node)  ((node && PmmOWNER(node)) ? (ProxyNodePtr)PmmOWNER(node)->_private : node)
#define PmmPROXYNODE(x)   (INT2PTR(ProxyNodePtr,x->_private))
#define PmmOWNER(node)    node->owner


struct _ProxyNode {
    xmlNodePtr node;
    xmlNodePtr owner;
    int count;
    int encoding;
};

typedef struct _ProxyNode ProxyNode;
typedef ProxyNode* ProxyNodePtr;

xmlNodePtr
PmmSvNodeExt(SV *perlnode, int copy);

SV*
PmmNodeToSv(xmlNodePtr node, ProxyNodePtr owner);

#endif