Logo Search packages:      
Sourcecode: libmpdclient version File versions  Download package

mpd_pure enum mpd_server_error mpd_connection_get_server_error ( const struct mpd_connection connection  ) 

Returns the error code returned from the server. Calling this function is only valid if mpd_connection_get_error() returned MPD_ERROR_SERVER.

Definition at line 47 of file error.c.

References mpd_error_info::code, mpd_connection::error, mpd_connection_get_server_error(), MPD_ERROR_SERVER, and mpd_error_info::server.

Referenced by mpd_connection_get_server_error().

      assert(connection->error.code == MPD_ERROR_SERVER);

      return connection->error.server;

Generated by  Doxygen 1.6.0   Back to index