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

void mpd_search_cancel ( struct mpd_connection connection  ) 

Cancels the search request before you have called mpd_search_commit(). Call this to clear the current search request.

Parameters:
connection the connection to MPD

Definition at line 292 of file search.c.

References mpd_search_cancel(), and mpd_connection::request.

Referenced by mpd_search_cancel(), and mpd_search_commit().

{
      assert(connection != NULL);

      if (connection->request != NULL) {
            free(connection->request);
            connection->request = NULL;
      }
}


Generated by  Doxygen 1.6.0   Back to index