libmpdclient 2.22
parser.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2// Copyright The Music Player Daemon Project
3
4#ifndef LIBMPDCLIENT_PARSER_H
5#define LIBMPDCLIENT_PARSER_H
6
7#include "protocol.h"
8#include "compiler.h"
9
10#include <stdbool.h>
11
17
23
29
35};
36
43struct mpd_parser;
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
53mpd_malloc
54struct mpd_parser *
56
60void
62
79mpd_parser_feed(struct mpd_parser *parser, char *line);
80
88mpd_pure
89bool
90mpd_parser_is_discrete(const struct mpd_parser *parser);
91
98mpd_pure
101
108mpd_pure
109unsigned
110mpd_parser_get_at(const struct mpd_parser *parser);
111
122mpd_pure
123const char *
124mpd_parser_get_message(const struct mpd_parser *parser);
125
135mpd_pure
136const char *
137mpd_parser_get_name(const struct mpd_parser *parser);
138
148mpd_pure
149const char *
150mpd_parser_get_value(const struct mpd_parser *parser);
151
152#ifdef __cplusplus
153}
154#endif
155
156#endif
enum mpd_parser_result mpd_parser_feed(struct mpd_parser *parser, char *line)
const char * mpd_parser_get_name(const struct mpd_parser *parser)
unsigned mpd_parser_get_at(const struct mpd_parser *parser)
bool mpd_parser_is_discrete(const struct mpd_parser *parser)
struct mpd_parser * mpd_parser_new(void)
void mpd_parser_free(struct mpd_parser *parser)
const char * mpd_parser_get_message(const struct mpd_parser *parser)
const char * mpd_parser_get_value(const struct mpd_parser *parser)
mpd_parser_result
Definition parser.h:12
@ MPD_PARSER_PAIR
Definition parser.h:34
@ MPD_PARSER_MALFORMED
Definition parser.h:16
@ MPD_PARSER_ERROR
Definition parser.h:28
@ MPD_PARSER_SUCCESS
Definition parser.h:22
enum mpd_server_error mpd_parser_get_server_error(const struct mpd_parser *parser)
MPD client library.
mpd_server_error
Definition protocol.h:14