XMMS-0.1: XMMS2 client library.

Network.XMMS.Client

Synopsis

Documentation

type Connection = ForeignPtr C_xmmsc_connectionSource

type Result = ForeignPtr C_xmmsc_resultSource

data XMMSCV Source

Constructors

XMMSNothing 
XMMSError 

Fields

xmmsError :: String
 
XMMSInt 

Fields

xmmsInt :: Int
 
XMMSString 

Fields

xmmsString :: String
 
XMMSDict 
XMMSList 

Fields

xmmsList :: [XMMSCV]
 

Instances

data SeekMode Source

Constructors

SeekCur 
SeekSet 

init :: String -> IO ConnectionSource

Initializes a connection. With the coresponding name

connect :: Connection -> String -> IO IntSource

Connects to the XMMS server.

getLastError :: Connection -> IO StringSource

Returns a string that descibes the last error.

quit :: Connection -> IO ResultSource

Tell the server to quit.

broadcastQuit :: Connection -> IO ResultSource

Request the quit broadcast.

userConfigDirGet :: Int -> IO StringSource

Get the absolute path to the user config dir.

The Int parameter is the buffer length and should probably go away...

resultWait :: Result -> IO ()Source

Block for the reply.