diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-23 23:00:56 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-23 23:00:56 -0700 |
commit | 34a8e8b5048ca530addc781bfb96721bd23e9704 (patch) | |
tree | 5a24b4d677a287fdf45cf0c44ce39d813fefe161 /libmpd.rb | |
parent | ac1c462f3ced63ff988c52ec14cbd7105d237a3e (diff) | |
download | ruby-libmpd-34a8e8b5048ca530addc781bfb96721bd23e9704.tar.gz ruby-libmpd-34a8e8b5048ca530addc781bfb96721bd23e9704.tar.xz |
The final new file for the time-being.
Diffstat (limited to 'libmpd.rb')
-rw-r--r-- | libmpd.rb | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -5,6 +5,7 @@ # See http://www.gnu.org/licenses/gpl.txt for the full license text. require 'socket' +require 'libmpd/database' require 'libmpd/playbackcontrol' require 'libmpd/playbackoptions' require 'libmpd/playlist' @@ -23,6 +24,7 @@ class FalseClass # :nodoc: end class MPD + include MPDDatabase include MPDPlaybackControl include MPDPlaybackOptions include MPDPlaylist @@ -81,16 +83,6 @@ class MPD return songs end - # Find all songs in database with an exact match. - def find type, what - return split_and_hash send_request 'find %s "%s"' % [type, what] - end - - # Searches the database. - def search type, what - return split_and_hash send_request 'search %s "%s"' % [type, what] - end - private :generate_hash private :get_response private :split_and_hash |