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