diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-14 23:05:24 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-14 23:05:24 +0000 |
commit | 2c27ae895f99a3b925d37ae91725c400b85aac76 (patch) | |
tree | 17e3895d3754cc6cf68c3bf11de8f86ac1f2d633 /src/mpdclient.h | |
parent | abd01cf323cffaf62e11ab8b008155e339e7f1dc (diff) | |
download | mpd-2c27ae895f99a3b925d37ae91725c400b85aac76.tar.gz mpd-2c27ae895f99a3b925d37ae91725c400b85aac76.tar.xz mpd-2c27ae895f99a3b925d37ae91725c400b85aac76.zip |
Updated error handling
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1492 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/mpdclient.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mpdclient.h b/src/mpdclient.h index 86f1b0ce8..391a5d224 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -91,6 +91,10 @@ gint mpdclient_cmd_delete_playlist(mpdclient_t *c, gchar *filename_utf8); /*** error callbacks *****************************************************/ + +#define IS_ACK_ERROR(n) (n & MPD_ERROR_ACK) +#define GET_ACK_ERROR_CODE(n) ((n & 0xFF00) >> 8) + typedef void (*mpdc_error_cb_t) (mpdclient_t *c, gint error, gchar *msg); void mpdclient_install_error_callback(mpdclient_t *c, mpdc_error_cb_t cb); |