title: How to add a file to the playlist of the mpd (Music Player Daemon)?
body: <p>I wonder what I'm doing wrong?<br>
  I want to add a file to the mpd playlist with C.
  The connection works and I can play a file, which I manually put in Gnome Music Player Client for example with:</p>
  
  <pre><code>mpd_send_play(conn);
  </code></pre>
  
  <p>but adding the file within a C code results in an error.</p>
  
  <p>Thanks for any help?</p>
  
  <pre><code>const char *path = "/home/user/foo.mp3";
  mpd_send_add(conn,path);
  </code></pre>