libmpdclient

C library for controlling Music Player Daemon (MPD) over the network.

brewmacoslinux
Try with needOr install directly
Source

About

Library for MPD in the C, C++, and Objective-C languages

Examples

connect to music player daemon and get status$ gcc -o mpd_client myapp.c $(pkg-config --cflags --libs libmpdclient)
build C program that controls MPD remotely$ #include <mpd/client.h> struct mpd_connection *conn = mpd_connection_new("localhost", 6600, 0);
compile C++ application with music player library$ g++ -o player app.cpp -lmpdclient
check library installation and version$ pkg-config --modversion libmpdclient
find music player daemon library headers location$ pkg-config --cflags libmpdclient