module Graphics.UI.Gtk.WebKit.DOM.MediaError
(cMEDIA_ERR_ABORTED, cMEDIA_ERR_NETWORK, cMEDIA_ERR_DECODE,
cMEDIA_ERR_SRC_NOT_SUPPORTED, mediaErrorGetCode, MediaError,
MediaErrorClass, castToMediaError, gTypeMediaError, toMediaError)
where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
cMEDIA_ERR_ABORTED = 1
cMEDIA_ERR_NETWORK = 2
cMEDIA_ERR_DECODE = 3
cMEDIA_ERR_SRC_NOT_SUPPORTED = 4
mediaErrorGetCode :: (MediaErrorClass self) => self -> IO Word
mediaErrorGetCode self
= fromIntegral <$>
((\(MediaError arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_media_error_get_code argPtr1) (toMediaError self))
foreign import ccall safe "webkit_dom_media_error_get_code"
webkit_dom_media_error_get_code :: ((Ptr MediaError) -> (IO CUShort))