libmpdclient  2.22
neighbor.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: BSD-2-Clause
2 // Copyright The Music Player Daemon Project
3 
10 #ifndef MPD_NEIGHBOR_H
11 #define MPD_NEIGHBOR_H
12 
13 #include "compiler.h"
14 
15 #include <stdbool.h>
16 
17 struct mpd_connection;
18 struct mpd_pair;
19 
26 struct mpd_neighbor;
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
41 mpd_malloc
42 struct mpd_neighbor *
43 mpd_neighbor_begin(const struct mpd_pair *pair);
44 
55 bool
56 mpd_neighbor_feed(struct mpd_neighbor *neighbor, const struct mpd_pair *pair);
57 
64 void
65 mpd_neighbor_free(struct mpd_neighbor *neighbor);
66 
72 mpd_pure
73 const char *
74 mpd_neighbor_get_uri(const struct mpd_neighbor *neighbor);
75 
81 mpd_pure
82 const char *
83 mpd_neighbor_get_display_name(const struct mpd_neighbor *neighbor);
84 
95 bool
96 mpd_send_list_neighbors(struct mpd_connection *connection);
97 
107 mpd_malloc
108 struct mpd_neighbor *
109 mpd_recv_neighbor(struct mpd_connection *connection);
110 
111 #ifdef __cplusplus
112 }
113 #endif
114 
115 #endif
struct mpd_neighbor * mpd_recv_neighbor(struct mpd_connection *connection)
void mpd_neighbor_free(struct mpd_neighbor *neighbor)
const char * mpd_neighbor_get_uri(const struct mpd_neighbor *neighbor)
bool mpd_neighbor_feed(struct mpd_neighbor *neighbor, const struct mpd_pair *pair)
bool mpd_send_list_neighbors(struct mpd_connection *connection)
struct mpd_neighbor * mpd_neighbor_begin(const struct mpd_pair *pair)
Definition: pair.h:16
const char * mpd_neighbor_get_display_name(const struct mpd_neighbor *neighbor)