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

mpd_const const char* mpd_idle_name ( enum mpd_idle  idle  ) 

Returns the name of the specified idle event.

idle an idle event id
the name, or NULL if that event is not known

Definition at line 58 of file idle.c.

References mpd_idle_name().

Referenced by mpd_idle_name().

      for (unsigned i = 0; idle_names[i] != NULL; ++i)
            if (idle == (enum mpd_idle)(1 << i))
                  return idle_names[i];

      return NULL;

Generated by  Doxygen 1.6.0   Back to index