open62541 1.4.15
Open source implementation of OPC UA
Loading...
Searching...
No Matches
Parser.h
Go to the documentation of this file.
1/** This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 *
5 * Copyright 2020 (c) Matthias Konnerth
6 */
7
8#ifndef PARSER_H
9#define PARSER_H
10#include <stdio.h>
11
12struct Parser;
13typedef struct Parser Parser;
14
15typedef void (*Parser_callbackStart)(void *ctx, const char *localname,
16 const char *prefix, const char *URI,
17 int nb_namespaces, const char **namespaces,
18 int nb_attributes, int nb_defaulted,
19 const char **attributes);
20
21typedef void (*Parser_callbackEnd)(void *ctx, const char *localname,
22 const char *prefix, const char *URI);
23
24typedef void (*Parser_callbackChar)(void *ctx, const char *ch, int len);
25
26Parser *Parser_new(void *context);
27int Parser_run(Parser *parser, FILE *file, Parser_callbackStart start,
29void Parser_delete(Parser *parser);
30#endif
Parser * Parser_new(void *context)
int Parser_run(Parser *parser, FILE *file, Parser_callbackStart start, Parser_callbackEnd end, Parser_callbackChar onChars)
struct Parser Parser
Definition Parser.h:13
void(* Parser_callbackChar)(void *ctx, const char *ch, int len)
Definition Parser.h:24
void Parser_delete(Parser *parser)
void(* Parser_callbackEnd)(void *ctx, const char *localname, const char *prefix, const char *URI)
Definition Parser.h:21
void(* Parser_callbackStart)(void *ctx, const char *localname, const char *prefix, const char *URI, int nb_namespaces, const char **namespaces, int nb_attributes, int nb_defaulted, const char **attributes)
Definition Parser.h:15