diff options
-rw-r--r-- | modules/localplay/mpd.controller.php | 28 |
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 |