packages feed

hgdal-1.0.0.0: src/GDAL/OGRFeatureDefn/RawType.hs

{-# LANGUAGE ForeignFunctionInterface, TypeFamilies,
  MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances,
  EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-}
module GDAL.OGRFeatureDefn.RawType where
import Foreign.Ptr
import FFICXX.Runtime.Cast

data RawOGRFeatureDefn

newtype OGRFeatureDefn = OGRFeatureDefn (Ptr RawOGRFeatureDefn)
                           deriving (Eq, Ord, Show)

instance () => FPtr (OGRFeatureDefn) where
        type Raw OGRFeatureDefn = RawOGRFeatureDefn
        get_fptr (OGRFeatureDefn ptr) = ptr
        cast_fptr_to_obj = OGRFeatureDefn