2 * Automatically generated file, see scripts/protocol
7 * This file is part of DisOrder.
8 * Copyright (C) 2010-11 Richard Kettlewell
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef ECLIENT_STUBS_H
24 #define ECLIENT_STUBS_H
25 /** @file lib/client-stubs.h
26 * @brief Generated asynchronous client API
28 * Don't include this file directly - use @ref lib/eclient.h instead.
31 /** @brief Adopt a track
33 * Makes the calling user owner of a randomly picked track.
36 * @param completed Called upon completion
38 * @param v Passed to @p completed
39 * @return 0 if the command was queued successfuly, non-0 on error
41 int disorder_eclient_adopt(disorder_eclient *c, disorder_eclient_no_response *completed, const char *id, void *v);
43 /** @brief Create a user
45 * Create a new user. Requires the 'admin' right. Email addresses etc must be filled in in separate commands.
48 * @param completed Called upon completion
49 * @param user New username
50 * @param password Initial password
51 * @param rights Initial rights (optional)
52 * @param v Passed to @p completed
53 * @return 0 if the command was queued successfuly, non-0 on error
55 int disorder_eclient_adduser(disorder_eclient *c, disorder_eclient_no_response *completed, const char *user, const char *password, const char *rights, void *v);
57 /** @brief List files and directories in a directory
59 * See 'files' and 'dirs' for more specific lists.
62 * @param completed Called upon completion
63 * @param dir Directory to list (optional)
64 * @param re Regexp that results must match (optional)
65 * @param v Passed to @p completed
66 * @return 0 if the command was queued successfuly, non-0 on error
68 int disorder_eclient_allfiles(disorder_eclient *c, disorder_eclient_list_response *completed, const char *dir, const char *re, void *v);
70 /** @brief Delete user
72 * Requires the 'admin' right.
75 * @param completed Called upon completion
76 * @param user User to delete
77 * @param v Passed to @p completed
78 * @return 0 if the command was queued successfuly, non-0 on error
80 int disorder_eclient_deluser(disorder_eclient *c, disorder_eclient_no_response *completed, const char *user, void *v);
82 /** @brief List directories in a directory
87 * @param completed Called upon completion
88 * @param dir Directory to list (optional)
89 * @param re Regexp that results must match (optional)
90 * @param v Passed to @p completed
91 * @return 0 if the command was queued successfuly, non-0 on error
93 int disorder_eclient_dirs(disorder_eclient *c, disorder_eclient_list_response *completed, const char *dir, const char *re, void *v);
95 /** @brief Disable play
97 * Play will stop at the end of the current track, if one is playing. Requires the 'global prefs' right.
100 * @param completed Called upon completion
101 * @param v Passed to @p completed
102 * @return 0 if the command was queued successfuly, non-0 on error
104 int disorder_eclient_disable(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
106 /** @brief Set a user property
108 * With the 'admin' right you can do anything. Otherwise you need the 'userinfo' right and can only set 'email' and 'password'.
111 * @param completed Called upon completion
112 * @param username User to modify
113 * @param property Property name
114 * @param value New property value
115 * @param v Passed to @p completed
116 * @return 0 if the command was queued successfuly, non-0 on error
118 int disorder_eclient_edituser(disorder_eclient *c, disorder_eclient_no_response *completed, const char *username, const char *property, const char *value, void *v);
120 /** @brief Enable play
122 * Requires the 'global prefs' right.
125 * @param completed Called upon completion
126 * @param v Passed to @p completed
127 * @return 0 if the command was queued successfuly, non-0 on error
129 int disorder_eclient_enable(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
131 /** @brief Detect whether play is enabled
136 * @param completed Called upon completion
137 * @param v Passed to @p completed
138 * @return 0 if the command was queued successfuly, non-0 on error
140 int disorder_eclient_enabled(disorder_eclient *c, disorder_eclient_integer_response *completed, void *v);
142 /** @brief Test whether a track exists
147 * @param completed Called upon completion
148 * @param track Track name
149 * @param v Passed to @p completed
150 * @return 0 if the command was queued successfuly, non-0 on error
152 int disorder_eclient_exists(disorder_eclient *c, disorder_eclient_integer_response *completed, const char *track, void *v);
154 /** @brief List files in a directory
159 * @param completed Called upon completion
160 * @param dir Directory to list (optional)
161 * @param re Regexp that results must match (optional)
162 * @param v Passed to @p completed
163 * @return 0 if the command was queued successfuly, non-0 on error
165 int disorder_eclient_files(disorder_eclient *c, disorder_eclient_list_response *completed, const char *dir, const char *re, void *v);
167 /** @brief Get a track preference
169 * If the track does not exist that is an error. If the track exists but the preference does not then a null value is returned.
172 * @param completed Called upon completion
173 * @param track Track name
174 * @param pref Preference name
175 * @param v Passed to @p completed
176 * @return 0 if the command was queued successfuly, non-0 on error
178 int disorder_eclient_get(disorder_eclient *c, disorder_eclient_string_response *completed, const char *track, const char *pref, void *v);
180 /** @brief Get a global preference
182 * If the preference does exist not then a null value is returned.
185 * @param completed Called upon completion
186 * @param pref Global preference name
187 * @param v Passed to @p completed
188 * @return 0 if the command was queued successfuly, non-0 on error
190 int disorder_eclient_get_global(disorder_eclient *c, disorder_eclient_string_response *completed, const char *pref, void *v);
192 /** @brief Get a track's length
194 * If the track does not exist an error is returned.
197 * @param completed Called upon completion
198 * @param track Track name
199 * @param v Passed to @p completed
200 * @return 0 if the command was queued successfuly, non-0 on error
202 int disorder_eclient_length(disorder_eclient *c, disorder_eclient_integer_response *completed, const char *track, void *v);
204 /** @brief Create a login cookie for this user
206 * The cookie may be redeemed via the 'cookie' command
209 * @param completed Called upon completion
210 * @param v Passed to @p completed
211 * @return 0 if the command was queued successfuly, non-0 on error
213 int disorder_eclient_make_cookie(disorder_eclient *c, disorder_eclient_string_response *completed, void *v);
215 /** @brief Move a track
217 * Requires one of the 'move mine', 'move random' or 'move any' rights depending on how the track came to be added to the queue.
220 * @param completed Called upon completion
221 * @param track Track ID or name
222 * @param delta How far to move the track towards the head of the queue
223 * @param v Passed to @p completed
224 * @return 0 if the command was queued successfuly, non-0 on error
226 int disorder_eclient_move(disorder_eclient *c, disorder_eclient_no_response *completed, const char *track, long delta, void *v);
228 /** @brief Move multiple tracks
230 * Requires one of the 'move mine', 'move random' or 'move any' rights depending on how the track came to be added to the queue.
233 * @param completed Called upon completion
234 * @param target Move after this track, or to head if ""
235 * @param ids List of tracks to move by ID
236 * @param nids Length of ids
237 * @param v Passed to @p completed
238 * @return 0 if the command was queued successfuly, non-0 on error
240 int disorder_eclient_moveafter(disorder_eclient *c, disorder_eclient_no_response *completed, const char *target, char **ids, int nids, void *v);
242 /** @brief List recently added tracks
247 * @param completed Called upon completion
248 * @param max Maximum tracks to fetch, or 0 for all available
249 * @param v Passed to @p completed
250 * @return 0 if the command was queued successfuly, non-0 on error
252 int disorder_eclient_new_tracks(disorder_eclient *c, disorder_eclient_list_response *completed, long max, void *v);
254 /** @brief Do nothing
256 * Used as a keepalive. No authentication required.
259 * @param completed Called upon completion
260 * @param v Passed to @p completed
261 * @return 0 if the command was queued successfuly, non-0 on error
263 int disorder_eclient_nop(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
265 /** @brief Get a track name part
267 * If the name part cannot be constructed an empty string is returned.
270 * @param completed Called upon completion
271 * @param track Track name
272 * @param context Context ("sort" or "display")
273 * @param part Name part ("artist", "album" or "title")
274 * @param v Passed to @p completed
275 * @return 0 if the command was queued successfuly, non-0 on error
277 int disorder_eclient_part(disorder_eclient *c, disorder_eclient_string_response *completed, const char *track, const char *context, const char *part, void *v);
279 /** @brief Pause the currently playing track
281 * Requires the 'pause' right.
284 * @param completed Called upon completion
285 * @param v Passed to @p completed
286 * @return 0 if the command was queued successfuly, non-0 on error
288 int disorder_eclient_pause(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
290 /** @brief Play a track
292 * Requires the 'play' right.
295 * @param completed Called upon completion
296 * @param track Track to play
297 * @param v Passed to @p completed
298 * @return 0 if the command was queued successfuly, non-0 on error
300 int disorder_eclient_play(disorder_eclient *c, disorder_eclient_string_response *completed, const char *track, void *v);
302 /** @brief Play multiple tracks
304 * Requires the 'play' right.
307 * @param completed Called upon completion
308 * @param target Insert into queue after this track, or at head if ""
309 * @param tracks List of track names to play
310 * @param ntracks Length of tracks
311 * @param v Passed to @p completed
312 * @return 0 if the command was queued successfuly, non-0 on error
314 int disorder_eclient_playafter(disorder_eclient *c, disorder_eclient_no_response *completed, const char *target, char **tracks, int ntracks, void *v);
316 /** @brief Retrieve the playing track
321 * @param completed Called upon completion
322 * @param v Passed to @p completed
323 * @return 0 if the command was queued successfuly, non-0 on error
325 int disorder_eclient_playing(disorder_eclient *c, disorder_eclient_playing_response *completed, void *v);
327 /** @brief Delete a playlist
329 * Requires the 'play' right and permission to modify the playlist.
332 * @param completed Called upon completion
333 * @param playlist Playlist to delete
334 * @param v Passed to @p completed
335 * @return 0 if the command was queued successfuly, non-0 on error
337 int disorder_eclient_playlist_delete(disorder_eclient *c, disorder_eclient_no_response *completed, const char *playlist, void *v);
339 /** @brief List the contents of a playlist
341 * Requires the 'read' right and oermission to read the playlist.
344 * @param completed Called upon completion
345 * @param playlist Playlist name
346 * @param v Passed to @p completed
347 * @return 0 if the command was queued successfuly, non-0 on error
349 int disorder_eclient_playlist_get(disorder_eclient *c, disorder_eclient_list_response *completed, const char *playlist, void *v);
351 /** @brief Get a playlist's sharing status
353 * Requires the 'read' right and permission to read the playlist.
356 * @param completed Called upon completion
357 * @param playlist Playlist to read
358 * @param v Passed to @p completed
359 * @return 0 if the command was queued successfuly, non-0 on error
361 int disorder_eclient_playlist_get_share(disorder_eclient *c, disorder_eclient_string_response *completed, const char *playlist, void *v);
363 /** @brief Lock a playlist
365 * Requires the 'play' right and permission to modify the playlist. A given connection may lock at most one playlist.
368 * @param completed Called upon completion
369 * @param playlist Playlist to delete
370 * @param v Passed to @p completed
371 * @return 0 if the command was queued successfuly, non-0 on error
373 int disorder_eclient_playlist_lock(disorder_eclient *c, disorder_eclient_no_response *completed, const char *playlist, void *v);
375 /** @brief Set the contents of a playlist
377 * Requires the 'play' right and permission to modify the playlist, which must be locked.
380 * @param completed Called upon completion
381 * @param playlist Playlist to modify
382 * @param tracks New list of tracks for playlist
383 * @param ntracks Length of tracks
384 * @param v Passed to @p completed
385 * @return 0 if the command was queued successfuly, non-0 on error
387 int disorder_eclient_playlist_set(disorder_eclient *c, disorder_eclient_no_response *completed, const char *playlist, char **tracks, int ntracks, void *v);
389 /** @brief Set a playlist's sharing status
391 * Requires the 'play' right and permission to modify the playlist.
394 * @param completed Called upon completion
395 * @param playlist Playlist to modify
396 * @param share New sharing status ("public", "private" or "shared")
397 * @param v Passed to @p completed
398 * @return 0 if the command was queued successfuly, non-0 on error
400 int disorder_eclient_playlist_set_share(disorder_eclient *c, disorder_eclient_no_response *completed, const char *playlist, const char *share, void *v);
402 /** @brief Unlock the locked playlist playlist
404 * The playlist to unlock is implicit in the connection.
407 * @param completed Called upon completion
408 * @param v Passed to @p completed
409 * @return 0 if the command was queued successfuly, non-0 on error
411 int disorder_eclient_playlist_unlock(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
413 /** @brief List playlists
415 * Requires the 'read' right. Only playlists that you have permission to read are returned.
418 * @param completed Called upon completion
419 * @param v Passed to @p completed
420 * @return 0 if the command was queued successfuly, non-0 on error
422 int disorder_eclient_playlists(disorder_eclient *c, disorder_eclient_list_response *completed, void *v);
424 /** @brief List the queue
429 * @param completed Called upon completion
430 * @param v Passed to @p completed
431 * @return 0 if the command was queued successfuly, non-0 on error
433 int disorder_eclient_queue(disorder_eclient *c, disorder_eclient_queue_response *completed, void *v);
435 /** @brief Disable random play
437 * Requires the 'global prefs' right.
440 * @param completed Called upon completion
441 * @param v Passed to @p completed
442 * @return 0 if the command was queued successfuly, non-0 on error
444 int disorder_eclient_random_disable(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
446 /** @brief Enable random play
448 * Requires the 'global prefs' right.
451 * @param completed Called upon completion
452 * @param v Passed to @p completed
453 * @return 0 if the command was queued successfuly, non-0 on error
455 int disorder_eclient_random_enable(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
457 /** @brief Detect whether random play is enabled
459 * Random play counts as enabled even if play is disabled.
462 * @param completed Called upon completion
463 * @param v Passed to @p completed
464 * @return 0 if the command was queued successfuly, non-0 on error
466 int disorder_eclient_random_enabled(disorder_eclient *c, disorder_eclient_integer_response *completed, void *v);
468 /** @brief List recently played tracks
473 * @param completed Called upon completion
474 * @param v Passed to @p completed
475 * @return 0 if the command was queued successfuly, non-0 on error
477 int disorder_eclient_recent(disorder_eclient *c, disorder_eclient_queue_response *completed, void *v);
479 /** @brief Re-read configuraiton file.
481 * Requires the 'admin' right.
484 * @param completed Called upon completion
485 * @param v Passed to @p completed
486 * @return 0 if the command was queued successfuly, non-0 on error
488 int disorder_eclient_reconfigure(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
490 /** @brief Register a new user
492 * Requires the 'register' right which is usually only available to the 'guest' user. Redeem the confirmation string via 'confirm' to complete registration.
495 * @param completed Called upon completion
496 * @param username Requested new username
497 * @param password Requested initial password
498 * @param email New user's email address
499 * @param v Passed to @p completed
500 * @return 0 if the command was queued successfuly, non-0 on error
502 int disorder_eclient_register(disorder_eclient *c, disorder_eclient_string_response *completed, const char *username, const char *password, const char *email, void *v);
504 /** @brief Send a password reminder.
506 * If the user has no valid email address, or no password, or a reminder has been sent too recently, then no reminder will be sent.
509 * @param completed Called upon completion
510 * @param username User to remind
511 * @param v Passed to @p completed
512 * @return 0 if the command was queued successfuly, non-0 on error
514 int disorder_eclient_reminder(disorder_eclient *c, disorder_eclient_no_response *completed, const char *username, void *v);
516 /** @brief Remove a track form the queue.
518 * Requires one of the 'remove mine', 'remove random' or 'remove any' rights depending on how the track came to be added to the queue.
521 * @param completed Called upon completion
523 * @param v Passed to @p completed
524 * @return 0 if the command was queued successfuly, non-0 on error
526 int disorder_eclient_remove(disorder_eclient *c, disorder_eclient_no_response *completed, const char *id, void *v);
528 /** @brief Rescan all collections for new or obsolete tracks.
530 * Requires the 'rescan' right.
533 * @param completed Called upon completion
534 * @param v Passed to @p completed
535 * @return 0 if the command was queued successfuly, non-0 on error
537 int disorder_eclient_rescan(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
539 /** @brief Resolve a track name
541 * Converts aliases to non-alias track names
544 * @param completed Called upon completion
545 * @param track Track name (might be an alias)
546 * @param v Passed to @p completed
547 * @return 0 if the command was queued successfuly, non-0 on error
549 int disorder_eclient_resolve(disorder_eclient *c, disorder_eclient_string_response *completed, const char *track, void *v);
551 /** @brief Resume the currently playing track
553 * Requires the 'pause' right.
556 * @param completed Called upon completion
557 * @param v Passed to @p completed
558 * @return 0 if the command was queued successfuly, non-0 on error
560 int disorder_eclient_resume(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
562 /** @brief Revoke a cookie.
564 * It will not subsequently be possible to log in with the cookie.
567 * @param completed Called upon completion
568 * @param v Passed to @p completed
569 * @return 0 if the command was queued successfuly, non-0 on error
571 int disorder_eclient_revoke(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
573 /** @brief Cancel RTP stream
578 * @param completed Called upon completion
579 * @param v Passed to @p completed
580 * @return 0 if the command was queued successfuly, non-0 on error
582 int disorder_eclient_rtp_cancel(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
584 /** @brief Request a unicast RTP stream
589 * @param completed Called upon completion
590 * @param address Destination address
591 * @param port Destination port number
592 * @param v Passed to @p completed
593 * @return 0 if the command was queued successfuly, non-0 on error
595 int disorder_eclient_rtp_request(disorder_eclient *c, disorder_eclient_no_response *completed, const char *address, const char *port, void *v);
597 /** @brief Terminate the playing track.
599 * Requires one of the 'scratch mine', 'scratch random' or 'scratch any' rights depending on how the track came to be added to the queue.
602 * @param completed Called upon completion
603 * @param id Track ID (optional)
604 * @param v Passed to @p completed
605 * @return 0 if the command was queued successfuly, non-0 on error
607 int disorder_eclient_scratch(disorder_eclient *c, disorder_eclient_no_response *completed, const char *id, void *v);
609 /** @brief Schedule a track to play in the future
614 * @param completed Called upon completion
615 * @param when When to play the track
616 * @param priority Event priority ("normal" or "junk")
617 * @param track Track to play
618 * @param v Passed to @p completed
619 * @return 0 if the command was queued successfuly, non-0 on error
621 int disorder_eclient_schedule_add_play(disorder_eclient *c, disorder_eclient_no_response *completed, time_t when, const char *priority, const char *track, void *v);
623 /** @brief Schedule a global setting to be changed in the future
628 * @param completed Called upon completion
629 * @param when When to change the setting
630 * @param priority Event priority ("normal" or "junk")
631 * @param pref Global preference to set
632 * @param value New value of global preference
633 * @param v Passed to @p completed
634 * @return 0 if the command was queued successfuly, non-0 on error
636 int disorder_eclient_schedule_add_set_global(disorder_eclient *c, disorder_eclient_no_response *completed, time_t when, const char *priority, const char *pref, const char *value, void *v);
638 /** @brief Schedule a global setting to be unset in the future
643 * @param completed Called upon completion
644 * @param when When to change the setting
645 * @param priority Event priority ("normal" or "junk")
646 * @param pref Global preference to set
647 * @param v Passed to @p completed
648 * @return 0 if the command was queued successfuly, non-0 on error
650 int disorder_eclient_schedule_add_unset_global(disorder_eclient *c, disorder_eclient_no_response *completed, time_t when, const char *priority, const char *pref, void *v);
652 /** @brief Delete a scheduled event.
654 * Users can always delete their own scheduled events; with the admin right you can delete any event.
657 * @param completed Called upon completion
658 * @param event ID of event to delete
659 * @param v Passed to @p completed
660 * @return 0 if the command was queued successfuly, non-0 on error
662 int disorder_eclient_schedule_del(disorder_eclient *c, disorder_eclient_no_response *completed, const char *event, void *v);
664 /** @brief List scheduled events
666 * This just lists IDs. Use 'schedule-get' to retrieve more detail
669 * @param completed Called upon completion
670 * @param v Passed to @p completed
671 * @return 0 if the command was queued successfuly, non-0 on error
673 int disorder_eclient_schedule_list(disorder_eclient *c, disorder_eclient_list_response *completed, void *v);
675 /** @brief Search for tracks
677 * Terms are either keywords or tags formatted as 'tag:TAG-NAME'.
680 * @param completed Called upon completion
681 * @param terms List of search terms
682 * @param v Passed to @p completed
683 * @return 0 if the command was queued successfuly, non-0 on error
685 int disorder_eclient_search(disorder_eclient *c, disorder_eclient_list_response *completed, const char *terms, void *v);
687 /** @brief Set a track preference
689 * Requires the 'prefs' right.
692 * @param completed Called upon completion
693 * @param track Track name
694 * @param pref Preference name
695 * @param value New value
696 * @param v Passed to @p completed
697 * @return 0 if the command was queued successfuly, non-0 on error
699 int disorder_eclient_set(disorder_eclient *c, disorder_eclient_no_response *completed, const char *track, const char *pref, const char *value, void *v);
701 /** @brief Set a global preference
703 * Requires the 'global prefs' right.
706 * @param completed Called upon completion
707 * @param pref Preference name
708 * @param value New value
709 * @param v Passed to @p completed
710 * @return 0 if the command was queued successfuly, non-0 on error
712 int disorder_eclient_set_global(disorder_eclient *c, disorder_eclient_no_response *completed, const char *pref, const char *value, void *v);
714 /** @brief Request server shutdown
716 * Requires the 'admin' right.
719 * @param completed Called upon completion
720 * @param v Passed to @p completed
721 * @return 0 if the command was queued successfuly, non-0 on error
723 int disorder_eclient_shutdown(disorder_eclient *c, disorder_eclient_no_response *completed, void *v);
725 /** @brief Get server statistics
727 * The details of what the server reports are not really defined. The returned strings are intended to be printed out one to a line.
730 * @param completed Called upon completion
731 * @param v Passed to @p completed
732 * @return 0 if the command was queued successfuly, non-0 on error
734 int disorder_eclient_stats(disorder_eclient *c, disorder_eclient_list_response *completed, void *v);
736 /** @brief Get a list of known tags
738 * Only tags which apply to at least one track are returned.
741 * @param completed Called upon completion
742 * @param v Passed to @p completed
743 * @return 0 if the command was queued successfuly, non-0 on error
745 int disorder_eclient_tags(disorder_eclient *c, disorder_eclient_list_response *completed, void *v);
747 /** @brief Unset a track preference
749 * Requires the 'prefs' right.
752 * @param completed Called upon completion
753 * @param track Track name
754 * @param pref Preference name
755 * @param v Passed to @p completed
756 * @return 0 if the command was queued successfuly, non-0 on error
758 int disorder_eclient_unset(disorder_eclient *c, disorder_eclient_no_response *completed, const char *track, const char *pref, void *v);
760 /** @brief Set a global preference
762 * Requires the 'global prefs' right.
765 * @param completed Called upon completion
766 * @param pref Preference name
767 * @param v Passed to @p completed
768 * @return 0 if the command was queued successfuly, non-0 on error
770 int disorder_eclient_unset_global(disorder_eclient *c, disorder_eclient_no_response *completed, const char *pref, void *v);
772 /** @brief Get a user property.
774 * If the user does not exist an error is returned, if the user exists but the property does not then a null value is returned.
777 * @param completed Called upon completion
778 * @param username User to read
779 * @param property Property to read
780 * @param v Passed to @p completed
781 * @return 0 if the command was queued successfuly, non-0 on error
783 int disorder_eclient_userinfo(disorder_eclient *c, disorder_eclient_string_response *completed, const char *username, const char *property, void *v);
785 /** @brief Get a list of users
790 * @param completed Called upon completion
791 * @param v Passed to @p completed
792 * @return 0 if the command was queued successfuly, non-0 on error
794 int disorder_eclient_users(disorder_eclient *c, disorder_eclient_list_response *completed, void *v);
796 /** @brief Get the server version
801 * @param completed Called upon completion
802 * @param v Passed to @p completed
803 * @return 0 if the command was queued successfuly, non-0 on error
805 int disorder_eclient_version(disorder_eclient *c, disorder_eclient_string_response *completed, void *v);
807 /** @brief Set the volume
812 * @param completed Called upon completion
813 * @param left Left channel volume
814 * @param right Right channel volume
815 * @param v Passed to @p completed
816 * @return 0 if the command was queued successfuly, non-0 on error
818 int disorder_eclient_set_volume(disorder_eclient *c, disorder_eclient_no_response *completed, long left, long right, void *v);
820 /** @brief Get the volume
825 * @param completed Called upon completion
826 * @param v Passed to @p completed
827 * @return 0 if the command was queued successfuly, non-0 on error
829 int disorder_eclient_get_volume(disorder_eclient *c, disorder_eclient_pair_integer_response *completed, void *v);