Permalink
Browse files

moved public headers to include/mpd/

Applications should use the "mpd/" prefix to access libmpdclient's
public headers.
  • Loading branch information...
1 parent c2042ae commit 5d2c92a521db9ec88746ff1c6fc6d38f5d957d37 @MaxKellermann MaxKellermann committed Nov 27, 2008
View
@@ -3,16 +3,26 @@ AUTOMAKE_OPTIONS = foreign 1.9 dist-bzip2
doc_DATA = README
+mpdincludedir = $(includedir)/mpd
+mpdinclude_HEADERS = \
+ include/mpd/client.h \
+ include/mpd/connection.h \
+ include/mpd/idle.h \
+ include/mpd/return_element.h \
+ include/mpd/song.h
+
+AM_CFLAGS += -Iinclude
+
lib_LTLIBRARIES = src/libmpdclient.la
src_libmpdclient_la_SOURCES = \
src/str_pool.c src/str_pool.h \
src/resolver.c src/resolver.h \
- src/connection.c src/connection.h \
- src/return_element.c src/return_element.h \
- src/idle.c src/idle.h \
- src/song.c src/song.h \
- src/libmpdclient.c src/libmpdclient.h
+ src/connection.c \
+ src/return_element.c \
+ src/idle.c \
+ src/song.c \
+ src/libmpdclient.c
src_libmpdclient_la_LDFLAGS = -version-info @LIBMPDCLIENT_LIBTOOL_VERSION@ \
-Wl,--version-script=libmpdclient.ld
@@ -33,8 +33,8 @@
#ifndef LIBMPDCLIENT_H
#define LIBMPDCLIENT_H
-#include "connection.h"
-#include "song.h"
+#include <mpd/connection.h>
+#include <mpd/song.h>
#ifdef WIN32
# define __W32API_USE_DLLIMPORT__ 1
@@ -33,8 +33,9 @@
#ifndef CONNECTION_H
#define CONNECTION_H
+#include <mpd/return_element.h>
+
#include <stdlib.h>
-#include "return_element.h"
enum mpd_ack {
MPD_ACK_ERROR_UNK = -1,
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -30,9 +30,9 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "connection.h"
+#include <mpd/connection.h>
+#include <mpd/idle.h>
#include "resolver.h"
-#include "idle.h"
#include <assert.h>
#include <stdlib.h>
View
@@ -30,7 +30,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "libmpdclient.h"
+#include <mpd/client.h>
#include <stdio.h>
#include <string.h>
View
@@ -30,9 +30,10 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <mpd/idle.h>
+
#include <stdio.h>
#include <string.h>
-#include "idle.h"
static const char *const idle_names[] = {
"database",
View
@@ -30,10 +30,10 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "libmpdclient.h"
+#include <mpd/client.h>
+#include <mpd/return_element.h>
#include "resolver.h"
#include "str_pool.h"
-#include "return_element.h"
#include <assert.h>
#include <errno.h>
View
@@ -30,7 +30,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "return_element.h"
+#include <mpd/return_element.h>
#include "str_pool.h"
mpd_ReturnElement * mpd_newReturnElement(const char * name, const char * value)
View
@@ -30,7 +30,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "song.h"
+#include <mpd/song.h>
#include "str_pool.h"
#include <stdlib.h>

0 comments on commit 5d2c92a

Please sign in to comment.