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

mpd_pure int mpd_connection_get_system_error ( const struct mpd_connection connection  ) 

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_connection_get_error() returned MPD_ERROR_SYSTEM.

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

Definition at line 55 of file error.c.

References mpd_error_info::code, mpd_connection::error, mpd_connection_get_system_error(), MPD_ERROR_SYSTEM, and mpd_error_info::system.

Referenced by mpd_connection_get_system_error().

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

      return connection->error.system;

Generated by  Doxygen 1.6.0   Back to index