libmpdclient  2.23
recv.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: BSD-2-Clause
2 // Copyright The Music Player Daemon Project
3 
12 #ifndef MPD_RECV_H
13 #define MPD_RECV_H
14 
15 #include "compiler.h"
16 
17 #include <stdbool.h>
18 #include <stddef.h>
19 
20 struct mpd_pair;
21 struct mpd_connection;
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
37 bool
38 mpd_recv_binary(struct mpd_connection *connection, void *data, size_t length);
39 
47 mpd_malloc
48 struct mpd_pair *
49 mpd_recv_pair(struct mpd_connection *connection);
50 
55 mpd_malloc
56 struct mpd_pair *
57 mpd_recv_pair_named(struct mpd_connection *connection, const char *name);
58 
64 void
65 mpd_return_pair(struct mpd_connection *connection, struct mpd_pair *pair);
66 
72 void
73 mpd_enqueue_pair(struct mpd_connection *connection, struct mpd_pair *pair);
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif
const char * name
Definition: pair.h:18
struct mpd_pair * mpd_recv_pair(struct mpd_connection *connection)
bool mpd_recv_binary(struct mpd_connection *connection, void *data, size_t length)
struct mpd_pair * mpd_recv_pair_named(struct mpd_connection *connection, const char *name)
void mpd_return_pair(struct mpd_connection *connection, struct mpd_pair *pair)
Definition: pair.h:16
void mpd_enqueue_pair(struct mpd_connection *connection, struct mpd_pair *pair)