libmpdclient 2.22
mount.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_MOUNT_H
11#define MPD_MOUNT_H
12
13#include "compiler.h"
14
15#include <stdbool.h>
16
17struct mpd_connection;
18struct mpd_pair;
19
25struct mpd_mount;
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
40mpd_malloc
41struct mpd_mount *
42mpd_mount_begin(const struct mpd_pair *pair);
43
54bool
55mpd_mount_feed(struct mpd_mount *mnt, const struct mpd_pair *pair);
56
62void
64
70mpd_pure
71const char *
72mpd_mount_get_uri(const struct mpd_mount *mnt);
73
80mpd_pure
81const char *
83
93bool
95
105mpd_malloc
106struct mpd_mount *
107mpd_recv_mount(struct mpd_connection *connection);
108
119bool
121 const char *uri, const char *storage);
122
133bool
134mpd_run_mount(struct mpd_connection *connection,
135 const char *uri, const char *storage);
136
146bool
147mpd_send_unmount(struct mpd_connection *connection, const char *uri);
148
158bool
159mpd_run_unmount(struct mpd_connection *connection, const char *uri);
160
161#ifdef __cplusplus
162}
163#endif
164
165#endif
struct mpd_mount * mpd_mount_begin(const struct mpd_pair *pair)
const char * mpd_mount_get_uri(const struct mpd_mount *mnt)
struct mpd_mount * mpd_recv_mount(struct mpd_connection *connection)
bool mpd_mount_feed(struct mpd_mount *mnt, const struct mpd_pair *pair)
bool mpd_run_unmount(struct mpd_connection *connection, const char *uri)
bool mpd_send_list_mounts(struct mpd_connection *connection)
bool mpd_run_mount(struct mpd_connection *connection, const char *uri, const char *storage)
bool mpd_send_mount(struct mpd_connection *connection, const char *uri, const char *storage)
const char * mpd_mount_get_storage(const struct mpd_mount *mnt)
bool mpd_send_unmount(struct mpd_connection *connection, const char *uri)
void mpd_mount_free(struct mpd_mount *mount)