{-# LINE 1 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}

{-# LINE 2 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}

{-# LINE 3 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}

-- | <http://library.gnome.org/devel/glib/stable/glib-Asynchronous-Queues.html>

module Bindings.GLib.CoreApplicationSupport.AsynchronousQueues where
import Foreign.Ptr (Ptr,FunPtr,plusPtr)
import Foreign.Ptr (wordPtrToPtr,castPtrToFunPtr)
import Foreign.Storable
import Foreign.C.Types
import Foreign.C.String (CString,CStringLen,CWString,CWStringLen)
import Foreign.Marshal.Alloc (alloca)
import Foreign.Marshal.Array (peekArray,pokeArray)
import Data.Int
import Data.Word

{-# LINE 8 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
import Bindings.GLib.Fundamentals
import Bindings.GLib.Utilities.DateAndTimeFunctions
import Bindings.GLib.DataTypes.DoublyLinkedLists
import Bindings.GLib.DataTypes.Datasets

data C'GAsyncQueue = C'GAsyncQueue

{-# LINE 14 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}

foreign import ccall "g_async_queue_new" c'g_async_queue_new
  :: IO (Ptr C'GAsyncQueue)
foreign import ccall "&g_async_queue_new" p'g_async_queue_new
  :: FunPtr (IO (Ptr C'GAsyncQueue))

{-# LINE 16 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_new_full" c'g_async_queue_new_full
  :: C'GDestroyNotify -> IO (Ptr C'GAsyncQueue)
foreign import ccall "&g_async_queue_new_full" p'g_async_queue_new_full
  :: FunPtr (C'GDestroyNotify -> IO (Ptr C'GAsyncQueue))

{-# LINE 17 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_ref" c'g_async_queue_ref
  :: Ptr C'GAsyncQueue -> IO (Ptr C'GAsyncQueue)
foreign import ccall "&g_async_queue_ref" p'g_async_queue_ref
  :: FunPtr (Ptr C'GAsyncQueue -> IO (Ptr C'GAsyncQueue))

{-# LINE 18 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_unref" c'g_async_queue_unref
  :: Ptr C'GAsyncQueue -> IO ()
foreign import ccall "&g_async_queue_unref" p'g_async_queue_unref
  :: FunPtr (Ptr C'GAsyncQueue -> IO ())

{-# LINE 19 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_push" c'g_async_queue_push
  :: Ptr C'GAsyncQueue -> C'gpointer -> IO ()
foreign import ccall "&g_async_queue_push" p'g_async_queue_push
  :: FunPtr (Ptr C'GAsyncQueue -> C'gpointer -> IO ())

{-# LINE 20 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_push_sorted" c'g_async_queue_push_sorted
  :: Ptr C'GAsyncQueue -> C'gpointer -> C'GCompareDataFunc -> C'gpointer -> IO ()
foreign import ccall "&g_async_queue_push_sorted" p'g_async_queue_push_sorted
  :: FunPtr (Ptr C'GAsyncQueue -> C'gpointer -> C'GCompareDataFunc -> C'gpointer -> IO ())

{-# LINE 21 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_pop" c'g_async_queue_pop
  :: Ptr C'GAsyncQueue -> IO C'gpointer
foreign import ccall "&g_async_queue_pop" p'g_async_queue_pop
  :: FunPtr (Ptr C'GAsyncQueue -> IO C'gpointer)

{-# LINE 22 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_try_pop" c'g_async_queue_try_pop
  :: Ptr C'GAsyncQueue -> IO C'gpointer
foreign import ccall "&g_async_queue_try_pop" p'g_async_queue_try_pop
  :: FunPtr (Ptr C'GAsyncQueue -> IO C'gpointer)

{-# LINE 23 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_timed_pop" c'g_async_queue_timed_pop
  :: Ptr C'GAsyncQueue -> Ptr C'GTimeVal -> IO C'gpointer
foreign import ccall "&g_async_queue_timed_pop" p'g_async_queue_timed_pop
  :: FunPtr (Ptr C'GAsyncQueue -> Ptr C'GTimeVal -> IO C'gpointer)

{-# LINE 24 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_length" c'g_async_queue_length
  :: Ptr C'GAsyncQueue -> IO C'gint
foreign import ccall "&g_async_queue_length" p'g_async_queue_length
  :: FunPtr (Ptr C'GAsyncQueue -> IO C'gint)

{-# LINE 25 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_sort" c'g_async_queue_sort
  :: Ptr C'GAsyncQueue -> C'GCompareDataFunc -> C'gpointer -> IO ()
foreign import ccall "&g_async_queue_sort" p'g_async_queue_sort
  :: FunPtr (Ptr C'GAsyncQueue -> C'GCompareDataFunc -> C'gpointer -> IO ())

{-# LINE 26 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}

foreign import ccall "g_async_queue_lock" c'g_async_queue_lock
  :: Ptr C'GAsyncQueue -> IO ()
foreign import ccall "&g_async_queue_lock" p'g_async_queue_lock
  :: FunPtr (Ptr C'GAsyncQueue -> IO ())

{-# LINE 28 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_unlock" c'g_async_queue_unlock
  :: Ptr C'GAsyncQueue -> IO ()
foreign import ccall "&g_async_queue_unlock" p'g_async_queue_unlock
  :: FunPtr (Ptr C'GAsyncQueue -> IO ())

{-# LINE 29 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_push_unlocked" c'g_async_queue_push_unlocked
  :: Ptr C'GAsyncQueue -> C'gpointer -> IO ()
foreign import ccall "&g_async_queue_push_unlocked" p'g_async_queue_push_unlocked
  :: FunPtr (Ptr C'GAsyncQueue -> C'gpointer -> IO ())

{-# LINE 30 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_push_sorted_unlocked" c'g_async_queue_push_sorted_unlocked
  :: Ptr C'GAsyncQueue -> C'gpointer -> C'GCompareDataFunc -> C'gpointer -> IO ()
foreign import ccall "&g_async_queue_push_sorted_unlocked" p'g_async_queue_push_sorted_unlocked
  :: FunPtr (Ptr C'GAsyncQueue -> C'gpointer -> C'GCompareDataFunc -> C'gpointer -> IO ())

{-# LINE 31 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_pop_unlocked" c'g_async_queue_pop_unlocked
  :: Ptr C'GAsyncQueue -> IO C'gpointer
foreign import ccall "&g_async_queue_pop_unlocked" p'g_async_queue_pop_unlocked
  :: FunPtr (Ptr C'GAsyncQueue -> IO C'gpointer)

{-# LINE 32 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_try_pop_unlocked" c'g_async_queue_try_pop_unlocked
  :: Ptr C'GAsyncQueue -> IO C'gpointer
foreign import ccall "&g_async_queue_try_pop_unlocked" p'g_async_queue_try_pop_unlocked
  :: FunPtr (Ptr C'GAsyncQueue -> IO C'gpointer)

{-# LINE 33 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_timed_pop_unlocked" c'g_async_queue_timed_pop_unlocked
  :: Ptr C'GAsyncQueue -> Ptr C'GTimeVal -> IO C'gpointer
foreign import ccall "&g_async_queue_timed_pop_unlocked" p'g_async_queue_timed_pop_unlocked
  :: FunPtr (Ptr C'GAsyncQueue -> Ptr C'GTimeVal -> IO C'gpointer)

{-# LINE 34 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_length_unlocked" c'g_async_queue_length_unlocked
  :: Ptr C'GAsyncQueue -> IO C'gint
foreign import ccall "&g_async_queue_length_unlocked" p'g_async_queue_length_unlocked
  :: FunPtr (Ptr C'GAsyncQueue -> IO C'gint)

{-# LINE 35 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}
foreign import ccall "g_async_queue_sort_unlocked" c'g_async_queue_sort_unlocked
  :: Ptr C'GAsyncQueue -> C'GCompareDataFunc -> C'gpointer -> IO ()
foreign import ccall "&g_async_queue_sort_unlocked" p'g_async_queue_sort_unlocked
  :: FunPtr (Ptr C'GAsyncQueue -> C'GCompareDataFunc -> C'gpointer -> IO ())

{-# LINE 36 "src/Bindings/GLib/CoreApplicationSupport/AsynchronousQueues.hsc" #-}