mirror of
https://github.com/strophe/libstrophe.git
synced 2026-07-18 11:56:22 +00:00
Const variables in prototypes don't add much value, but make the code larger and redundant. Remove these const keywords. Note, this doesn't apply to pointers to const memory.
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
/* parser.h
|
|
** strophe XMPP client library -- parser structures and functions
|
|
**
|
|
** Copyright (C) 2005-2009 Collecta, Inc.
|
|
**
|
|
** This software is provided AS-IS with no warranty, either express or
|
|
** implied.
|
|
**
|
|
** This program is dual licensed under the MIT and GPLv3 licenses.
|
|
*/
|
|
|
|
/** @file
|
|
* Internally used functions and structures.
|
|
*/
|
|
|
|
#ifndef __LIBSTROPHE_PARSER_H__
|
|
#define __LIBSTROPHE_PARSER_H__
|
|
|
|
#include "strophe.h"
|
|
|
|
typedef struct _parser_t parser_t;
|
|
|
|
typedef void (*parser_start_callback)(char *name, char **attrs, void *userdata);
|
|
typedef void (*parser_end_callback)(char *name, void *userdata);
|
|
typedef void (*parser_stanza_callback)(xmpp_stanza_t *stanza, void *userdata);
|
|
|
|
parser_t *parser_new(xmpp_ctx_t *ctx,
|
|
parser_start_callback startcb,
|
|
parser_end_callback endcb,
|
|
parser_stanza_callback stanzacb,
|
|
void *userdata);
|
|
void parser_free(parser_t *parser);
|
|
char *parser_attr_name(xmpp_ctx_t *ctx, char *nsname);
|
|
int parser_reset(parser_t *parser);
|
|
int parser_feed(parser_t *parser, char *chunk, int len);
|
|
|
|
#endif /* __LIBSTROPHE_PARSER_H__ */
|