Network.XMMS.Client
- type Connection = ForeignPtr C_xmmsc_connection
- type Result = ForeignPtr C_xmmsc_result
- data XMMSCV
- data SeekMode
- init :: String -> IO Connection
- connect :: Connection -> String -> IO Int
- getLastError :: Connection -> IO String
- quit :: Connection -> IO Result
- broadcastQuit :: Connection -> IO Result
- userConfigDirGet :: Int -> IO String
- resultWait :: Result -> IO ()
- propdictToDict :: Map String XMMSCV -> Map String XMMSCV
- resultGetValue :: Result -> IO XMMSCV
- resultNotifierSet :: Result -> (XMMSCV -> IO Bool) -> IO ()
- resultGetConnection :: Result -> IO Connection
Documentation
type Connection = ForeignPtr C_xmmsc_connectionSource
type Result = ForeignPtr C_xmmsc_resultSource
Constructors
XMMSNothing | |
XMMSError | |
XMMSInt | |
XMMSString | |
Fields
| |
XMMSDict | |
XMMSList | |
init :: String -> IO ConnectionSource
Initializes a connection. With the coresponding name
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.
resultGetValue :: Result -> IO XMMSCVSource