hs-bindgen-1.0.0.0: test-artefacts/fixtures/functions/callbacks/bindingspec.yaml
version:
hs_bindgen: 1.0.0.0
binding_specification: '1.0'
hsmodule: Example
ctypes:
- headers: functions/callbacks.h
cname: FileOpenedNotification
hsname: FileOpenedNotification
- headers: functions/callbacks.h
cname: ProgressUpdate
hsname: ProgressUpdate
- headers: functions/callbacks.h
cname: DataValidator
hsname: DataValidator
- headers: functions/callbacks.h
cname: struct Measurement
hsname: Measurement
- headers: functions/callbacks.h
cname: MeasurementReceived
hsname: MeasurementReceived
- headers: functions/callbacks.h
cname: MeasurementReceived2
hsname: MeasurementReceived2
- headers: functions/callbacks.h
cname: SampleBufferFull
hsname: SampleBufferFull
- headers: functions/callbacks.h
cname: struct MeasurementHandler
hsname: MeasurementHandler
- headers: functions/callbacks.h
cname: struct DataPipeline
hsname: DataPipeline
- headers: functions/callbacks.h
cname: union ProcessorCallback
hsname: ProcessorCallback
- headers: functions/callbacks.h
cname: struct Processor
hsname: Processor
- headers: functions/callbacks.h
cname: enum @Processor_mode
hsname: Processor_mode
enum: open
- headers: functions/callbacks.h
cname: foo
hsname: Foo
- headers: functions/callbacks.h
cname: foo2
hsname: Foo2
- headers: functions/callbacks.h
cname: A
hsname: A
- headers: functions/callbacks.h
cname: B
hsname: B
- headers: functions/callbacks.h
cname: struct S
hsname: S
- headers: functions/callbacks.h
cname: C
hsname: C
- headers: functions/callbacks.h
cname: union U
hsname: U
- headers: functions/callbacks.h
cname: D
hsname: D
- headers: functions/callbacks.h
cname: T
hsname: T
hstypes:
- hsname: A
representation:
newtype:
constructor: A
fields:
- unwrapA
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CInt
instances:
- Bitfield
- Bits
- Bounded
- Enum
- Eq
- FiniteBits
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Integral
- Ix
- Num
- Ord
- Prim
- Read
- ReadRaw
- Real
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: B
representation:
newtype:
constructor: B
fields:
- unwrapB
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CInt
instances:
- Bitfield
- Bits
- Bounded
- Enum
- Eq
- FiniteBits
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Integral
- Ix
- Num
- Ord
- Prim
- Read
- ReadRaw
- Real
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: C
representation:
newtype:
constructor: C
fields:
- unwrapC
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CInt
instances:
- Bitfield
- Bits
- Bounded
- Enum
- Eq
- FiniteBits
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Integral
- Ix
- Num
- Ord
- Prim
- Read
- ReadRaw
- Real
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: D
representation:
newtype:
constructor: D
fields:
- unwrapD
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CInt
instances:
- Bitfield
- Bits
- Bounded
- Enum
- Eq
- FiniteBits
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Integral
- Ix
- Num
- Ord
- Prim
- Read
- ReadRaw
- Real
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: DataPipeline
representation:
record:
constructor: DataPipeline
fields:
- dataPipeline_preProcess
- dataPipeline_process
- dataPipeline_postProcess
instances:
- Eq
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- IsStruct
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: DataValidator
representation:
newtype:
constructor: DataValidator
fields:
- unwrapDataValidator
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: FunPtrVoid
instances:
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: FileOpenedNotification
representation:
newtype:
constructor: FileOpenedNotification
fields:
- unwrapFileOpenedNotification
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: FunPtrVoid
instances:
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: Foo
representation:
newtype:
constructor: Foo
fields:
- unwrapFoo
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CInt
instances:
- Bitfield
- Bits
- Bounded
- Enum
- Eq
- FiniteBits
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Integral
- Ix
- Num
- Ord
- Prim
- Read
- ReadRaw
- Real
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: Foo2
representation:
newtype:
constructor: Foo2
fields:
- unwrapFoo2
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CInt
instances:
- Bitfield
- Bits
- Bounded
- Enum
- Eq
- FiniteBits
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Integral
- Ix
- Num
- Ord
- Prim
- Read
- ReadRaw
- Real
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: Measurement
representation:
record:
constructor: Measurement
fields:
- measurement_value
- measurement_timestamp
instances:
- Eq
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- IsStruct
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: MeasurementHandler
representation:
record:
constructor: MeasurementHandler
fields:
- measurementHandler_onReceived
- measurementHandler_validate
- measurementHandler_onError
instances:
- Eq
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- IsStruct
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: MeasurementReceived
representation:
newtype:
constructor: MeasurementReceived
fields:
- unwrapMeasurementReceived
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: FunPtrVoid
instances:
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: MeasurementReceived2
representation:
newtype:
constructor: MeasurementReceived2
fields:
- unwrapMeasurementReceived2
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: FunPtrVoid
instances:
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: Processor
representation:
record:
constructor: Processor
fields:
- processor_mode
- processor_callback
instances:
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- IsStruct
- ReadRaw
- StaticSize
- Storable
- WriteRaw
- hsname: ProcessorCallback
representation:
newtype:
constructor: ProcessorCallback
fields:
- unwrapProcessorCallback
instances:
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- IsUnion
- ReadRaw
- StaticSize
- Storable
- WriteRaw
- hsname: Processor_mode
representation:
newtype:
constructor: Processor_mode
fields:
- unwrapProcessor_mode
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CUInt
instances:
- CEnum
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- Prim
- Read
- ReadRaw
- SequentialCEnum
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: ProgressUpdate
representation:
newtype:
constructor: ProgressUpdate
fields:
- unwrapProgressUpdate
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: FunPtrVoid
instances:
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: S
representation:
record:
constructor: S
fields:
- s_fn
instances:
- Eq
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- IsStruct
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: SampleBufferFull
representation:
newtype:
constructor: SampleBufferFull
fields:
- unwrapSampleBufferFull
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: FunPtrVoid
instances:
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: T
representation:
newtype:
constructor: T
fields:
- unwrapT
instances:
- FromFunPtr
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- ToFunPtr
- hsname: U
representation:
newtype:
constructor: U
fields:
- unwrapU
instances:
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- IsUnion
- ReadRaw
- StaticSize
- Storable
- WriteRaw