It has been pointed out that the wording of the license of this library is not entirely clear. The term "dual licensing" usually refers to a licence choice of two licenses "LICENSE1 _or_ LICENSE2. Instead the license of this library claimed "LICENSE1 _and_ LICENSE2". After an internal discussion with @metajack and @pasis it was made clear that the initial idea was to dual license the library in the usual way. This was also made clear by jack on the ML in the past [0]. As of jack, these licensing terms originated from jquery, which also used the 'and' version in the past and has since been corrected [1]. This patch changes the license terms to 'MIT or GPLv3' and also adds SPDX headers [2]. [0] https://groups.google.com/g/libstrophe/c/JkFgr601JQc [1] https://stackoverflow.com/q/2758409 [2] https://spdx.org Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
/* SPDX-License-Identifier: MIT OR GPL-3.0-only */
|
|
/* 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 or 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__ */
|