-- GENERATED by C->Haskell Compiler, version 0.13.12 (gtk2hs branch) "Bin IO", 27 May 2012 (Haskell)
-- Edit the ORIGNAL .chs file instead!


{-# LINE 1 "./Graphics/UI/Gtk/WebKit/DOM/MediaError.chs" #-}
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
{-# LINE 9 "./Graphics/UI/Gtk/WebKit/DOM/MediaError.chs" #-}
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))