Skip to content

Commit e468a64

Browse files
committed
macos: minor fixes and missing types
1 parent 9b9a7da commit e468a64

File tree

7 files changed

+32
-15
lines changed

7 files changed

+32
-15
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package corefoundation
2+
3+
type NotificationName StringRef
4+
type TypeRef uintptr
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
11
package coregraphics
2+
3+
// An affine transformation matrix for use in drawing 2D graphics. [Full Topic]
4+
//
5+
// [Full Topic]: https://developer.apple.com/documentation/corefoundation/cgaffinetransform?language=objc
6+
type AffineTransform struct {
7+
M11 float64
8+
M12 float64
9+
M21 float64
10+
M22 float64
11+
TX float64
12+
TY float64
13+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package coremedia
2+
3+
import "github.com/progrium/macdriver/macos/corefoundation"
4+
5+
type BufferRef corefoundation.TypeRef
6+
type MetadataFormatDescriptionRef FormatDescriptionRef
7+
type VideoFormatDescriptionRef FormatDescriptionRef
8+
type AudioFormatDescriptionRef FormatDescriptionRef
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package corevideo
2+
3+
type PixelBufferRef ImageBufferRef
4+
type ImageBufferRef BufferRef

macos/fileprovider/fileprovider_structs.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,3 @@ type FileProviderTypeAndCreator struct {
77
Type uint32
88
Creator uint32
99
}
10-
11-
// A structure that contains the file type and file creator codes for an item. [Full Topic]
12-
//
13-
// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertypeandcreator?language=objc
14-
type FileProviderTypeAndCreator struct {
15-
Type uint32
16-
Creator uint32
17-
}

macos/foundation/foundation_custom.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ type Point = coregraphics.Point
2323
type Size = coregraphics.Size
2424
type Rect = coregraphics.Rect
2525

26+
type FastEnumerationState struct {
27+
// TODO
28+
}
29+
2630
func (N *String) String() string {
2731
return objc.ToGoString(N.Ptr())
2832
}
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
11
package sysconfig
2-
3-
import "unsafe"
4-
5-
type PreferencesRef unsafe.Pointer
6-
type EtworkConnectionRef unsafe.Pointer
7-
type EtworkReachabilityRef unsafe.Pointer
8-
type DynamicStoreRef unsafe.Pointer

0 commit comments

Comments
 (0)