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
17struct mpd_connection;
18struct mpd_pair;
19
26struct mpd_neighbor;
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
41mpd_malloc
42struct mpd_neighbor *
43mpd_neighbor_begin(const struct mpd_pair *pair);
44
55bool
56mpd_neighbor_feed(struct mpd_neighbor *neighbor, const struct mpd_pair *pair);
57
64void
66
72mpd_pure
73const char *
74mpd_neighbor_get_uri(const struct mpd_neighbor *neighbor);
75
81mpd_pure
82const char *
84
95bool
97
107mpd_malloc
108struct mpd_neighbor *
110
111#ifdef __cplusplus
112}
113#endif
114
115#endif
struct mpd_neighbor * mpd_neighbor_begin(const struct mpd_pair *pair)
const char * mpd_neighbor_get_display_name(const struct mpd_neighbor *neighbor)
void mpd_neighbor_free(struct mpd_neighbor *neighbor)
bool mpd_send_list_neighbors(struct mpd_connection *connection)
const char * mpd_neighbor_get_uri(const struct mpd_neighbor *neighbor)
struct mpd_neighbor * mpd_recv_neighbor(struct mpd_connection *connection)
bool mpd_neighbor_feed(struct mpd_neighbor *neighbor, const struct mpd_pair *pair)