libmpdclient 2.25
sticker.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2// Copyright The Music Player Daemon Project
3
11
12#ifndef MPD_STICKER_H
13#define MPD_STICKER_H
14
15#include "compiler.h"
16
17#include <stdbool.h>
18#include <stddef.h>
19
20struct mpd_connection;
21
37
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
70
83bool
84mpd_send_sticker_set(struct mpd_connection *connection, const char *type,
85 const char *uri, const char *name, const char *value);
86
99bool
100mpd_run_sticker_set(struct mpd_connection *connection, const char *type,
101 const char *uri, const char *name, const char *value);
102
115bool
116mpd_send_sticker_inc(struct mpd_connection *connection, const char *type,
117 const char *uri, const char *name, unsigned value);
118
131bool
132mpd_run_sticker_inc(struct mpd_connection *connection, const char *type,
133 const char *uri, const char *name, unsigned value);
134
147bool
148mpd_send_sticker_dec(struct mpd_connection *connection, const char *type,
149 const char *uri, const char *name, unsigned value);
150
163bool
164mpd_run_sticker_dec(struct mpd_connection *connection, const char *type,
165 const char *uri, const char *name, unsigned value);
166
178bool
179mpd_send_sticker_delete(struct mpd_connection *connection, const char *type,
180 const char *uri, const char *name);
181
193bool
194mpd_run_sticker_delete(struct mpd_connection *connection, const char *type,
195 const char *uri, const char *name);
196
208bool
209mpd_send_sticker_get(struct mpd_connection *connection, const char *type,
210 const char *uri, const char *name);
211
223bool
224mpd_send_sticker_list(struct mpd_connection *connection, const char *type,
225 const char *uri);
226
240bool
241mpd_send_sticker_find(struct mpd_connection *connection, const char *type,
242 const char *base_uri, const char *name);
243
255const char *
256mpd_parse_sticker(const char *input, size_t *name_length_r);
257
268mpd_malloc
269struct mpd_pair *
271
277void
278mpd_return_sticker(struct mpd_connection *connection, struct mpd_pair *pair);
279
289bool
291
302bool
304
315bool
316mpd_send_stickernamestypes(struct mpd_connection *connection, const char *type);
317
333bool
334mpd_sticker_search_begin(struct mpd_connection *connection, const char *type,
335 const char *base_uri, const char *name);
336
346bool
348 enum mpd_sticker_operator oper,
349 const char *value);
350
361bool
363 enum mpd_sticker_sort sort, bool descending);
364
376bool
378 unsigned start, unsigned end);
379
388bool
390
400void
402
403#ifdef __cplusplus
404}
405#endif
406
407#endif /* MPD_STICKER_H */
408
mpd_sticker_operator
Definition sticker.h:25
@ MPD_STICKER_OP_EQ_INT
Definition sticker.h:31
@ MPD_STICKER_OP_EQ
Definition sticker.h:28
@ MPD_STICKER_OP_CONTAINS
Definition sticker.h:34
@ MPD_STICKER_OP_GT_INT
Definition sticker.h:32
@ MPD_STICKER_OP_LT
Definition sticker.h:30
@ MPD_STICKER_OP_UNKNOWN
Definition sticker.h:27
@ MPD_STICKER_OP_GT
Definition sticker.h:29
@ MPD_STICKER_OP_UNKOWN
Definition sticker.h:26
@ MPD_STICKER_OP_LT_INT
Definition sticker.h:33
@ MPD_STICKER_OP_STARTS_WITH
Definition sticker.h:35
void mpd_sticker_search_cancel(struct mpd_connection *connection)
bool mpd_run_sticker_set(struct mpd_connection *connection, const char *type, const char *uri, const char *name, const char *value)
bool mpd_send_stickertypes(struct mpd_connection *connection)
bool mpd_sticker_search_add_sort(struct mpd_connection *connection, enum mpd_sticker_sort sort, bool descending)
bool mpd_run_sticker_delete(struct mpd_connection *connection, const char *type, const char *uri, const char *name)
bool mpd_run_sticker_inc(struct mpd_connection *connection, const char *type, const char *uri, const char *name, unsigned value)
bool mpd_send_stickernamestypes(struct mpd_connection *connection, const char *type)
bool mpd_sticker_search_add_value_constraint(struct mpd_connection *connection, enum mpd_sticker_operator oper, const char *value)
bool mpd_send_sticker_get(struct mpd_connection *connection, const char *type, const char *uri, const char *name)
bool mpd_send_sticker_delete(struct mpd_connection *connection, const char *type, const char *uri, const char *name)
bool mpd_send_sticker_find(struct mpd_connection *connection, const char *type, const char *base_uri, const char *name)
struct mpd_pair * mpd_recv_sticker(struct mpd_connection *connection)
bool mpd_run_sticker_dec(struct mpd_connection *connection, const char *type, const char *uri, const char *name, unsigned value)
bool mpd_sticker_search_commit(struct mpd_connection *connection)
bool mpd_sticker_search_add_window(struct mpd_connection *connection, unsigned start, unsigned end)
bool mpd_send_sticker_inc(struct mpd_connection *connection, const char *type, const char *uri, const char *name, unsigned value)
bool mpd_send_stickernames(struct mpd_connection *connection)
bool mpd_sticker_search_begin(struct mpd_connection *connection, const char *type, const char *base_uri, const char *name)
mpd_sticker_sort
Definition sticker.h:41
@ MPD_STICKER_SORT_UNKNOWN
Definition sticker.h:43
@ MPD_STICKER_SORT_VALUE
Definition sticker.h:45
@ MPD_STICKER_SORT_URI
Definition sticker.h:44
@ MPD_STICKER_SORT_VALUE_INT
Definition sticker.h:46
@ MPD_STICKER_SORT_UNKOWN
Definition sticker.h:42
bool mpd_send_sticker_dec(struct mpd_connection *connection, const char *type, const char *uri, const char *name, unsigned value)
bool mpd_send_sticker_set(struct mpd_connection *connection, const char *type, const char *uri, const char *name, const char *value)
void mpd_return_sticker(struct mpd_connection *connection, struct mpd_pair *pair)
const char * mpd_parse_sticker(const char *input, size_t *name_length_r)
bool mpd_send_sticker_list(struct mpd_connection *connection, const char *type, const char *uri)
const char * name
Definition pair.h:18
const char * value
Definition pair.h:21