mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
rc.xml: move nodename() to nodename.c
This commit is contained in:
parent
a97428020e
commit
9eac349046
4 changed files with 58 additions and 34 deletions
19
include/common/nodename.h
Normal file
19
include/common/nodename.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef __LABWC_NODENAME_H
|
||||
#define __LABWC_NODENAME_H
|
||||
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
#include <stdio.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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue