{- |
Copyright  : Will Thompson, Iñaki García Etxebarria and Jonas Platte
License    : LGPL-2.1
Maintainer : Iñaki García Etxebarria (garetxe@gmail.com)
-}

module GI.OSTree.Structs.TlsCertInteraction
    ( 

-- * Exported types
    TlsCertInteraction(..)                  ,
    noTlsCertInteraction                    ,


    ) where

import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P

import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP


newtype TlsCertInteraction = TlsCertInteraction (ManagedPtr TlsCertInteraction)
-- XXX Wrapping a foreign struct/union with no known destructor or size, leak?
instance WrappedPtr TlsCertInteraction where
    wrappedPtrCalloc = return nullPtr
    wrappedPtrCopy = return
    wrappedPtrFree = Nothing

noTlsCertInteraction :: Maybe TlsCertInteraction
noTlsCertInteraction = Nothing


instance O.HasAttributeList TlsCertInteraction
type instance O.AttributeList TlsCertInteraction = TlsCertInteractionAttributeList
type TlsCertInteractionAttributeList = ('[ ] :: [(Symbol, *)])

type family ResolveTlsCertInteractionMethod (t :: Symbol) (o :: *) :: * where
    ResolveTlsCertInteractionMethod l o = O.MethodResolutionFailed l o

instance (info ~ ResolveTlsCertInteractionMethod t TlsCertInteraction, O.MethodInfo info TlsCertInteraction p) => O.IsLabelProxy t (TlsCertInteraction -> p) where
    fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)

#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveTlsCertInteractionMethod t TlsCertInteraction, O.MethodInfo info TlsCertInteraction p) => O.IsLabel t (TlsCertInteraction -> p) where
    fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif