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

mpd_pure enum mpd_error mpd_async_get_error ( const struct mpd_async async  ) 

After an error has occurred, this function returns the error code. If no error has occurred, it returns MPD_ERROR_SUCCESS.

Definition at line 101 of file async.c.

References mpd_error_info::code, mpd_async::error, and mpd_async_get_error().

Referenced by mpd_async_get_error(), mpd_sync_flush(), mpd_sync_recv_line(), and mpd_sync_send_command_v().

{
      assert(async != NULL);

      return async->error.code;
}


Generated by  Doxygen 1.6.0   Back to index