| connection.h | | connection.h | |
| | | | |
| skipping to change at line 128 | | skipping to change at line 128 | |
| mpd_connection_new_async(struct mpd_async *async, const char *welcome); | | mpd_connection_new_async(struct mpd_async *async, const char *welcome); | |
| | | | |
| /** | | /** | |
| * Close the connection and free all memory. | | * Close the connection and free all memory. | |
| * | | * | |
| * @param connection the connection to MPD | | * @param connection the connection to MPD | |
| */ | | */ | |
| void mpd_connection_free(struct mpd_connection *connection); | | void mpd_connection_free(struct mpd_connection *connection); | |
| | | | |
| /** | | /** | |
|
| | | * Returns the settings which were used to connect to the server. May | |
| | | * be NULL if the settings are not known. | |
| | | */ | |
| | | const struct mpd_settings * | |
| | | mpd_connection_get_settings(const struct mpd_connection *connection); | |
| | | | |
| | | /** | |
| * Sets the timeout for synchronous operations. If the MPD server | | * Sets the timeout for synchronous operations. If the MPD server | |
| * does not send a response during this time span, the operation is | | * does not send a response during this time span, the operation is | |
| * aborted by libmpdclient. | | * aborted by libmpdclient. | |
| * | | * | |
| * The initial value is the one passed to mpd_connection_new(). If | | * The initial value is the one passed to mpd_connection_new(). If | |
| * you have used mpd_connection_new_async(), then the default value is | | * you have used mpd_connection_new_async(), then the default value is | |
| * 30 seconds. | | * 30 seconds. | |
| * | | * | |
| * @param connection the connection to MPD | | * @param connection the connection to MPD | |
| * @param timeout_ms the desired timeout in milliseconds; must not be 0 | | * @param timeout_ms the desired timeout in milliseconds; must not be 0 | |
| | | | |
| skipping to change at line 197 | | skipping to change at line 204 | |
| /** | | /** | |
| * Returns the error code returned from the server. Calling this | | * Returns the error code returned from the server. Calling this | |
| * function is only valid if mpd_connection_get_error() returned | | * function is only valid if mpd_connection_get_error() returned | |
| * #MPD_ERROR_SERVER. | | * #MPD_ERROR_SERVER. | |
| */ | | */ | |
| mpd_pure | | mpd_pure | |
| enum mpd_server_error | | enum mpd_server_error | |
| mpd_connection_get_server_error(const struct mpd_connection *connection); | | mpd_connection_get_server_error(const struct mpd_connection *connection); | |
| | | | |
| /** | | /** | |
|
| | | * Returns the location of the server error, i.e. an index within the | |
| | | * command list. Calling this function is only valid in a command | |
| | | * list response, and if mpd_connection_get_error() returned | |
| | | * #MPD_ERROR_SERVER. | |
| | | */ | |
| | | mpd_pure | |
| | | unsigned | |
| | | mpd_connection_get_server_error_location(const struct mpd_connection *conne | |
| | | ction); | |
| | | | |
| | | /** | |
| * Returns the error code from the operating system; on most operating | | * Returns the error code from the operating system; on most operating | |
| * systems, this is the errno value. Calling this function is only | | * systems, this is the errno value. Calling this function is only | |
| * valid if mpd_connection_get_error() returned #MPD_ERROR_SYSTEM. | | * valid if mpd_connection_get_error() returned #MPD_ERROR_SYSTEM. | |
| * | | * | |
| * May be 0 if the operating system did not specify an error code. | | * May be 0 if the operating system did not specify an error code. | |
| */ | | */ | |
| mpd_pure | | mpd_pure | |
| int | | int | |
| mpd_connection_get_system_error(const struct mpd_connection *connection); | | mpd_connection_get_system_error(const struct mpd_connection *connection); | |
| | | | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 18 lines changed or added | |
|
| player.h | | player.h | |
| | | | |
| skipping to change at line 214 | | skipping to change at line 214 | |
| | | | |
| bool | | bool | |
| mpd_run_mixrampdb(struct mpd_connection *connection, float db); | | mpd_run_mixrampdb(struct mpd_connection *connection, float db); | |
| | | | |
| bool | | bool | |
| mpd_send_mixrampdelay(struct mpd_connection *connection, float seconds); | | mpd_send_mixrampdelay(struct mpd_connection *connection, float seconds); | |
| | | | |
| bool | | bool | |
| mpd_run_mixrampdelay(struct mpd_connection *connection, float seconds); | | mpd_run_mixrampdelay(struct mpd_connection *connection, float seconds); | |
| | | | |
|
| | | bool | |
| | | mpd_send_clearerror(struct mpd_connection *connection); | |
| | | | |
| | | bool | |
| | | mpd_run_clearerror(struct mpd_connection *connection); | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| } | | } | |
| #endif | | #endif | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 6 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 3 | | #define LIBMPDCLIENT_MINOR_VERSION 4 | |
| #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 | |
|