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

unsigned mpd_recv_update_id ( struct mpd_connection connection  ) 

Receives the id the of the update job which was submitted by mpd_send_update().

connection the connection to MPD
a positive job id on success, 0 on error

Definition at line 70 of file database.c.

References mpd_recv_pair_named(), mpd_recv_update_id(), mpd_return_pair(), and mpd_pair::value.

Referenced by mpd_recv_update_id(), mpd_run_rescan(), and mpd_run_update().

      struct mpd_pair *pair;
      int ret = 0;

      pair = mpd_recv_pair_named(connection, "updating_db");
      if (pair != NULL) {
            ret = atoi(pair->value);
            mpd_return_pair(connection, pair);

      return ret;

Generated by  Doxygen 1.6.0   Back to index