style: format Go sources
Whitespace-only sweep so formatting checks describe this repository's changes rather than its history.
- commit
- a3a494e518efc605059f17179dea07edb1132a84
- author
- brice · · 2026-09-13 06:40 UTC
- parent
- ca248e6
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3 files · +53 -54
M event_pool.go +17 -17
| @@ -24,10 +24,10 @@ type EventHandler func(event *Event) | |||
| 24 | 24 | type EventDispatcher struct { | |
| 25 | 25 | // Lock-free handler lookup using atomic operations | |
| 26 | 26 | handlers [1024]atomic.Pointer[handlerEntry] // Fixed-size array for object IDs 0-1023 | |
| 27 | - | ||
| 27 | + | ||
| 28 | 28 | // Extended handlers for object IDs >= 1024 (rare case) | |
| 29 | 29 | extHandlers sync.Map | |
| 30 | - | ||
| 30 | + | ||
| 31 | 31 | // Pre-allocated event objects to avoid allocations | |
| 32 | 32 | eventCache [64]Event | |
| 33 | 33 | eventIndex atomic.Uint32 | |
| @@ -37,7 +37,7 @@ type EventDispatcher struct { | |||
| 37 | 37 | type handlerEntry struct { | |
| 38 | 38 | // Array of handlers indexed by opcode (most objects have < 16 opcodes) | |
| 39 | 39 | handlers [32]EventHandler | |
| 40 | - | ||
| 40 | + | ||
| 41 | 41 | // Extended handlers for opcodes >= 32 (very rare) | |
| 42 | 42 | extHandlers *sync.Map | |
| 43 | 43 | } | |
| @@ -62,7 +62,7 @@ func (d *EventDispatcher) RegisterHandler(objectID uint32, opcode uint16, handle | |||
| 62 | 62 | newEntry.extHandlers = &sync.Map{} | |
| 63 | 63 | newEntry.extHandlers.Store(opcode, handler) | |
| 64 | 64 | } | |
| 65 | - | ||
| 65 | + | ||
| 66 | 66 | // Try to set atomically | |
| 67 | 67 | if d.handlers[objectID].CompareAndSwap(nil, newEntry) { | |
| 68 | 68 | return | |
| @@ -70,7 +70,7 @@ func (d *EventDispatcher) RegisterHandler(objectID uint32, opcode uint16, handle | |||
| 70 | 70 | // Retry if someone else created it | |
| 71 | 71 | continue | |
| 72 | 72 | } | |
| 73 | - | ||
| 73 | + | ||
| 74 | 74 | // Entry exists, update it | |
| 75 | 75 | if opcode < 32 { | |
| 76 | 76 | // Direct array access (no locking needed for write) | |
| @@ -88,7 +88,7 @@ func (d *EventDispatcher) RegisterHandler(objectID uint32, opcode uint16, handle | |||
| 88 | 88 | // Slow path: use sync.Map for large object IDs | |
| 89 | 89 | entry, _ := d.extHandlers.LoadOrStore(objectID, &handlerEntry{}) | |
| 90 | 90 | h := entry.(*handlerEntry) | |
| 91 | - | ||
| 91 | + | ||
| 92 | 92 | if opcode < 32 { | |
| 93 | 93 | h.handlers[opcode] = handler | |
| 94 | 94 | } else { | |
| @@ -105,7 +105,7 @@ func (d *EventDispatcher) RegisterHandler(objectID uint32, opcode uint16, handle | |||
| 105 | 105 | //go:inline | |
| 106 | 106 | func (d *EventDispatcher) Dispatch(objectID uint32, opcode uint16, data []byte) { | |
| 107 | 107 | var handler EventHandler | |
| 108 | - | ||
| 108 | + | ||
| 109 | 109 | // Fast lookup path | |
| 110 | 110 | if objectID < 1024 { | |
| 111 | 111 | entry := d.handlers[objectID].Load() | |
| @@ -131,21 +131,21 @@ func (d *EventDispatcher) Dispatch(objectID uint32, opcode uint16, data []byte) | |||
| 131 | 131 | } | |
| 132 | 132 | } | |
| 133 | 133 | } | |
| 134 | - | ||
| 134 | + | ||
| 135 | 135 | if handler == nil { | |
| 136 | 136 | return | |
| 137 | 137 | } | |
| 138 | - | ||
| 138 | + | ||
| 139 | 139 | // Get event from pool | |
| 140 | 140 | event := eventPool.Get().(*Event) | |
| 141 | 141 | event.ProxyID = objectID | |
| 142 | 142 | event.Opcode = opcode | |
| 143 | 143 | event.data = append(event.data[:0], data...) // Reuse backing array | |
| 144 | 144 | event.offset = 0 | |
| 145 | - | ||
| 145 | + | ||
| 146 | 146 | // Call handler | |
| 147 | 147 | handler(event) | |
| 148 | - | ||
| 148 | + | ||
| 149 | 149 | // Return to pool | |
| 150 | 150 | eventPool.Put(event) | |
| 151 | 151 | } | |
| @@ -169,11 +169,11 @@ type RawEvent struct { | |||
| 169 | 169 | // DirectDispatcher provides the absolute fastest dispatch path for hot events | |
| 170 | 170 | type DirectDispatcher struct { | |
| 171 | 171 | // Direct function pointers for the hottest paths (e.g., pointer motion) | |
| 172 | - | pointerMotion func(surfaceX, surfaceY Fixed) | |
| 173 | - | pointerButton func(button, state uint32) | |
| 174 | - | keyboardKey func(key, state uint32) | |
| 175 | - | frameCallback func(callbackData uint32) | |
| 176 | - | ||
| 172 | + | pointerMotion func(surfaceX, surfaceY Fixed) | |
| 173 | + | pointerButton func(button, state uint32) | |
| 174 | + | keyboardKey func(key, state uint32) | |
| 175 | + | frameCallback func(callbackData uint32) | |
| 176 | + | ||
| 177 | 177 | // Fallback to regular dispatcher | |
| 178 | 178 | fallback *EventDispatcher | |
| 179 | 179 | } | |
| @@ -216,4 +216,4 @@ func (s *PerformanceStats) GetAverageLatency() uint64 { | |||
| 216 | 216 | return 0 | |
| 217 | 217 | } | |
| 218 | 218 | return s.NanosecondsSpent.Load() / events | |
| 219 | - | }⏎̸ | |
| 219 | + | } | |
| @@ -24,10 +24,10 @@ type EventHandler func(event *Event) | |||||
| 24 | type EventDispatcher struct { | 24 | type EventDispatcher struct { | ||
| 25 | // Lock-free handler lookup using atomic operations | 25 | // Lock-free handler lookup using atomic operations | ||
| 26 | handlers [1024]atomic.Pointer[handlerEntry] // Fixed-size array for object IDs 0-1023 | 26 | handlers [1024]atomic.Pointer[handlerEntry] // Fixed-size array for object IDs 0-1023 | ||
| 27 | - | 27 | + | ||
| 28 | // Extended handlers for object IDs >= 1024 (rare case) | 28 | // Extended handlers for object IDs >= 1024 (rare case) | ||
| 29 | extHandlers sync.Map | 29 | extHandlers sync.Map | ||
| 30 | - | 30 | + | ||
| 31 | // Pre-allocated event objects to avoid allocations | 31 | // Pre-allocated event objects to avoid allocations | ||
| 32 | eventCache [64]Event | 32 | eventCache [64]Event | ||
| 33 | eventIndex atomic.Uint32 | 33 | eventIndex atomic.Uint32 | ||
| @@ -37,7 +37,7 @@ type EventDispatcher struct { | |||||
| 37 | type handlerEntry struct { | 37 | type handlerEntry struct { | ||
| 38 | // Array of handlers indexed by opcode (most objects have < 16 opcodes) | 38 | // Array of handlers indexed by opcode (most objects have < 16 opcodes) | ||
| 39 | handlers [32]EventHandler | 39 | handlers [32]EventHandler | ||
| 40 | - | 40 | + | ||
| 41 | // Extended handlers for opcodes >= 32 (very rare) | 41 | // Extended handlers for opcodes >= 32 (very rare) | ||
| 42 | extHandlers *sync.Map | 42 | extHandlers *sync.Map | ||
| 43 | } | 43 | } | ||
| @@ -62,7 +62,7 @@ func (d *EventDispatcher) RegisterHandler(objectID uint32, opcode uint16, handle | |||||
| 62 | newEntry.extHandlers = &sync.Map{} | 62 | newEntry.extHandlers = &sync.Map{} | ||
| 63 | newEntry.extHandlers.Store(opcode, handler) | 63 | newEntry.extHandlers.Store(opcode, handler) | ||
| 64 | } | 64 | } | ||
| 65 | - | 65 | + | ||
| 66 | // Try to set atomically | 66 | // Try to set atomically | ||
| 67 | if d.handlers[objectID].CompareAndSwap(nil, newEntry) { | 67 | if d.handlers[objectID].CompareAndSwap(nil, newEntry) { | ||
| 68 | return | 68 | return | ||
| @@ -70,7 +70,7 @@ func (d *EventDispatcher) RegisterHandler(objectID uint32, opcode uint16, handle | |||||
| 70 | // Retry if someone else created it | 70 | // Retry if someone else created it | ||
| 71 | continue | 71 | continue | ||
| 72 | } | 72 | } | ||
| 73 | - | 73 | + | ||
| 74 | // Entry exists, update it | 74 | // Entry exists, update it | ||
| 75 | if opcode < 32 { | 75 | if opcode < 32 { | ||
| 76 | // Direct array access (no locking needed for write) | 76 | // Direct array access (no locking needed for write) | ||
| @@ -88,7 +88,7 @@ func (d *EventDispatcher) RegisterHandler(objectID uint32, opcode uint16, handle | |||||
| 88 | // Slow path: use sync.Map for large object IDs | 88 | // Slow path: use sync.Map for large object IDs | ||
| 89 | entry, _ := d.extHandlers.LoadOrStore(objectID, &handlerEntry{}) | 89 | entry, _ := d.extHandlers.LoadOrStore(objectID, &handlerEntry{}) | ||
| 90 | h := entry.(*handlerEntry) | 90 | h := entry.(*handlerEntry) | ||
| 91 | - | 91 | + | ||
| 92 | if opcode < 32 { | 92 | if opcode < 32 { | ||
| 93 | h.handlers[opcode] = handler | 93 | h.handlers[opcode] = handler | ||
| 94 | } else { | 94 | } else { | ||
| @@ -105,7 +105,7 @@ func (d *EventDispatcher) RegisterHandler(objectID uint32, opcode uint16, handle | |||||
| 105 | //go:inline | 105 | //go:inline | ||
| 106 | func (d *EventDispatcher) Dispatch(objectID uint32, opcode uint16, data []byte) { | 106 | func (d *EventDispatcher) Dispatch(objectID uint32, opcode uint16, data []byte) { | ||
| 107 | var handler EventHandler | 107 | var handler EventHandler | ||
| 108 | - | 108 | + | ||
| 109 | // Fast lookup path | 109 | // Fast lookup path | ||
| 110 | if objectID < 1024 { | 110 | if objectID < 1024 { | ||
| 111 | entry := d.handlers[objectID].Load() | 111 | entry := d.handlers[objectID].Load() | ||
| @@ -131,21 +131,21 @@ func (d *EventDispatcher) Dispatch(objectID uint32, opcode uint16, data []byte) | |||||
| 131 | } | 131 | } | ||
| 132 | } | 132 | } | ||
| 133 | } | 133 | } | ||
| 134 | - | 134 | + | ||
| 135 | if handler == nil { | 135 | if handler == nil { | ||
| 136 | return | 136 | return | ||
| 137 | } | 137 | } | ||
| 138 | - | 138 | + | ||
| 139 | // Get event from pool | 139 | // Get event from pool | ||
| 140 | event := eventPool.Get().(*Event) | 140 | event := eventPool.Get().(*Event) | ||
| 141 | event.ProxyID = objectID | 141 | event.ProxyID = objectID | ||
| 142 | event.Opcode = opcode | 142 | event.Opcode = opcode | ||
| 143 | event.data = append(event.data[:0], data...) // Reuse backing array | 143 | event.data = append(event.data[:0], data...) // Reuse backing array | ||
| 144 | event.offset = 0 | 144 | event.offset = 0 | ||
| 145 | - | 145 | + | ||
| 146 | // Call handler | 146 | // Call handler | ||
| 147 | handler(event) | 147 | handler(event) | ||
| 148 | - | 148 | + | ||
| 149 | // Return to pool | 149 | // Return to pool | ||
| 150 | eventPool.Put(event) | 150 | eventPool.Put(event) | ||
| 151 | } | 151 | } | ||
| @@ -169,11 +169,11 @@ type RawEvent struct { | |||||
| 169 | // DirectDispatcher provides the absolute fastest dispatch path for hot events | 169 | // DirectDispatcher provides the absolute fastest dispatch path for hot events | ||
| 170 | type DirectDispatcher struct { | 170 | type DirectDispatcher struct { | ||
| 171 | // Direct function pointers for the hottest paths (e.g., pointer motion) | 171 | // Direct function pointers for the hottest paths (e.g., pointer motion) | ||
| 172 | - | pointerMotion func(surfaceX, surfaceY Fixed) | 172 | + | pointerMotion func(surfaceX, surfaceY Fixed) |
| 173 | - | pointerButton func(button, state uint32) | 173 | + | pointerButton func(button, state uint32) |
| 174 | - | keyboardKey func(key, state uint32) | 174 | + | keyboardKey func(key, state uint32) |
| 175 | - | frameCallback func(callbackData uint32) | 175 | + | frameCallback func(callbackData uint32) |
| 176 | - | 176 | + | ||
| 177 | // Fallback to regular dispatcher | 177 | // Fallback to regular dispatcher | ||
| 178 | fallback *EventDispatcher | 178 | fallback *EventDispatcher | ||
| 179 | } | 179 | } | ||
| @@ -216,4 +216,4 @@ func (s *PerformanceStats) GetAverageLatency() uint64 { | |||||
| 216 | return 0 | 216 | return 0 | ||
| 217 | } | 217 | } | ||
| 218 | return s.NanosecondsSpent.Load() / events | 218 | return s.NanosecondsSpent.Load() / events | ||
| 219 | - | }⏎̸ | 219 | + | } |
M shm.go +14 -14
| @@ -21,14 +21,14 @@ func CreateShmPool(size int) (*ShmPool, error) { | |||
| 21 | 21 | if err != nil { | |
| 22 | 22 | return nil, fmt.Errorf("failed to create anonymous file: %w", err) | |
| 23 | 23 | } | |
| 24 | - | ||
| 24 | + | ||
| 25 | 25 | // Map the file into memory | |
| 26 | 26 | data, err := MapMemory(fd, size) | |
| 27 | 27 | if err != nil { | |
| 28 | 28 | unix.Close(fd) | |
| 29 | 29 | return nil, fmt.Errorf("failed to map memory: %w", err) | |
| 30 | 30 | } | |
| 31 | - | ||
| 31 | + | ||
| 32 | 32 | return &ShmPool{ | |
| 33 | 33 | fd: fd, | |
| 34 | 34 | size: size, | |
| @@ -44,14 +44,14 @@ func (p *ShmPool) Close() error { | |||
| 44 | 44 | } | |
| 45 | 45 | p.data = nil | |
| 46 | 46 | } | |
| 47 | - | ||
| 47 | + | ||
| 48 | 48 | if p.fd >= 0 { | |
| 49 | 49 | if err := unix.Close(p.fd); err != nil { | |
| 50 | 50 | return err | |
| 51 | 51 | } | |
| 52 | 52 | p.fd = -1 | |
| 53 | 53 | } | |
| 54 | - | ||
| 54 | + | ||
| 55 | 55 | return nil | |
| 56 | 56 | } | |
| 57 | 57 | ||
| @@ -83,11 +83,11 @@ type ShmBuffer struct { | |||
| 83 | 83 | // AllocateBuffer allocates a buffer from the pool | |
| 84 | 84 | func (p *ShmPool) AllocateBuffer(width, height, stride int, format uint32) (*ShmBuffer, error) { | |
| 85 | 85 | size := height * stride | |
| 86 | - | ||
| 86 | + | ||
| 87 | 87 | if p.offset+size > p.size { | |
| 88 | 88 | return nil, fmt.Errorf("insufficient space in pool: need %d, have %d", size, p.size-p.offset) | |
| 89 | 89 | } | |
| 90 | - | ||
| 90 | + | ||
| 91 | 91 | buffer := &ShmBuffer{ | |
| 92 | 92 | pool: p, | |
| 93 | 93 | offset: p.offset, | |
| @@ -96,13 +96,13 @@ func (p *ShmPool) AllocateBuffer(width, height, stride int, format uint32) (*Shm | |||
| 96 | 96 | stride: stride, | |
| 97 | 97 | format: format, | |
| 98 | 98 | } | |
| 99 | - | ||
| 99 | + | ||
| 100 | 100 | p.offset += size | |
| 101 | - | ||
| 101 | + | ||
| 102 | 102 | // Align to 64-byte boundary for cache efficiency | |
| 103 | 103 | padding := (64 - (p.offset % 64)) % 64 | |
| 104 | 104 | p.offset += padding | |
| 105 | - | ||
| 105 | + | ||
| 106 | 106 | return buffer, nil | |
| 107 | 107 | } | |
| 108 | 108 | ||
| @@ -122,15 +122,15 @@ const ( | |||
| 122 | 122 | // 32-bit formats | |
| 123 | 123 | FormatARGB8888 = 0 | |
| 124 | 124 | FormatXRGB8888 = 1 | |
| 125 | - | ||
| 126 | - | // 24-bit formats | |
| 125 | + | ||
| 126 | + | // 24-bit formats | |
| 127 | 127 | FormatRGB888 = 0x34324752 // 'RG24' | |
| 128 | 128 | FormatBGR888 = 0x34324742 // 'BG24' | |
| 129 | - | ||
| 129 | + | ||
| 130 | 130 | // 16-bit formats | |
| 131 | 131 | FormatRGB565 = 0x36314752 // 'RG16' | |
| 132 | 132 | FormatXRGB1555 = 0x35315258 // 'XR15' | |
| 133 | - | ||
| 133 | + | ||
| 134 | 134 | // 8-bit formats | |
| 135 | 135 | FormatY8 = 0x20203859 // 'Y8 ' | |
| 136 | - | )⏎̸ | |
| 136 | + | ) | |
| @@ -21,14 +21,14 @@ func CreateShmPool(size int) (*ShmPool, error) { | |||||
| 21 | if err != nil { | 21 | if err != nil { | ||
| 22 | return nil, fmt.Errorf("failed to create anonymous file: %w", err) | 22 | return nil, fmt.Errorf("failed to create anonymous file: %w", err) | ||
| 23 | } | 23 | } | ||
| 24 | - | 24 | + | ||
| 25 | // Map the file into memory | 25 | // Map the file into memory | ||
| 26 | data, err := MapMemory(fd, size) | 26 | data, err := MapMemory(fd, size) | ||
| 27 | if err != nil { | 27 | if err != nil { | ||
| 28 | unix.Close(fd) | 28 | unix.Close(fd) | ||
| 29 | return nil, fmt.Errorf("failed to map memory: %w", err) | 29 | return nil, fmt.Errorf("failed to map memory: %w", err) | ||
| 30 | } | 30 | } | ||
| 31 | - | 31 | + | ||
| 32 | return &ShmPool{ | 32 | return &ShmPool{ | ||
| 33 | fd: fd, | 33 | fd: fd, | ||
| 34 | size: size, | 34 | size: size, | ||
| @@ -44,14 +44,14 @@ func (p *ShmPool) Close() error { | |||||
| 44 | } | 44 | } | ||
| 45 | p.data = nil | 45 | p.data = nil | ||
| 46 | } | 46 | } | ||
| 47 | - | 47 | + | ||
| 48 | if p.fd >= 0 { | 48 | if p.fd >= 0 { | ||
| 49 | if err := unix.Close(p.fd); err != nil { | 49 | if err := unix.Close(p.fd); err != nil { | ||
| 50 | return err | 50 | return err | ||
| 51 | } | 51 | } | ||
| 52 | p.fd = -1 | 52 | p.fd = -1 | ||
| 53 | } | 53 | } | ||
| 54 | - | 54 | + | ||
| 55 | return nil | 55 | return nil | ||
| 56 | } | 56 | } | ||
| 57 | 57 | ||||
| @@ -83,11 +83,11 @@ type ShmBuffer struct { | |||||
| 83 | // AllocateBuffer allocates a buffer from the pool | 83 | // AllocateBuffer allocates a buffer from the pool | ||
| 84 | func (p *ShmPool) AllocateBuffer(width, height, stride int, format uint32) (*ShmBuffer, error) { | 84 | func (p *ShmPool) AllocateBuffer(width, height, stride int, format uint32) (*ShmBuffer, error) { | ||
| 85 | size := height * stride | 85 | size := height * stride | ||
| 86 | - | 86 | + | ||
| 87 | if p.offset+size > p.size { | 87 | if p.offset+size > p.size { | ||
| 88 | return nil, fmt.Errorf("insufficient space in pool: need %d, have %d", size, p.size-p.offset) | 88 | return nil, fmt.Errorf("insufficient space in pool: need %d, have %d", size, p.size-p.offset) | ||
| 89 | } | 89 | } | ||
| 90 | - | 90 | + | ||
| 91 | buffer := &ShmBuffer{ | 91 | buffer := &ShmBuffer{ | ||
| 92 | pool: p, | 92 | pool: p, | ||
| 93 | offset: p.offset, | 93 | offset: p.offset, | ||
| @@ -96,13 +96,13 @@ func (p *ShmPool) AllocateBuffer(width, height, stride int, format uint32) (*Shm | |||||
| 96 | stride: stride, | 96 | stride: stride, | ||
| 97 | format: format, | 97 | format: format, | ||
| 98 | } | 98 | } | ||
| 99 | - | 99 | + | ||
| 100 | p.offset += size | 100 | p.offset += size | ||
| 101 | - | 101 | + | ||
| 102 | // Align to 64-byte boundary for cache efficiency | 102 | // Align to 64-byte boundary for cache efficiency | ||
| 103 | padding := (64 - (p.offset % 64)) % 64 | 103 | padding := (64 - (p.offset % 64)) % 64 | ||
| 104 | p.offset += padding | 104 | p.offset += padding | ||
| 105 | - | 105 | + | ||
| 106 | return buffer, nil | 106 | return buffer, nil | ||
| 107 | } | 107 | } | ||
| 108 | 108 | ||||
| @@ -122,15 +122,15 @@ const ( | |||||
| 122 | // 32-bit formats | 122 | // 32-bit formats | ||
| 123 | FormatARGB8888 = 0 | 123 | FormatARGB8888 = 0 | ||
| 124 | FormatXRGB8888 = 1 | 124 | FormatXRGB8888 = 1 | ||
| 125 | - | 125 | + | ||
| 126 | - | // 24-bit formats | 126 | + | // 24-bit formats |
| 127 | FormatRGB888 = 0x34324752 // 'RG24' | 127 | FormatRGB888 = 0x34324752 // 'RG24' | ||
| 128 | FormatBGR888 = 0x34324742 // 'BG24' | 128 | FormatBGR888 = 0x34324742 // 'BG24' | ||
| 129 | - | 129 | + | ||
| 130 | // 16-bit formats | 130 | // 16-bit formats | ||
| 131 | FormatRGB565 = 0x36314752 // 'RG16' | 131 | FormatRGB565 = 0x36314752 // 'RG16' | ||
| 132 | FormatXRGB1555 = 0x35315258 // 'XR15' | 132 | FormatXRGB1555 = 0x35315258 // 'XR15' | ||
| 133 | - | 133 | + | ||
| 134 | // 8-bit formats | 134 | // 8-bit formats | ||
| 135 | FormatY8 = 0x20203859 // 'Y8 ' | 135 | FormatY8 = 0x20203859 // 'Y8 ' | ||
| 136 | - | )⏎̸ | 136 | + | ) |
M wl/wl.go +22 -23
| @@ -5,31 +5,30 @@ import ( | |||
| 5 | 5 | "github.com/bnema/wlturbo" | |
| 6 | 6 | ) | |
| 7 | 7 | ||
| 8 | - | ||
| 9 | 8 | // Type aliases for compatibility | |
| 10 | 9 | type ( | |
| 11 | - | Display = wlturbo.Display | |
| 12 | - | Registry = wlturbo.Registry | |
| 13 | - | Context = wlturbo.Context | |
| 14 | - | Fixed = wlturbo.Fixed | |
| 15 | - | Object = wlturbo.Object | |
| 16 | - | Proxy = wlturbo.Proxy | |
| 17 | - | BaseProxy = wlturbo.BaseProxy | |
| 18 | - | Event = wlturbo.Event | |
| 19 | - | Global = wlturbo.Global | |
| 20 | - | GlobalHandler = wlturbo.GlobalHandler | |
| 21 | - | RegistryGlobalHandler = wlturbo.RegistryGlobalHandler | |
| 10 | + | Display = wlturbo.Display | |
| 11 | + | Registry = wlturbo.Registry | |
| 12 | + | Context = wlturbo.Context | |
| 13 | + | Fixed = wlturbo.Fixed | |
| 14 | + | Object = wlturbo.Object | |
| 15 | + | Proxy = wlturbo.Proxy | |
| 16 | + | BaseProxy = wlturbo.BaseProxy | |
| 17 | + | Event = wlturbo.Event | |
| 18 | + | Global = wlturbo.Global | |
| 19 | + | GlobalHandler = wlturbo.GlobalHandler | |
| 20 | + | RegistryGlobalHandler = wlturbo.RegistryGlobalHandler | |
| 22 | 21 | RegistryGlobalRemoveHandler = wlturbo.RegistryGlobalRemoveHandler | |
| 23 | - | RegistryGlobalEvent = wlturbo.RegistryGlobalEvent | |
| 24 | - | RegistryGlobalRemoveEvent = wlturbo.RegistryGlobalRemoveEvent | |
| 25 | - | Seat = wlturbo.Seat | |
| 26 | - | Surface = wlturbo.Surface | |
| 27 | - | Pointer = wlturbo.Pointer | |
| 28 | - | Keyboard = wlturbo.Keyboard | |
| 29 | - | Touch = wlturbo.Touch | |
| 30 | - | Output = wlturbo.Output | |
| 31 | - | Region = wlturbo.Region | |
| 32 | - | Compositor = wlturbo.Compositor | |
| 22 | + | RegistryGlobalEvent = wlturbo.RegistryGlobalEvent | |
| 23 | + | RegistryGlobalRemoveEvent = wlturbo.RegistryGlobalRemoveEvent | |
| 24 | + | Seat = wlturbo.Seat | |
| 25 | + | Surface = wlturbo.Surface | |
| 26 | + | Pointer = wlturbo.Pointer | |
| 27 | + | Keyboard = wlturbo.Keyboard | |
| 28 | + | Touch = wlturbo.Touch | |
| 29 | + | Output = wlturbo.Output | |
| 30 | + | Region = wlturbo.Region | |
| 31 | + | Compositor = wlturbo.Compositor | |
| 33 | 32 | ) | |
| 34 | 33 | ||
| 35 | 34 | // Function aliases | |
| @@ -50,4 +49,4 @@ const ( | |||
| 50 | 49 | SeatCapabilityPointer = wlturbo.SeatCapabilityPointer | |
| 51 | 50 | SeatCapabilityKeyboard = wlturbo.SeatCapabilityKeyboard | |
| 52 | 51 | SeatCapabilityTouch = wlturbo.SeatCapabilityTouch | |
| 53 | - | )⏎̸ | |
| 52 | + | ) | |
| @@ -5,31 +5,30 @@ import ( | |||||
| 5 | "github.com/bnema/wlturbo" | 5 | "github.com/bnema/wlturbo" | ||
| 6 | ) | 6 | ) | ||
| 7 | 7 | ||||
| 8 | - | ||||
| 9 | // Type aliases for compatibility | 8 | // Type aliases for compatibility | ||
| 10 | type ( | 9 | type ( | ||
| 11 | - | Display = wlturbo.Display | 10 | + | Display = wlturbo.Display |
| 12 | - | Registry = wlturbo.Registry | 11 | + | Registry = wlturbo.Registry |
| 13 | - | Context = wlturbo.Context | 12 | + | Context = wlturbo.Context |
| 14 | - | Fixed = wlturbo.Fixed | 13 | + | Fixed = wlturbo.Fixed |
| 15 | - | Object = wlturbo.Object | 14 | + | Object = wlturbo.Object |
| 16 | - | Proxy = wlturbo.Proxy | 15 | + | Proxy = wlturbo.Proxy |
| 17 | - | BaseProxy = wlturbo.BaseProxy | 16 | + | BaseProxy = wlturbo.BaseProxy |
| 18 | - | Event = wlturbo.Event | 17 | + | Event = wlturbo.Event |
| 19 | - | Global = wlturbo.Global | 18 | + | Global = wlturbo.Global |
| 20 | - | GlobalHandler = wlturbo.GlobalHandler | 19 | + | GlobalHandler = wlturbo.GlobalHandler |
| 21 | - | RegistryGlobalHandler = wlturbo.RegistryGlobalHandler | 20 | + | RegistryGlobalHandler = wlturbo.RegistryGlobalHandler |
| 22 | RegistryGlobalRemoveHandler = wlturbo.RegistryGlobalRemoveHandler | 21 | RegistryGlobalRemoveHandler = wlturbo.RegistryGlobalRemoveHandler | ||
| 23 | - | RegistryGlobalEvent = wlturbo.RegistryGlobalEvent | 22 | + | RegistryGlobalEvent = wlturbo.RegistryGlobalEvent |
| 24 | - | RegistryGlobalRemoveEvent = wlturbo.RegistryGlobalRemoveEvent | 23 | + | RegistryGlobalRemoveEvent = wlturbo.RegistryGlobalRemoveEvent |
| 25 | - | Seat = wlturbo.Seat | 24 | + | Seat = wlturbo.Seat |
| 26 | - | Surface = wlturbo.Surface | 25 | + | Surface = wlturbo.Surface |
| 27 | - | Pointer = wlturbo.Pointer | 26 | + | Pointer = wlturbo.Pointer |
| 28 | - | Keyboard = wlturbo.Keyboard | 27 | + | Keyboard = wlturbo.Keyboard |
| 29 | - | Touch = wlturbo.Touch | 28 | + | Touch = wlturbo.Touch |
| 30 | - | Output = wlturbo.Output | 29 | + | Output = wlturbo.Output |
| 31 | - | Region = wlturbo.Region | 30 | + | Region = wlturbo.Region |
| 32 | - | Compositor = wlturbo.Compositor | 31 | + | Compositor = wlturbo.Compositor |
| 33 | ) | 32 | ) | ||
| 34 | 33 | ||||
| 35 | // Function aliases | 34 | // Function aliases | ||
| @@ -50,4 +49,4 @@ const ( | |||||
| 50 | SeatCapabilityPointer = wlturbo.SeatCapabilityPointer | 49 | SeatCapabilityPointer = wlturbo.SeatCapabilityPointer | ||
| 51 | SeatCapabilityKeyboard = wlturbo.SeatCapabilityKeyboard | 50 | SeatCapabilityKeyboard = wlturbo.SeatCapabilityKeyboard | ||
| 52 | SeatCapabilityTouch = wlturbo.SeatCapabilityTouch | 51 | SeatCapabilityTouch = wlturbo.SeatCapabilityTouch | ||
| 53 | - | )⏎̸ | 52 | + | ) |