client.h | client.h | |||
---|---|---|---|---|
skipping to change at line 56 | skipping to change at line 56 | |||
#define MPD_CLIENT_H | #define MPD_CLIENT_H | |||
#include <mpd/audio_format.h> | #include <mpd/audio_format.h> | |||
#include <mpd/capabilities.h> | #include <mpd/capabilities.h> | |||
#include <mpd/connection.h> | #include <mpd/connection.h> | |||
#include <mpd/database.h> | #include <mpd/database.h> | |||
#include <mpd/directory.h> | #include <mpd/directory.h> | |||
#include <mpd/entity.h> | #include <mpd/entity.h> | |||
#include <mpd/idle.h> | #include <mpd/idle.h> | |||
#include <mpd/list.h> | #include <mpd/list.h> | |||
#include <mpd/message.h> | ||||
#include <mpd/mixer.h> | #include <mpd/mixer.h> | |||
#include <mpd/output.h> | #include <mpd/output.h> | |||
#include <mpd/pair.h> | #include <mpd/pair.h> | |||
#include <mpd/password.h> | #include <mpd/password.h> | |||
#include <mpd/player.h> | #include <mpd/player.h> | |||
#include <mpd/playlist.h> | #include <mpd/playlist.h> | |||
#include <mpd/queue.h> | #include <mpd/queue.h> | |||
#include <mpd/recv.h> | #include <mpd/recv.h> | |||
#include <mpd/response.h> | #include <mpd/response.h> | |||
#include <mpd/search.h> | #include <mpd/search.h> | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||
idle.h | idle.h | |||
---|---|---|---|---|
skipping to change at line 87 | skipping to change at line 87 | |||
/** a database update has started or finished. */ | /** a database update has started or finished. */ | |||
MPD_IDLE_UPDATE = 0x80, | MPD_IDLE_UPDATE = 0x80, | |||
/** a sticker has been modified. */ | /** a sticker has been modified. */ | |||
MPD_IDLE_STICKER = 0x100, | MPD_IDLE_STICKER = 0x100, | |||
/** a client has subscribed or unsubscribed to/from a channel */ | /** a client has subscribed or unsubscribed to/from a channel */ | |||
MPD_IDLE_SUBSCRIPTION = 0x200, | MPD_IDLE_SUBSCRIPTION = 0x200, | |||
/** a message on the subscribed channel was receivedd */ | /** a message on the subscribed channel was received */ | |||
MPD_IDLE_MESSAGE = 0x400, | MPD_IDLE_MESSAGE = 0x400, | |||
}; | }; | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/** | /** | |||
* Returns the name of the specified idle event. | * Returns the name of the specified idle event. | |||
* | * | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
message.h | message.h | |||
---|---|---|---|---|
skipping to change at line 44 | skipping to change at line 44 | |||
#ifndef MPD_MESSAGE_H | #ifndef MPD_MESSAGE_H | |||
#define MPD_MESSAGE_H | #define MPD_MESSAGE_H | |||
#include <mpd/recv.h> | #include <mpd/recv.h> | |||
#include <mpd/compiler.h> | #include <mpd/compiler.h> | |||
#include <stdbool.h> | #include <stdbool.h> | |||
struct mpd_pair; | struct mpd_pair; | |||
/** | ||||
* \struct mpd_message | ||||
*/ | ||||
struct mpd_message; | struct mpd_message; | |||
struct mpd_connection; | struct mpd_connection; | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/** | /** | |||
* Begins parsing a new message. | * Begins parsing a new message. | |||
* | * | |||
skipping to change at line 162 | skipping to change at line 165 | |||
* @return true on success | * @return true on success | |||
*/ | */ | |||
bool | bool | |||
mpd_run_send_message(struct mpd_connection *connection, | mpd_run_send_message(struct mpd_connection *connection, | |||
const char *channel, const char *text); | const char *channel, const char *text); | |||
/** | /** | |||
* Sends the "readmessages" command: send a message to a channel. | * Sends the "readmessages" command: send a message to a channel. | |||
* | * | |||
* @param connection the connection to MPD | * @param connection the connection to MPD | |||
* @param channel the channel name | ||||
* @param message the message text | ||||
* @return true on success | * @return true on success | |||
*/ | */ | |||
bool | bool | |||
mpd_send_read_messages(struct mpd_connection *connection); | mpd_send_read_messages(struct mpd_connection *connection); | |||
/** | /** | |||
* Reads the next mpd_message from the MPD response. Free the return | * Reads the next mpd_message from the MPD response. Free the return | |||
* value with mpd_message_free(). | * value with mpd_message_free(). | |||
* | * | |||
* @return a mpd_message object on success, NULL on error or | * @return a mpd_message object on success, NULL on error or | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added | |||
output.h | output.h | |||
---|---|---|---|---|
skipping to change at line 83 | skipping to change at line 83 | |||
* #mpd_output object. | * #mpd_output object. | |||
* | * | |||
* @return true if the pair was parsed and added to the output (or if | * @return true if the pair was parsed and added to the output (or if | |||
* the pair was not understood and ignored), false if this pair is the | * the pair was not understood and ignored), false if this pair is the | |||
* beginning of the next output | * beginning of the next output | |||
*/ | */ | |||
bool | bool | |||
mpd_output_feed(struct mpd_output *output, const struct mpd_pair *pair); | mpd_output_feed(struct mpd_output *output, const struct mpd_pair *pair); | |||
/** | /** | |||
* Frees a mpd_output object returned from mpd_output_get_next(). | * Frees a mpd_output object returned from mpd_recv_output(). | |||
*/ | */ | |||
void | void | |||
mpd_output_free(struct mpd_output *output); | mpd_output_free(struct mpd_output *output); | |||
/** | /** | |||
* @return the id of the specified #mpd_output object | * @return the id of the specified #mpd_output object | |||
*/ | */ | |||
mpd_pure | mpd_pure | |||
unsigned | unsigned | |||
mpd_output_get_id(const struct mpd_output *output); | mpd_output_get_id(const struct mpd_output *output); | |||
skipping to change at line 110 | skipping to change at line 110 | |||
mpd_output_get_name(const struct mpd_output *output); | mpd_output_get_name(const struct mpd_output *output); | |||
/** | /** | |||
* @return true if this output is enabled | * @return true if this output is enabled | |||
*/ | */ | |||
mpd_pure | mpd_pure | |||
bool | bool | |||
mpd_output_get_enabled(const struct mpd_output *output); | mpd_output_get_enabled(const struct mpd_output *output); | |||
/** | /** | |||
* Sends the "outputs" command to MPD. Call mpd_output_get_next() to | * Sends the "outputs" command to MPD. Call mpd_recv_output() to | |||
* read the response. | * read the response. | |||
* | * | |||
* @param connection A valid and connected mpd_connection. | * @param connection A valid and connected mpd_connection. | |||
* @return true on success | * @return true on success | |||
*/ | */ | |||
bool | bool | |||
mpd_send_outputs(struct mpd_connection *connection); | mpd_send_outputs(struct mpd_connection *connection); | |||
/** | /** | |||
* Reads the next mpd_output from the MPD response. Free the return | * Reads the next mpd_output from the MPD response. Free the return | |||
skipping to change at line 135 | skipping to change at line 135 | |||
*/ | */ | |||
mpd_malloc | mpd_malloc | |||
struct mpd_output * | struct mpd_output * | |||
mpd_recv_output(struct mpd_connection *connection); | mpd_recv_output(struct mpd_connection *connection); | |||
/** | /** | |||
* Sends the "enableoutput" command to MPD. | * Sends the "enableoutput" command to MPD. | |||
* | * | |||
* @param connection A valid and connected mpd_connection. | * @param connection A valid and connected mpd_connection. | |||
* @param output_id an identifier for the output device (see | * @param output_id an identifier for the output device (see | |||
* mpd_output_get_next()) | * mpd_recv_output()) | |||
* @return true on success | * @return true on success | |||
*/ | */ | |||
bool | bool | |||
mpd_send_enable_output(struct mpd_connection *connection, unsigned output_i d); | mpd_send_enable_output(struct mpd_connection *connection, unsigned output_i d); | |||
/** | /** | |||
* Shortcut for mpd_send_enable_output() and mpd_response_finish(). | * Shortcut for mpd_send_enable_output() and mpd_response_finish(). | |||
* | * | |||
* @param connection A valid and connected mpd_connection. | * @param connection A valid and connected mpd_connection. | |||
* @param output_id an identifier for the output device (see | * @param output_id an identifier for the output device (see | |||
* mpd_output_get_next()) | * mpd_recv_output()) | |||
* @return true on success | * @return true on success | |||
*/ | */ | |||
bool | bool | |||
mpd_run_enable_output(struct mpd_connection *connection, unsigned output_id ); | mpd_run_enable_output(struct mpd_connection *connection, unsigned output_id ); | |||
/** | /** | |||
* Sends the "disableoutput" command to MPD. | * Sends the "disableoutput" command to MPD. | |||
* | * | |||
* @param connection A valid and connected mpd_connection. | * @param connection A valid and connected mpd_connection. | |||
* @param output_id an identifier for the output device (see | * @param output_id an identifier for the output device (see | |||
* mpd_output_get_next()) | * mpd_recv_output()) | |||
* @return true on success | * @return true on success | |||
*/ | */ | |||
bool | bool | |||
mpd_send_disable_output(struct mpd_connection *connection, unsigned output_ id); | mpd_send_disable_output(struct mpd_connection *connection, unsigned output_ id); | |||
/** | /** | |||
* Shortcut for mpd_send_disable_output() and mpd_response_finish(). | * Shortcut for mpd_send_disable_output() and mpd_response_finish(). | |||
* | * | |||
* @param connection A valid and connected mpd_connection. | * @param connection A valid and connected mpd_connection. | |||
* @param output_id an identifier for the output device (see | * @param output_id an identifier for the output device (see | |||
* mpd_output_get_next()) | * mpd_recv_output()) | |||
* @return true on success | * @return true on success | |||
*/ | */ | |||
bool | bool | |||
mpd_run_disable_output(struct mpd_connection *connection, unsigned output_i d); | mpd_run_disable_output(struct mpd_connection *connection, unsigned output_i d); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 6 change blocks. | ||||
6 lines changed or deleted | 6 lines changed or added | |||
queue.h | queue.h | |||
---|---|---|---|---|
skipping to change at line 433 | skipping to change at line 433 | |||
/** | /** | |||
* Shortcut for mpd_send_swap_id() and mpd_response_finish(). | * Shortcut for mpd_send_swap_id() and mpd_response_finish(). | |||
* | * | |||
* @param connection the connection to MPD | * @param connection the connection to MPD | |||
* @param id1 the id of one song | * @param id1 the id of one song | |||
* @param id2 the id of the other song | * @param id2 the id of the other song | |||
*/ | */ | |||
bool | bool | |||
mpd_run_swap_id(struct mpd_connection *connection, unsigned id1, unsigned i d2); | mpd_run_swap_id(struct mpd_connection *connection, unsigned id1, unsigned i d2); | |||
/** | ||||
* Change the priority of the specified song. | ||||
* | ||||
* @param connection the connection to MPD | ||||
* @param priority a number between 0 and 255 | ||||
* @param position the position of the song | ||||
*/ | ||||
bool | ||||
mpd_send_prio(struct mpd_connection *connection, int priority, | ||||
unsigned position); | ||||
/** | ||||
* Shortcut for mpd_send_prio() and mpd_response_finish(). | ||||
* | ||||
* @param connection the connection to MPD | ||||
* @param priority a number between 0 and 255 | ||||
* @param start the start position of the range (including) | ||||
* @param end the end position of the range (excluding) | ||||
*/ | ||||
bool | ||||
mpd_run_prio(struct mpd_connection *connection, int priority, | ||||
unsigned position); | ||||
/** | ||||
* Change the priority of a song range. | ||||
* | ||||
* @param connection the connection to MPD | ||||
* @param priority a number between 0 and 255 | ||||
* @param position the position of the song | ||||
*/ | ||||
bool | ||||
mpd_send_prio_range(struct mpd_connection *connection, int priority, | ||||
unsigned start, unsigned end); | ||||
/** | ||||
* Shortcut for mpd_send_prio_range() and mpd_response_finish(). | ||||
* | ||||
* @param connection the connection to MPD | ||||
* @param priority a number between 0 and 255 | ||||
* @param position the position of the song | ||||
*/ | ||||
bool | ||||
mpd_run_prio_range(struct mpd_connection *connection, int priority, | ||||
unsigned start, unsigned end); | ||||
/** | ||||
* Change the priority of the specified song. | ||||
* | ||||
* @param connection the connection to MPD | ||||
* @param priority a number between 0 and 255 | ||||
* @param id the id of the song | ||||
*/ | ||||
bool | ||||
mpd_send_prio_id(struct mpd_connection *connection, int priority, | ||||
unsigned id); | ||||
/** | ||||
* Shortcut for mpd_send_prio_id() and mpd_response_finish(). | ||||
* | ||||
* @param connection the connection to MPD | ||||
* @param priority a number between 0 and 255 | ||||
* @param id the id of the song | ||||
*/ | ||||
bool | ||||
mpd_run_prio_id(struct mpd_connection *connection, int priority, | ||||
unsigned id); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 67 lines changed or added | |||
settings.h | settings.h | |||
---|---|---|---|---|
skipping to change at line 44 | skipping to change at line 44 | |||
* | * | |||
* Do not include this header directly. Use mpd/client.h instead. | * Do not include this header directly. Use mpd/client.h instead. | |||
*/ | */ | |||
#ifndef MPD_SETTINGS_H | #ifndef MPD_SETTINGS_H | |||
#define MPD_SETTINGS_H | #define MPD_SETTINGS_H | |||
#include <stdbool.h> | #include <stdbool.h> | |||
/** | /** | |||
* \struct mpd_settings | ||||
* | ||||
* An object which describes configurable connection settings. | * An object which describes configurable connection settings. | |||
*/ | */ | |||
struct mpd_settings; | struct mpd_settings; | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/** | /** | |||
* Creates a new #mpd_settings object. The values which are not | * Creates a new #mpd_settings object. The values which are not | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||
version.h | version.h | |||
---|---|---|---|---|
skipping to change at line 39 | skipping to change at line 39 | |||
/*! \file | /*! \file | |||
* \brief MPD client library | * \brief MPD client library | |||
* | * | |||
* Do not include this header directly. Use mpd/client.h instead. | * Do not include this header directly. Use mpd/client.h instead. | |||
*/ | */ | |||
#ifndef MPD_VERSION_H | #ifndef MPD_VERSION_H | |||
#define MPD_VERSION_H | #define MPD_VERSION_H | |||
#define LIBMPDCLIENT_MAJOR_VERSION 2 | #define LIBMPDCLIENT_MAJOR_VERSION 2 | |||
#define LIBMPDCLIENT_MINOR_VERSION 5 | #define LIBMPDCLIENT_MINOR_VERSION 6 | |||
#define LIBMPDCLIENT_PATCH_VERSION 0 | #define LIBMPDCLIENT_PATCH_VERSION 0 | |||
/** | /** | |||
* Preprocessor macro which allows you to check which version of | * Preprocessor macro which allows you to check which version of | |||
* libmpdclient you are compiling with. It can be used in | * libmpdclient you are compiling with. It can be used in | |||
* preprocessor directives. | * preprocessor directives. | |||
* | * | |||
* @return true if this libmpdclient version equals or is newer than | * @return true if this libmpdclient version equals or is newer than | |||
* the specified version number | * the specified version number | |||
* @since libmpdclient 2.1 | * @since libmpdclient 2.1 | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||