File: canon_xml.h

package info (click to toggle)
libinklevel 0.9.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,840 kB
  • sloc: sh: 4,488; ansic: 4,422; python: 44; makefile: 26
file content (22 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* canon_xml.h
 *
 * (c) 2022 Markus Heinz
 *
 * This software is licensed under the terms of the GPL.
 * For details see file COPYING.
 */

#ifndef CANON_XML_H
#define CANON_XML_H

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

#define XPATH_EXPRESSION "//ivec:ink"
#define XPATH_NS "ivec=http://www.canon.com/ns/cmd/2008/07/common/"

int parse_level_from_canon_xml(const unsigned char *xml,
			       struct ink_level *level);
#endif