Skip to content

Commit

Permalink
Use OSStatus class to bind OSStatus (#793).
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueRiverInteractive committed Feb 24, 2015
1 parent f71ab4d commit fd190d4
Show file tree
Hide file tree
Showing 43 changed files with 413 additions and 393 deletions.
8 changes: 0 additions & 8 deletions cocoatouch/src/main/bro-gen/audiotoolbox.yaml
Expand Up @@ -189,48 +189,40 @@ functions:
AudioConverter(New.*):
class: AudioConverter
name: "create"
return_type: AudioConverterError
visibility: protected
AudioConverter(.*Property.*):
class: AudioConverter
name: "#{g[0]}"
return_type: AudioConverterError
visibility: protected
AudioConverter(.*Buffer):
class: AudioConverter
name: "#{g[0]}"
return_type: AudioConverterError
visibility: protected
AudioConverterDispose:
exclude: true
AudioConverter(.*):
class: AudioConverter
name: "#{g[0]}"
return_type: AudioConverterError

# AudioFile
AudioFileClose:
class: AudioFile
name: "closeFile"
return_type: AudioFileError
AudioFile(.*):
class: AudioFile
name: "#{g[0]}"
return_type: AudioFileError

# AudioFileStream
AudioFileStream(.*):
class: AudioFileStream
name: "#{g[0]}"
return_type: AudioFileStreamError

# AudioQueue
AudioQueueDispose:
exclude: true
AudioQueue(.*):
class: AudioQueue
name: "#{g[0]}"
return_type: AudioQueueError

# AudioServices
AudioServices(.*):
Expand Down
1 change: 1 addition & 0 deletions cocoatouch/src/main/bro-gen/corefoundation.yaml
Expand Up @@ -13,6 +13,7 @@ typedefs:
CFPlugInRef: CFPlugIn
'void (^)(CFRunLoopObserverRef, CFRunLoopActivity)': '@Block VoidBlock2<CFRunLoopObserver, CFRunLoopActivity>'
'void (^)(CFRunLoopTimerRef)': '@Block VoidBlock1<CFRunLoopTimer>'
OSStatus: OSStatus
private_typedefs:
'__CFString *': String
CFStringEncoding: CFStringEncodings
Expand Down
37 changes: 6 additions & 31 deletions cocoatouch/src/main/bro-gen/coremedia.yaml
Expand Up @@ -252,7 +252,6 @@ functions:
name: '#{g[0]}'
visibility: private
static: true
return_type: CMBlockBufferError
CMBlockBuffer(Get.*):
class: CMBlockBuffer
name: '#{g[0]}'
Expand All @@ -262,7 +261,6 @@ functions:
CMBlockBuffer(.*):
class: CMBlockBuffer
name: '#{g[0]}'
return_type: CMBlockBufferError

# CMBufferQueue
CMBufferQueue(GetCallbacks.*):
Expand All @@ -273,39 +271,33 @@ functions:
class: CMBufferQueue
name: '#{g[0]}'
visibility: private
return_type: CMBufferQueueError
CMBufferQueue(Enqueue|MarkEndOfData|Reset|RemoveTrigger):
class: CMBufferQueue
name: '#{g[0]}'
return_type: CMBufferQueueError
CMBufferQueue(Reset)WithCallback:
class: CMBufferQueue
name: '#{g[0]}'
return_type: CMBufferQueueError
visibility: private
parameters:
refcon:
type: '@Pointer long'
CMBufferQueue(InstallTrigger).*:
class: CMBufferQueue
name: '#{g[0]}'
return_type: CMBufferQueueError
visibility: private
parameters:
triggerRefcon:
type: '@Pointer long'
CMBufferQueue(CallForEachBuffer):
class: CMBufferQueue
name: '#{g[0]}'
return_type: CMBufferQueueError
visibility: private
parameters:
refcon:
type: '@Pointer long'
CMBufferQueue(SetValidationCallback):
class: CMBufferQueue
name: '#{g[0]}'
return_type: CMBufferQueueError
visibility: private
parameters:
validationRefCon:
Expand Down Expand Up @@ -433,28 +425,24 @@ functions:
class: CMMetadataIdentifier
name: '#{g[0]}'
visibility: private
return_type: CMMetadataIdentifierError
parameters:
identifierOut:
type: CFString.CFStringPtr
CMMetadata(CreateKey)FromIdentifier:
class: CMMetadataIdentifier
name: '#{g[0]}'
visibility: private
return_type: CMMetadataIdentifierError
CMMetadata(CreateKey)FromIdentifierAsCFData:
class: CMMetadataIdentifier
name: '#{g[0]}AsData'
visibility: private
return_type: CMMetadataIdentifierError
parameters:
keyOut:
type: NSData.NSDataPtr
CMMetadata(CreateKeySpace)FromIdentifier:
class: CMMetadataIdentifier
name: '#{g[0]}'
visibility: private
return_type: CMMetadataIdentifierError
parameters:
keySpaceOut:
type: CFString.CFStringPtr
Expand All @@ -463,7 +451,6 @@ functions:
CMMetadataDataTypeRegistry(RegisterDataType):
class: CMMetadataDataType
name: '#{g[0]}'
return_type: CMMetadataDataTypeRegistryError
parameters:
conformingDataTypes:
type: List<String>
Expand Down Expand Up @@ -603,50 +590,40 @@ functions:
parameters:
makeDataReadyRefcon:
type: '@Pointer long'
return_type: CMSampleBufferError
CMAudioSampleBufferCreate.*:
class: CMSampleBuffer
name: createAudioSampleBuffer
visibility: private
parameters:
makeDataReadyRefcon:
type: '@Pointer long'
return_type: CMSampleBufferError
CMSampleBufferCopySampleBufferForRange:
class: CMSampleBuffer
name: createForRange
visibility: protected
return_type: CMSampleBufferError
CMSampleBufferSetDataBufferFromAudioBufferList:
class: CMSampleBuffer
name: setAudioBufferList
return_type: CMSampleBufferError
parameters:
flags:
type: CMSampleBufferFlags
CMSampleBuffer(GetAudioBufferList)WithRetainedBlockBuffer:
class: CMSampleBuffer
name: '#{g[0]}'
visibility: private
return_type: CMSampleBufferError
parameters:
flags:
type: CMSampleBufferFlags
CMSampleBuffer(GetAudioStreamPacketDescriptions):
class: CMSampleBuffer
name: '#{g[0]}'
visibility: private
return_type: CMSampleBufferError
CMSampleBufferDataIsReady:
class: CMSampleBuffer
name: isDataReady
CMSampleBuffer(SetDataFailed):
class: CMSampleBuffer
name: '#{g[0]}'
return_type: CMSampleBufferError
parameters:
status:
type: CMSampleBufferError
CMSampleBuffer(HasDataFailed):
class: CMSampleBuffer
name: '#{g[0]}'
Expand All @@ -656,24 +633,20 @@ functions:
CMSampleBuffer(CopyPCMDataIntoAudioBufferList|SetDataReady|MakeDataReady|TrackDataReadiness|Invalidate|SetOutputPresentationTimeStamp):
class: CMSampleBuffer
name: '#{g[0]}'
return_type: CMSampleBufferError
CMSampleBuffer(SetInvalidateHandler):
class: CMSampleBuffer
name: '#{g[0]}'
return_type: CMSampleBufferError
parameters:
invalidateHandler:
type: '@Block VoidBlock1<CMSampleBuffer>'
CMSampleBuffer(SetInvalidateCallback):
class: CMSampleBuffer
name: '#{g[0]}'
return_type: CMSampleBufferError
visibility: private
CMSampleBuffer(GetSampleTimingInfoArray|GetOutputSampleTimingInfoArray|GetSampleTimingInfo|GetSampleSizeArray):
class: CMSampleBuffer
name: '#{g[0]}'
visibility: private
return_type: CMSampleBufferError
CMSampleBuffer(GetSampleAttachments)Array:
class: CMSampleBuffer
name: '#{g[0]}'
Expand All @@ -683,14 +656,18 @@ functions:
class: CMSampleBuffer
name: '#{g[0]}'
visibility: private
return_type: CMSampleBufferError
parameters:
refcon:
type: '@Pointer long'
CMSampleBuffer(HasDataFailed):
class: CMSampleBuffer
name: '#{g[0]}'
parameters:
statusOut:
type: IntPtr
CMSampleBufferCallBlockForEachSample:
class: CMSampleBuffer
name: callForEachSample
return_type: CMSampleBufferError
parameters:
handler:
type: '@Block Block2<CMSampleBuffer, Long, CMSampleBufferError>'
Expand All @@ -703,14 +680,12 @@ functions:
class: CMSimpleQueue
name: create
visibility: private
return_type: CMSimpleQueueError
CMSimpleQueue(Dequeue|GetHead):
class: CMSimpleQueue
name: '#{g[0]}'
CMSimpleQueue(.*):
class: CMSimpleQueue
name: '#{g[0]}'
return_type: CMSimpleQueueError

# CMTextFormatDescription
CMTextFormatDescription(GetDefaultTextBox):
Expand Down
6 changes: 2 additions & 4 deletions cocoatouch/src/main/bro-gen/imageio.yaml
Expand Up @@ -21,9 +21,6 @@ enums:
CGImageSourceStatus: {}

classes:
ImageIO:
annotations: ['@Marshaler(NSString.AsStringMarshaler.class)']

CGImageDestinationProperties:
extends: CGImageProperties

Expand All @@ -48,7 +45,8 @@ functions:
CGImageDestinationCopy(TypeIdentifiers):
class: CGImageDestination
name: 'get#{g[0]}'
return_type: '@org.robovm.rt.bro.annotation.Marshaler(CFArray.AsStringListMarshaler.class) List<String>'
return_type: List<String>
return_marshaler: CFArray.AsStringListMarshaler
CGImageDestinationCreate.*:
class: CGImageDestination
name: create
Expand Down
15 changes: 3 additions & 12 deletions cocoatouch/src/main/bro-gen/systemconfiguration.yaml
Expand Up @@ -90,27 +90,18 @@ functions:
type: SCStatusCode

# Make sure we don't miss any functions if new ones are introduced in a later version
(kSC.*):
class: SystemConfiguration
name: 'Function__#{g[0]}'
(SC.*):
(k?SC.*):
class: SystemConfiguration
name: 'Function__#{g[0]}'

values:
# Make sure we don't miss any values if new ones are introduced in a later version
#(kSC.*):
# class: SystemConfiguration
# name: 'Value__#{g[0]}'
#(SC.*):
#(k?SC.*):
# class: SystemConfiguration
# name: 'Value__#{g[0]}'

constants:
# Make sure we don't miss any constants if new ones are introduced in a later version
#(kSC.*):
# class: SystemConfiguration
# name: 'Constant__#{g[0]}'
#(SC.*):
#(k?SC.*):
# class: SystemConfiguration
# name: 'Constant__#{g[0]}'

0 comments on commit fd190d4

Please sign in to comment.