|
98 | 98 | mpd_run_sticker_set(struct mpd_connection *connection, const char *type, |
99 | 99 | const char *uri, const char *name, const char *value); |
100 | 100 |
|
| 101 | +/** |
| 102 | + * Adds or increments a sticker value. |
| 103 | + * |
| 104 | + * @param connection the connection to MPD |
| 105 | + * @param type the object type, e.g. "song" |
| 106 | + * @param uri the URI of the object |
| 107 | + * @param name the name of the sticker |
| 108 | + * @param value the unsigned value to set or increment |
| 109 | + * @return true on success, false on error |
| 110 | + * |
| 111 | + * @since libmpdclient 2.23, MPD 0.24 |
| 112 | + */ |
| 113 | +bool |
| 114 | +mpd_send_sticker_inc(struct mpd_connection *connection, const char *type, |
| 115 | + const char *uri, const char *name, unsigned value); |
| 116 | + |
| 117 | +/** |
| 118 | + * Shortcut for mpd_send_sticker_inc() and mpd_response_finish(). |
| 119 | + * |
| 120 | + * @param connection the connection to MPD |
| 121 | + * @param type the object type, e.g. "song" |
| 122 | + * @param uri the URI of the object |
| 123 | + * @param name the name of the sticker |
| 124 | + * @param value the unsigned value to set or increment |
| 125 | + * @return true on success, false on error |
| 126 | + * |
| 127 | + * @since libmpdclient 2.23, MPD 0.24 |
| 128 | + */ |
| 129 | +bool |
| 130 | +mpd_run_sticker_inc(struct mpd_connection *connection, const char *type, |
| 131 | + const char *uri, const char *name, unsigned value); |
| 132 | + |
| 133 | +/** |
| 134 | + * Adds or decrements a sticker value. |
| 135 | + * |
| 136 | + * @param connection the connection to MPD |
| 137 | + * @param type the object type, e.g. "song" |
| 138 | + * @param uri the URI of the object |
| 139 | + * @param name the name of the sticker |
| 140 | + * @param value the unsigned value to set or increment |
| 141 | + * @return true on success, false on error |
| 142 | + * |
| 143 | + * @since libmpdclient 2.23, MPD 0.24 |
| 144 | + */ |
| 145 | +bool |
| 146 | +mpd_send_sticker_dec(struct mpd_connection *connection, const char *type, |
| 147 | + const char *uri, const char *name, unsigned value); |
| 148 | + |
| 149 | +/** |
| 150 | + * Shortcut for mpd_send_sticker_dec() and mpd_response_finish(). |
| 151 | + * |
| 152 | + * @param connection the connection to MPD |
| 153 | + * @param type the object type, e.g. "song" |
| 154 | + * @param uri the URI of the object |
| 155 | + * @param name the name of the sticker |
| 156 | + * @param value the unsigned value to set or increment |
| 157 | + * @return true on success, false on error |
| 158 | + * |
| 159 | + * @since libmpdclient 2.23, MPD 0.24 |
| 160 | + */ |
| 161 | +bool |
| 162 | +mpd_run_sticker_dec(struct mpd_connection *connection, const char *type, |
| 163 | + const char *uri, const char *name, unsigned value); |
| 164 | + |
101 | 165 | /** |
102 | 166 | * Deletes a sticker value. |
103 | 167 | * |
|
0 commit comments