summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-06 06:34:06 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-06 06:34:06 +0000
commit6f95e4f9535c4f4db9a058ec4d4a4dee9d8e3025 (patch)
tree964c91bdbb064dcf45d5d0a5f33f88ad652edd67
parent9ece92a2ef452665a197dbebafcabac1ad8b3b14 (diff)
downloadampache-6f95e4f9535c4f4db9a058ec4d4a4dee9d8e3025.tar.gz
ampache-6f95e4f9535c4f4db9a058ec4d4a4dee9d8e3025.tar.bz2
ampache-6f95e4f9535c4f4db9a058ec4d4a4dee9d8e3025.zip
ok one more tweak to this sucker
-rw-r--r--modules/localplay/mpd.controller.php28
1 files changed, 19 insertions, 9 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php
index 5bb2f992..f6ec4fac 100644
--- a/modules/localplay/mpd.controller.php
+++ b/modules/localplay/mpd.controller.php
@@ -43,19 +43,29 @@ class AmpacheMpd {
/* Do a Require Once On the needed Libraries */
require_once(conf('prefix') . '/modules/mpd/mpd.class.php');
- $map = array();
+ } // AmpacheMpd
+
+
+ /**
+ * function_map
+ * This function returns a named array of the functions
+ * that this player supports and their names in this local
+ * class. This is a REQUIRED function
+ */
+ function function_map() {
- $map['add'] = 'add_songs';
- $map['delete'] = 'delete_songs';
- $map['play'] = 'play';
- $map['stop'] = 'stop';
- $map['get'] = 'get_songs';
- $map['connect'] = 'connect';
+ $map = array();
- return $map;
+ $map['add'] = 'add_songs';
+ $map['delete'] = 'delete_songs';
+ $map['play'] = 'play';
+ $map['stop'] = 'stop';
+ $map['get'] = 'get_songs';
+ $map['connect'] = 'connect';
- } // AmpacheMpd
+ return $map;
+ } // function_map
/**
* preference