3 * Copyright (C) 2010 - 2013 UNISYS CORPORATION
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or (at
9 * your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
14 * NON INFRINGEMENT. See the GNU General Public License for more
21 #include <linux/uuid.h>
28 PARSERSTRING_INITIATOR,
30 PARSERSTRING_CONNECTION,
32 } PARSER_WHICH_STRING;
34 typedef struct PARSER_CONTEXT_Tag PARSER_CONTEXT;
36 PARSER_CONTEXT *parser_init(u64 addr, u32 bytes, BOOL isLocal, BOOL *tryAgain);
37 PARSER_CONTEXT *parser_init_byteStream(u64 addr, u32 bytes, BOOL isLocal,
39 void parser_param_start(PARSER_CONTEXT *ctx, PARSER_WHICH_STRING which_string);
40 void *parser_param_get(PARSER_CONTEXT *ctx, char *nam, int namesize);
41 void *parser_string_get(PARSER_CONTEXT *ctx);
42 uuid_le parser_id_get(PARSER_CONTEXT *ctx);
43 char *parser_simpleString_get(PARSER_CONTEXT *ctx);
44 void *parser_byteStream_get(PARSER_CONTEXT *ctx, ulong *nbytes);
45 void parser_done(PARSER_CONTEXT *ctx);