File: nodename.h

package info (click to toggle)
labwc 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,980 kB
  • sloc: ansic: 34,416; perl: 5,836; xml: 875; sh: 162; python: 131; makefile: 12
file content (19 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_NODENAME_H
#define LABWC_NODENAME_H

#include <libxml/parser.h>
#include <libxml/tree.h>

/**
 * nodename - give xml node an ascii name
 * @node: xml-node
 * @buf: buffer to receive the name
 * @len: size of buffer
 *
 * For example, the xml structure <a><b><c></c></b></a> would return the
 * name c.b.a
 */
char *nodename(xmlNode * node, char *buf, int len);

#endif /* LABWC_NODENAME_H */