Menu

[r674]: / branches / Release-2-0-6-branch / php-java-bridge / parser.h  Maximize  Restore  History

Download this file

26 lines (19 with data), 557 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef JAVA_PARSER_H
#define JAVA_PARSER_H
#include "protocol.h"
#define PARSER_GET_STRING(pst, pos) ((*pst[pos].string)+pst[pos].off)
typedef struct {
size_t length, off;
unsigned char** string; //address of s (stored in proxyenv)
} parser_string_t;
typedef struct {
short n;
parser_string_t *strings;
} parser_tag_t;
typedef struct parser_cb {
void (*begin)(parser_tag_t[3], struct parser_cb *);
void (*end)(parser_string_t[1], struct parser_cb *);
void *ctx;
} parser_cb_t;
extern short parse(proxyenv *env, parser_cb_t *cb);
#endif