doubao_chat/include_lib/net/streaming_media_server/fenice/xmllexer.h

66 lines
2.2 KiB
C

/* *
* $Id: xmllexer.h 387 2006-09-26 15:12:00Z shawill $
*
* This file is part of Fenice
*
* Fenice -- Open Media Server
*
* Copyright (C) 2004 by
*
* - Giampaolo Mancini <giampaolo.mancini@polito.it>
* - Francesco Varano <francesco.varano@polito.it>
* - Marco Penno <marco.penno@polito.it>
* - Federico Ridolfo <federico.ridolfo@polito.it>
* - Eugenio Menegatti <m.eu@libero.it>
* - Stefano Cau
* - Giuliano Emma
* - Stefano Oldrini
*
* Fenice is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Fenice is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Fenice; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* *** this file is a modified version taken from xine <http://xinehq.de/> ***
* */
#ifndef XML_LEXER_H
#define XML_LEXER_H
/* public constants */
#define T_ERROR -1 /* lexer error */
#define T_EOF 0 /* end of file */
#define T_EOL 1 /* end of line */
#define T_SEPAR 2 /* separator ' ' '/t' '\n' '\r' */
#define T_M_START_1 3 /* markup start < */
#define T_M_START_2 4 /* markup start </ */
#define T_M_STOP_1 5 /* markup stop > */
#define T_M_STOP_2 6 /* markup stop /> */
#define T_EQUAL 7 /* = */
#define T_QUOTE 8 /* \" or \' */
#define T_STRING 9 /* "string" */
#define T_IDENT 10 /* identifier */
#define T_DATA 11 /* data */
#define T_C_START 12 /* <!-- */
#define T_C_STOP 13 /* --> */
#define T_TI_START 14 /* <? */
#define T_TI_STOP 15 /* ?> */
#define T_DOCTYPE_START 16 /* <!DOCTYPE */
#define T_DOCTYPE_STOP 17 /* > */
/* public functions */
void lexer_init(char *buf, int size);
int lexer_get_token(char *tok, int tok_size);
#endif