Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renamed return_element.h to pair.h

The mpd_return_element struct is just a struct holding a name-value
pair.
  • Loading branch information...
commit 6b47d008b79f0a7c807d9236448629d4834618e6 1 parent b0a7101
@MaxKellermann MaxKellermann authored
View
4 Makefile.am
@@ -19,7 +19,7 @@ mpdinclude_HEADERS = \
include/mpd/stats.h \
include/mpd/tag.h \
include/mpd/output.h \
- include/mpd/return_element.h \
+ include/mpd/pair.h \
include/mpd/song.h
AM_CPPFLAGS += -I$(srcdir)/include
@@ -35,7 +35,7 @@ src_libmpdclient_la_SOURCES = \
src/connection.c \
src/directory.c \
src/output.c \
- src/return_element.c \
+ src/pair.c \
src/entity.c \
src/idle.c \
src/send.c \
View
1  include/mpd/client.h
@@ -39,6 +39,7 @@
#include <mpd/song.h>
#include <mpd/directory.h>
#include <mpd/tag.h>
+#include <mpd/pair.h>
#ifdef WIN32
# define __W32API_USE_DLLIMPORT__ 1
View
1  include/mpd/connection.h
@@ -35,7 +35,6 @@
#include <mpd/protocol.h>
#include <mpd/error.h>
-#include <mpd/return_element.h>
#include <stdlib.h>
View
8 include/mpd/return_element.h → include/mpd/pair.h
@@ -1,5 +1,5 @@
/* libmpdclient
- (c) 2003-2008 The Music Player Daemon Project
+ (c) 2003-2009 The Music Player Daemon Project
This project's homepage is: http://www.musicpd.org
Redistribution and use in source and binary forms, with or without
@@ -30,10 +30,8 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MPD_RETURN_ELEMENT_H
-#define MPD_RETURN_ELEMENT_H
-
-#include <stdlib.h>
+#ifndef LIBMPDCLIENT_PAIR_H
+#define LIBMPDCLIENT_PAIR_H
/* internal stuff don't touch this struct */
struct mpd_return_element {
View
1  src/connection.c
@@ -33,6 +33,7 @@
#include "internal.h"
#include <mpd/connection.h>
#include <mpd/idle.h>
+#include <mpd/pair.h>
#include "resolver.h"
#include <assert.h>
View
1  src/idle.c
@@ -31,6 +31,7 @@
*/
#include <mpd/idle.h>
+#include <mpd/pair.h>
#include "internal.h"
#include <stdio.h>
View
1  src/libmpdclient.c
@@ -31,7 +31,6 @@
*/
#include <mpd/client.h>
-#include <mpd/return_element.h>
#include "internal.h"
#include "resolver.h"
#include "str_pool.h"
View
1  src/output.c
@@ -32,6 +32,7 @@
#include <mpd/output.h>
#include <mpd/connection.h>
+#include <mpd/pair.h>
#include "internal.h"
#include <limits.h>
View
6 src/return_element.c → src/pair.c
@@ -1,5 +1,5 @@
/* libmpdclient
- (c) 2003-2008 The Music Player Daemon Project
+ (c) 2003-2009 The Music Player Daemon Project
This project's homepage is: http://www.musicpd.org
Redistribution and use in source and binary forms, with or without
@@ -30,9 +30,11 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <mpd/return_element.h>
+#include <mpd/pair.h>
#include "str_pool.h"
+#include <stdlib.h>
+
struct mpd_return_element *
mpd_newReturnElement(const char *name, const char *value)
{
View
1  src/stats.c
@@ -31,6 +31,7 @@
*/
#include <mpd/stats.h>
+#include <mpd/pair.h>
#include "internal.h"
#include <stdlib.h>
View
1  src/status.c
@@ -31,6 +31,7 @@
*/
#include <mpd/status.h>
+#include <mpd/pair.h>
#include "internal.h"
#include <stdlib.h>
Please sign in to comment.
Something went wrong with that request. Please try again.