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

mpd_pure int mpd_async_get_fd ( const struct mpd_async async  ) 

Returns the file descriptor which should be polled by the caller. Do not use the file descriptor for anything except polling! The file descriptor never changes during the lifetime of this mpd_async object.

Definition at line 132 of file async.c.

References mpd_async::fd, and mpd_async_get_fd().

Referenced by mpd_async_get_fd(), and mpd_connection_get_fd().

{
      assert(async != NULL);
      assert(async->fd >= 0);

      return async->fd;
}


Generated by  Doxygen 1.6.0   Back to index