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

mpd_pure int mpd_async_get_system_error ( const struct mpd_async async  ) 

Returns the error code from the operating system; on most operating systems, this is the errno value. Calling this function is only valid if mpd_async_get_error() returned MPD_ERROR_SYSTEM.

May be 0 if the operating system did not specify an error code.

Definition at line 117 of file async.c.

References mpd_error_info::code, mpd_async::error, mpd_async_get_system_error(), MPD_ERROR_SYSTEM, and mpd_error_info::system.

Referenced by mpd_async_get_system_error().

{
      assert(async != NULL);
      assert(async->error.code == MPD_ERROR_SYSTEM);

      return async->error.system;
}


Generated by  Doxygen 1.6.0   Back to index