Permalink
Browse files

Update database to use new global connection object.

  • Loading branch information...
1 parent 4340934 commit 5c40d4d0fbaef521426f167c2853c1a4a5a24594 Albin Stjerna committed Oct 3, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/clj_mpd/database.clj
@@ -8,12 +8,13 @@
(ns ^{:author "Jasper Lievisse Adriaanse"
:doc "Database related functions for clj-mpd"}
- clj-mpd.database)
+ clj-mpd.database
+ (:require clj-mpd.core))
(defn create-database
"Instantiate an MPDDatabase object."
[mpd]
- (.getMPDDatabase mpd))
+ (.getMPDDatabase clj-mpd.core/*mpd-connection*))
(defn list-saved-playlists
"List all playlists saved in the database. Return as seq-ed List<MPDSavedPlaylist>."

0 comments on commit 5c40d4d

Please sign in to comment.