performancecontrolkit

package
v0.7.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package performancecontrolkit provides Go bindings for the performancecontrolkit framework.

Key Types

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindFunc

func BindFunc(fptr any, name string) (err error)

BindFunc binds the performancecontrolkit symbol name into fptr, which must be a pointer to a func variable.

The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.

func NewVoidBlock

func NewVoidBlock(handler VoidHandler) (objc.ID, func())

NewVoidBlock wraps a Go VoidHandler as an Objective-C block. The caller must defer the returned cleanup function.

Used by:

func SymbolAddress

func SymbolAddress(name string) (uintptr, error)

SymbolAddress returns the address of name in performancecontrolkit, whether or not this package generated a binding for it.

What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.

The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.

Types

type CLPC

type CLPC struct {
	Object          uint32
	Connect         uint32
	Rpc_buffer      [1]uint64
	Rpc_buffer_size uint64
}

CLPC

type CLPCPolicyAccess

type CLPCPolicyAccess interface {
	objectivec.IObject

	// IsInContextualPowerMode protocol.
	IsInContextualPowerMode(mode *objc.ID) uint64

	// IsInDockMode protocol.
	IsInDockMode(mode *objc.ID) uint64

	// IsInGameMode protocol.
	IsInGameMode(mode *objc.ID) uint64

	// IsInHotInPocketMode protocol.
	IsInHotInPocketMode(mode *objc.ID) uint64

	// IsInIntelligentBatteryLifeMode protocol.
	IsInIntelligentBatteryLifeMode(mode *objc.ID) uint64

	// IsInLowPowerMode protocol.
	IsInLowPowerMode(mode *objc.ID) uint64

	// IsInSustainableMode protocol.
	IsInSustainableMode(mode *objc.ID) uint64

	// IsInTaskingMode protocol.
	IsInTaskingMode(mode *objc.ID) uint64

	// IsLowPowerModeCandidateError protocol.
	IsLowPowerModeCandidateError(candidate uint64) (bool, error)

	// SetCLPCTrialIDError protocol.
	SetCLPCTrialIDError(id uint64) (bool, error)

	// SetContextualPowerModeOptionsError protocol.
	SetContextualPowerModeOptionsError(mode bool, options uint64) (bool, error)

	// SetDockModeOptionsError protocol.
	SetDockModeOptionsError(mode bool, options uint64) (bool, error)

	// SetGameModeOptionsError protocol.
	SetGameModeOptionsError(mode bool, options uint64) (bool, error)

	// SetGameModeOnProcessTargetProcessOptionsError protocol.
	SetGameModeOnProcessTargetProcessOptionsError(process bool, process2 int32, options uint64) (bool, error)

	// SetHotInPocketModeOptionsError protocol.
	SetHotInPocketModeOptionsError(mode bool, options uint64) (bool, error)

	// SetIntelligentBatteryLifeModeOptionsError protocol.
	SetIntelligentBatteryLifeModeOptionsError(mode bool, options uint64) (bool, error)

	// SetLowPowerModeOptionsError protocol.
	SetLowPowerModeOptionsError(mode bool, options uint64) (bool, error)

	// SetPowerTargetToTargetWattsWithReasonCodeError protocol.
	SetPowerTargetToTargetWattsWithReasonCodeError(target uint64, watts float32, code int32) (bool, error)

	// SetSustainableModeOptionsError protocol.
	SetSustainableModeOptionsError(mode bool, options uint64) (bool, error)

	// SetTaskingModeOptionsError protocol.
	SetTaskingModeOptionsError(mode bool, options uint64) (bool, error)

	// SetWorkloadPowerBudgetOptionsError protocol.
	SetWorkloadPowerBudgetOptionsError(budget float32, options uint64) (bool, error)
}

CLPCPolicyAccess protocol.

type CLPCPolicyAccessObject

type CLPCPolicyAccessObject struct {
	objectivec.Object
}

CLPCPolicyAccessObject wraps an existing Objective-C object that conforms to the CLPCPolicyAccess protocol.

func CLPCPolicyAccessObjectFromID

func CLPCPolicyAccessObjectFromID(id objc.ID) CLPCPolicyAccessObject

CLPCPolicyAccessObjectFromID constructs a CLPCPolicyAccessObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (CLPCPolicyAccessObject) BaseObject

func (o CLPCPolicyAccessObject) BaseObject() objectivec.Object

func (CLPCPolicyAccessObject) IsInContextualPowerMode

func (o CLPCPolicyAccessObject) IsInContextualPowerMode(mode *objc.ID) uint64

func (CLPCPolicyAccessObject) IsInDockMode

func (o CLPCPolicyAccessObject) IsInDockMode(mode *objc.ID) uint64

func (CLPCPolicyAccessObject) IsInGameMode

func (o CLPCPolicyAccessObject) IsInGameMode(mode *objc.ID) uint64

func (CLPCPolicyAccessObject) IsInHotInPocketMode

func (o CLPCPolicyAccessObject) IsInHotInPocketMode(mode *objc.ID) uint64

func (CLPCPolicyAccessObject) IsInIntelligentBatteryLifeMode

func (o CLPCPolicyAccessObject) IsInIntelligentBatteryLifeMode(mode *objc.ID) uint64

func (CLPCPolicyAccessObject) IsInLowPowerMode

func (o CLPCPolicyAccessObject) IsInLowPowerMode(mode *objc.ID) uint64

func (CLPCPolicyAccessObject) IsInSustainableMode

func (o CLPCPolicyAccessObject) IsInSustainableMode(mode *objc.ID) uint64

func (CLPCPolicyAccessObject) IsInTaskingMode

func (o CLPCPolicyAccessObject) IsInTaskingMode(mode *objc.ID) uint64

func (CLPCPolicyAccessObject) IsLowPowerModeCandidateError

func (o CLPCPolicyAccessObject) IsLowPowerModeCandidateError(candidate uint64) (bool, error)

func (CLPCPolicyAccessObject) SetCLPCTrialIDError

func (o CLPCPolicyAccessObject) SetCLPCTrialIDError(id uint64) (bool, error)

func (CLPCPolicyAccessObject) SetContextualPowerModeOptionsError

func (o CLPCPolicyAccessObject) SetContextualPowerModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCPolicyAccessObject) SetDockModeOptionsError

func (o CLPCPolicyAccessObject) SetDockModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCPolicyAccessObject) SetGameModeOnProcessTargetProcessOptionsError

func (o CLPCPolicyAccessObject) SetGameModeOnProcessTargetProcessOptionsError(process bool, process2 int32, options uint64) (bool, error)

func (CLPCPolicyAccessObject) SetGameModeOptionsError

func (o CLPCPolicyAccessObject) SetGameModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCPolicyAccessObject) SetHotInPocketModeOptionsError

func (o CLPCPolicyAccessObject) SetHotInPocketModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCPolicyAccessObject) SetIntelligentBatteryLifeModeOptionsError

func (o CLPCPolicyAccessObject) SetIntelligentBatteryLifeModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCPolicyAccessObject) SetLowPowerModeOptionsError

func (o CLPCPolicyAccessObject) SetLowPowerModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCPolicyAccessObject) SetPowerTargetToTargetWattsWithReasonCodeError

func (o CLPCPolicyAccessObject) SetPowerTargetToTargetWattsWithReasonCodeError(target uint64, watts float32, code int32) (bool, error)

func (CLPCPolicyAccessObject) SetSustainableModeOptionsError

func (o CLPCPolicyAccessObject) SetSustainableModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCPolicyAccessObject) SetTaskingModeOptionsError

func (o CLPCPolicyAccessObject) SetTaskingModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCPolicyAccessObject) SetWorkloadPowerBudgetOptionsError

func (o CLPCPolicyAccessObject) SetWorkloadPowerBudgetOptionsError(budget float32, options uint64) (bool, error)

type CLPCPolicyClient

type CLPCPolicyClient struct {
	CLPCUserClient
}

Methods

func CLPCPolicyClientFromID

func CLPCPolicyClientFromID(id objc.ID) CLPCPolicyClient

CLPCPolicyClientFromID constructs a CLPCPolicyClient from an objc.ID.

func NewCLPCPolicyClient

func NewCLPCPolicyClient() CLPCPolicyClient

NewCLPCPolicyClient creates a new CLPCPolicyClient instance.

func NewCLPCPolicyClientWithValue

func NewCLPCPolicyClientWithValue(init_ *objc.ID) CLPCPolicyClient

func (CLPCPolicyClient) Autorelease

func (c CLPCPolicyClient) Autorelease() CLPCPolicyClient

Autorelease adds the receiver to the current autorelease pool.

func (CLPCPolicyClient) Init

Init initializes the instance.

func (CLPCPolicyClient) IsLowPowerModeCandidateError

func (c CLPCPolicyClient) IsLowPowerModeCandidateError(candidate uint64) (bool, error)

func (CLPCPolicyClient) SetCLPCTrialIDError

func (c CLPCPolicyClient) SetCLPCTrialIDError(id uint64) (bool, error)

type CLPCPolicyClientClass

type CLPCPolicyClientClass struct {
	// contains filtered or unexported fields
}

func GetCLPCPolicyClientClass

func GetCLPCPolicyClientClass() CLPCPolicyClientClass

GetCLPCPolicyClientClass returns the class object for CLPCPolicyClient.

func (CLPCPolicyClientClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCPolicyClientClass) Class

func (cc CLPCPolicyClientClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type CLPCPolicyInterface

type CLPCPolicyInterface struct {
	objectivec.Object
}

func CLPCPolicyInterfaceFromID

func CLPCPolicyInterfaceFromID(id objc.ID) CLPCPolicyInterface

CLPCPolicyInterfaceFromID constructs a CLPCPolicyInterface from an objc.ID.

func NewCLPCPolicyInterface

func NewCLPCPolicyInterface() CLPCPolicyInterface

NewCLPCPolicyInterface creates a new CLPCPolicyInterface instance.

func (CLPCPolicyInterface) Autorelease

func (c CLPCPolicyInterface) Autorelease() CLPCPolicyInterface

Autorelease adds the receiver to the current autorelease pool.

func (CLPCPolicyInterface) Init

Init initializes the instance.

type CLPCPolicyInterfaceClass

type CLPCPolicyInterfaceClass struct {
	// contains filtered or unexported fields
}

func GetCLPCPolicyInterfaceClass

func GetCLPCPolicyInterfaceClass() CLPCPolicyInterfaceClass

GetCLPCPolicyInterfaceClass returns the class object for CLPCPolicyInterface.

func (CLPCPolicyInterfaceClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCPolicyInterfaceClass) Class

func (cc CLPCPolicyInterfaceClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

func (CLPCPolicyInterfaceClass) CreateClient

func (_CLPCPolicyInterfaceClass CLPCPolicyInterfaceClass) CreateClient(client *objc.ID) objectivec.IObject

type CLPCReportingAccess

type CLPCReportingAccess interface {
	objectivec.IObject

	// EnableStatsError protocol.
	EnableStatsError(stats objectivec.IObject) (bool, error)

	// EnabledStats protocol.
	EnabledStats() objectivec.IObject

	// ReadDeltaStats protocol.
	ReadDeltaStats(stats *objc.ID) objectivec.IObject

	// ReadStats protocol.
	ReadStats(stats *objc.ID) objectivec.IObject

	// SchemaIDForStatIDError protocol.
	SchemaIDForStatIDError(id uint64) (uint64, error)

	// SetNumberOfThreadGroupsError protocol.
	SetNumberOfThreadGroupsError(groups objectivec.IObject) error

	// SetPreviousTimestampError protocol.
	SetPreviousTimestampError(timestamp objectivec.IObject) error

	// SetTGSortingMetricError protocol.
	SetTGSortingMetricError(metric uint64) (bool, error)

	// SupportedStats protocol.
	SupportedStats() objectivec.IObject
}

CLPCReportingAccess protocol.

type CLPCReportingAccessObject

type CLPCReportingAccessObject struct {
	objectivec.Object
}

CLPCReportingAccessObject wraps an existing Objective-C object that conforms to the CLPCReportingAccess protocol.

func CLPCReportingAccessObjectFromID

func CLPCReportingAccessObjectFromID(id objc.ID) CLPCReportingAccessObject

CLPCReportingAccessObjectFromID constructs a CLPCReportingAccessObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (CLPCReportingAccessObject) BaseObject

func (CLPCReportingAccessObject) EnableStatsError

func (o CLPCReportingAccessObject) EnableStatsError(stats objectivec.IObject) (bool, error)

func (CLPCReportingAccessObject) EnabledStats

func (o CLPCReportingAccessObject) EnabledStats() objectivec.IObject

func (CLPCReportingAccessObject) ReadDeltaStats

func (o CLPCReportingAccessObject) ReadDeltaStats(stats *objc.ID) objectivec.IObject

func (CLPCReportingAccessObject) ReadStats

func (o CLPCReportingAccessObject) ReadStats(stats *objc.ID) objectivec.IObject

func (CLPCReportingAccessObject) SchemaIDForStatIDError

func (o CLPCReportingAccessObject) SchemaIDForStatIDError(id uint64) (uint64, error)

func (CLPCReportingAccessObject) SetNumberOfThreadGroupsError

func (o CLPCReportingAccessObject) SetNumberOfThreadGroupsError(groups objectivec.IObject) error

func (CLPCReportingAccessObject) SetPreviousTimestampError

func (o CLPCReportingAccessObject) SetPreviousTimestampError(timestamp objectivec.IObject) error

func (CLPCReportingAccessObject) SetTGSortingMetricError

func (o CLPCReportingAccessObject) SetTGSortingMetricError(metric uint64) (bool, error)

func (CLPCReportingAccessObject) SupportedStats

func (o CLPCReportingAccessObject) SupportedStats() objectivec.IObject

type CLPCReportingClient

type CLPCReportingClient struct {
	CLPCUserClient
}

Methods

func CLPCReportingClientFromID

func CLPCReportingClientFromID(id objc.ID) CLPCReportingClient

CLPCReportingClientFromID constructs a CLPCReportingClient from an objc.ID.

func NewCLPCReportingClient

func NewCLPCReportingClient() CLPCReportingClient

NewCLPCReportingClient creates a new CLPCReportingClient instance.

func NewCLPCReportingClientWithValue

func NewCLPCReportingClientWithValue(init_ *objc.ID) CLPCReportingClient

func (CLPCReportingClient) Autorelease

func (c CLPCReportingClient) Autorelease() CLPCReportingClient

Autorelease adds the receiver to the current autorelease pool.

func (CLPCReportingClient) EnableStatsError

func (c CLPCReportingClient) EnableStatsError(stats objectivec.IObject) (bool, error)

func (CLPCReportingClient) EnabledStats

func (c CLPCReportingClient) EnabledStats() objectivec.IObject

func (CLPCReportingClient) Init

Init initializes the instance.

func (CLPCReportingClient) ReadDeltaStats

func (c CLPCReportingClient) ReadDeltaStats(stats *objc.ID) objectivec.IObject

func (CLPCReportingClient) ReadStats

func (c CLPCReportingClient) ReadStats(stats *objc.ID) objectivec.IObject

func (CLPCReportingClient) SchemaIDForStatIDError

func (c CLPCReportingClient) SchemaIDForStatIDError(id uint64) (uint64, error)

func (CLPCReportingClient) SetNumberOfThreadGroupsError

func (c CLPCReportingClient) SetNumberOfThreadGroupsError(groups objectivec.IObject) error

func (CLPCReportingClient) SetPreviousTimestampError

func (c CLPCReportingClient) SetPreviousTimestampError(timestamp objectivec.IObject) error

func (CLPCReportingClient) SetTGSortingMetricError

func (c CLPCReportingClient) SetTGSortingMetricError(metric uint64) (bool, error)

func (CLPCReportingClient) SupportedStats

func (c CLPCReportingClient) SupportedStats() objectivec.IObject

type CLPCReportingClientClass

type CLPCReportingClientClass struct {
	// contains filtered or unexported fields
}

func GetCLPCReportingClientClass

func GetCLPCReportingClientClass() CLPCReportingClientClass

GetCLPCReportingClientClass returns the class object for CLPCReportingClient.

func (CLPCReportingClientClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCReportingClientClass) Class

func (cc CLPCReportingClientClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type CLPCReportingInterface

type CLPCReportingInterface struct {
	objectivec.Object
}

func CLPCReportingInterfaceFromID

func CLPCReportingInterfaceFromID(id objc.ID) CLPCReportingInterface

CLPCReportingInterfaceFromID constructs a CLPCReportingInterface from an objc.ID.

func NewCLPCReportingInterface

func NewCLPCReportingInterface() CLPCReportingInterface

NewCLPCReportingInterface creates a new CLPCReportingInterface instance.

func (CLPCReportingInterface) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (CLPCReportingInterface) Init

Init initializes the instance.

type CLPCReportingInterfaceClass

type CLPCReportingInterfaceClass struct {
	// contains filtered or unexported fields
}

func GetCLPCReportingInterfaceClass

func GetCLPCReportingInterfaceClass() CLPCReportingInterfaceClass

GetCLPCReportingInterfaceClass returns the class object for CLPCReportingInterface.

func (CLPCReportingInterfaceClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCReportingInterfaceClass) Class

Class returns the underlying Objective-C class pointer.

func (CLPCReportingInterfaceClass) CreateClient

func (_CLPCReportingInterfaceClass CLPCReportingInterfaceClass) CreateClient(client *objc.ID) objectivec.IObject

type CLPCReportingReadResult

type CLPCReportingReadResult struct {
	objectivec.Object
}

Methods

func CLPCReportingReadResultFromID

func CLPCReportingReadResultFromID(id objc.ID) CLPCReportingReadResult

CLPCReportingReadResultFromID constructs a CLPCReportingReadResult from an objc.ID.

func NewCLPCReportingReadResult

func NewCLPCReportingReadResult() CLPCReportingReadResult

NewCLPCReportingReadResult creates a new CLPCReportingReadResult instance.

func (CLPCReportingReadResult) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (CLPCReportingReadResult) Enumerate

func (c CLPCReportingReadResult) Enumerate(enumerate VoidHandler)

func (CLPCReportingReadResult) EnumerateSync

func (c CLPCReportingReadResult) EnumerateSync(ctx context.Context) error

EnumerateSync is a synchronous wrapper around CLPCReportingReadResult.Enumerate. It blocks until the completion handler fires or the context is cancelled.

func (CLPCReportingReadResult) HasRowsForSchemaIDError

func (c CLPCReportingReadResult) HasRowsForSchemaIDError(id uint64) (uint64, error)

func (CLPCReportingReadResult) Init

Init initializes the instance.

func (CLPCReportingReadResult) RowsForSchemaIDError

func (c CLPCReportingReadResult) RowsForSchemaIDError(id uint64) (objectivec.IObject, error)

type CLPCReportingReadResultClass

type CLPCReportingReadResultClass struct {
	// contains filtered or unexported fields
}

func GetCLPCReportingReadResultClass

func GetCLPCReportingReadResultClass() CLPCReportingReadResultClass

GetCLPCReportingReadResultClass returns the class object for CLPCReportingReadResult.

func (CLPCReportingReadResultClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCReportingReadResultClass) Class

Class returns the underlying Objective-C class pointer.

type CLPCReportingRows

type CLPCReportingRows struct {
	objectivec.Object
}

Methods

func CLPCReportingRowsFromID

func CLPCReportingRowsFromID(id objc.ID) CLPCReportingRows

CLPCReportingRowsFromID constructs a CLPCReportingRows from an objc.ID.

func NewCLPCReportingRows

func NewCLPCReportingRows() CLPCReportingRows

NewCLPCReportingRows creates a new CLPCReportingRows instance.

func (CLPCReportingRows) Autorelease

func (c CLPCReportingRows) Autorelease() CLPCReportingRows

Autorelease adds the receiver to the current autorelease pool.

func (CLPCReportingRows) Init

Init initializes the instance.

func (CLPCReportingRows) Rows

func (CLPCReportingRows) Schema

func (CLPCReportingRows) SetRows

func (c CLPCReportingRows) SetRows(value foundation.INSArray)

func (CLPCReportingRows) SetSchema

func (c CLPCReportingRows) SetSchema(value ICLPCReportingSchema)

type CLPCReportingRowsClass

type CLPCReportingRowsClass struct {
	// contains filtered or unexported fields
}

func GetCLPCReportingRowsClass

func GetCLPCReportingRowsClass() CLPCReportingRowsClass

GetCLPCReportingRowsClass returns the class object for CLPCReportingRows.

func (CLPCReportingRowsClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCReportingRowsClass) Class

func (cc CLPCReportingRowsClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type CLPCReportingSchema

type CLPCReportingSchema struct {
	objectivec.Object
}

Methods

func CLPCReportingSchemaFromID

func CLPCReportingSchemaFromID(id objc.ID) CLPCReportingSchema

CLPCReportingSchemaFromID constructs a CLPCReportingSchema from an objc.ID.

func NewCLPCReportingSchema

func NewCLPCReportingSchema() CLPCReportingSchema

NewCLPCReportingSchema creates a new CLPCReportingSchema instance.

func (CLPCReportingSchema) Autorelease

func (c CLPCReportingSchema) Autorelease() CLPCReportingSchema

Autorelease adds the receiver to the current autorelease pool.

func (CLPCReportingSchema) Columns

func (CLPCReportingSchema) Init

Init initializes the instance.

func (CLPCReportingSchema) SchemaID

func (c CLPCReportingSchema) SchemaID() uint64

func (CLPCReportingSchema) SetSchemaID

func (c CLPCReportingSchema) SetSchemaID(value uint64)

type CLPCReportingSchemaClass

type CLPCReportingSchemaClass struct {
	// contains filtered or unexported fields
}

func GetCLPCReportingSchemaClass

func GetCLPCReportingSchemaClass() CLPCReportingSchemaClass

GetCLPCReportingSchemaClass returns the class object for CLPCReportingSchema.

func (CLPCReportingSchemaClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCReportingSchemaClass) Class

func (cc CLPCReportingSchemaClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type CLPCReportingSchemaColumn

type CLPCReportingSchemaColumn struct {
	objectivec.Object
}

Methods

func CLPCReportingSchemaColumnFromID

func CLPCReportingSchemaColumnFromID(id objc.ID) CLPCReportingSchemaColumn

CLPCReportingSchemaColumnFromID constructs a CLPCReportingSchemaColumn from an objc.ID.

func NewCLPCReportingSchemaColumn

func NewCLPCReportingSchemaColumn() CLPCReportingSchemaColumn

NewCLPCReportingSchemaColumn creates a new CLPCReportingSchemaColumn instance.

func (CLPCReportingSchemaColumn) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (CLPCReportingSchemaColumn) Format

func (c CLPCReportingSchemaColumn) Format() uint64

func (CLPCReportingSchemaColumn) Init

Init initializes the instance.

func (CLPCReportingSchemaColumn) MetadataType

func (c CLPCReportingSchemaColumn) MetadataType() uint64

func (CLPCReportingSchemaColumn) Name

func (CLPCReportingSchemaColumn) SetFormat

func (c CLPCReportingSchemaColumn) SetFormat(value uint64)

func (CLPCReportingSchemaColumn) SetMetadataType

func (c CLPCReportingSchemaColumn) SetMetadataType(value uint64)

func (CLPCReportingSchemaColumn) SetName

func (c CLPCReportingSchemaColumn) SetName(value string)

func (CLPCReportingSchemaColumn) SetStatID

func (c CLPCReportingSchemaColumn) SetStatID(value uint64)

func (CLPCReportingSchemaColumn) SetType

func (c CLPCReportingSchemaColumn) SetType(value uint64)

func (CLPCReportingSchemaColumn) SetValueID

func (c CLPCReportingSchemaColumn) SetValueID(value foundation.NSNumber)

func (CLPCReportingSchemaColumn) StatID

func (c CLPCReportingSchemaColumn) StatID() uint64

func (CLPCReportingSchemaColumn) Type

func (CLPCReportingSchemaColumn) ValueID

type CLPCReportingSchemaColumnClass

type CLPCReportingSchemaColumnClass struct {
	// contains filtered or unexported fields
}

func GetCLPCReportingSchemaColumnClass

func GetCLPCReportingSchemaColumnClass() CLPCReportingSchemaColumnClass

GetCLPCReportingSchemaColumnClass returns the class object for CLPCReportingSchemaColumn.

func (CLPCReportingSchemaColumnClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCReportingSchemaColumnClass) Class

Class returns the underlying Objective-C class pointer.

type CLPCReportingStatSelection

type CLPCReportingStatSelection struct {
	objectivec.Object
}

Methods

func CLPCReportingStatSelectionFromID

func CLPCReportingStatSelectionFromID(id objc.ID) CLPCReportingStatSelection

CLPCReportingStatSelectionFromID constructs a CLPCReportingStatSelection from an objc.ID.

func NewCLPCReportingStatSelection

func NewCLPCReportingStatSelection() CLPCReportingStatSelection

NewCLPCReportingStatSelection creates a new CLPCReportingStatSelection instance.

func (CLPCReportingStatSelection) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (CLPCReportingStatSelection) DeselectAll

func (c CLPCReportingStatSelection) DeselectAll()

func (CLPCReportingStatSelection) DeselectStatError

func (c CLPCReportingStatSelection) DeselectStatError(stat uint64) (bool, error)

func (CLPCReportingStatSelection) DeselectStatsOfSchemaError

func (c CLPCReportingStatSelection) DeselectStatsOfSchemaError(schema uint64) (bool, error)

func (CLPCReportingStatSelection) Enumerate

func (c CLPCReportingStatSelection) Enumerate(enumerate VoidHandler)

func (CLPCReportingStatSelection) EnumerateSync

func (c CLPCReportingStatSelection) EnumerateSync(ctx context.Context) error

EnumerateSync is a synchronous wrapper around CLPCReportingStatSelection.Enumerate. It blocks until the completion handler fires or the context is cancelled.

func (CLPCReportingStatSelection) Init

Init initializes the instance.

func (CLPCReportingStatSelection) IsSelectedError

func (c CLPCReportingStatSelection) IsSelectedError(selected uint64) (uint64, error)

func (CLPCReportingStatSelection) SelectAll

func (c CLPCReportingStatSelection) SelectAll()

func (CLPCReportingStatSelection) SelectStatError

func (c CLPCReportingStatSelection) SelectStatError(stat uint64) (bool, error)

func (CLPCReportingStatSelection) SelectStatsOfSchemaError

func (c CLPCReportingStatSelection) SelectStatsOfSchemaError(schema uint64) (bool, error)

type CLPCReportingStatSelectionClass

type CLPCReportingStatSelectionClass struct {
	// contains filtered or unexported fields
}

func GetCLPCReportingStatSelectionClass

func GetCLPCReportingStatSelectionClass() CLPCReportingStatSelectionClass

GetCLPCReportingStatSelectionClass returns the class object for CLPCReportingStatSelection.

func (CLPCReportingStatSelectionClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCReportingStatSelectionClass) Class

Class returns the underlying Objective-C class pointer.

type CLPCUserClient

type CLPCUserClient struct {
	objectivec.Object
}

Methods

func CLPCUserClientFromID

func CLPCUserClientFromID(id objc.ID) CLPCUserClient

CLPCUserClientFromID constructs a CLPCUserClient from an objc.ID.

func NewCLPCUserClient

func NewCLPCUserClient() CLPCUserClient

NewCLPCUserClient creates a new CLPCUserClient instance.

func NewCLPCUserClientWithValue

func NewCLPCUserClientWithValue(init_ *objc.ID) CLPCUserClient

func (CLPCUserClient) Autorelease

func (c CLPCUserClient) Autorelease() CLPCUserClient

Autorelease adds the receiver to the current autorelease pool.

func (CLPCUserClient) Init

func (c CLPCUserClient) Init() CLPCUserClient

Init initializes the instance.

func (CLPCUserClient) InitWithValue

func (c CLPCUserClient) InitWithValue(init_ *objc.ID) CLPCUserClient

func (CLPCUserClient) IsInContextualPowerMode

func (c CLPCUserClient) IsInContextualPowerMode(mode *objc.ID) uint64

func (CLPCUserClient) IsInDockMode

func (c CLPCUserClient) IsInDockMode(mode *objc.ID) uint64

func (CLPCUserClient) IsInGameMode

func (c CLPCUserClient) IsInGameMode(mode *objc.ID) uint64

func (CLPCUserClient) IsInHotInPocketMode

func (c CLPCUserClient) IsInHotInPocketMode(mode *objc.ID) uint64

func (CLPCUserClient) IsInIntelligentBatteryLifeMode

func (c CLPCUserClient) IsInIntelligentBatteryLifeMode(mode *objc.ID) uint64

func (CLPCUserClient) IsInLowPowerMode

func (c CLPCUserClient) IsInLowPowerMode(mode *objc.ID) uint64

func (CLPCUserClient) IsInSustainableMode

func (c CLPCUserClient) IsInSustainableMode(mode *objc.ID) uint64

func (CLPCUserClient) IsInTaskingMode

func (c CLPCUserClient) IsInTaskingMode(mode *objc.ID) uint64

func (CLPCUserClient) ReportingObfuscationData

func (c CLPCUserClient) ReportingObfuscationData(data *objc.ID) objectivec.IObject

func (CLPCUserClient) SetContextualPowerModeOptionsError

func (c CLPCUserClient) SetContextualPowerModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCUserClient) SetDockModeOptionsError

func (c CLPCUserClient) SetDockModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCUserClient) SetGameModeOnProcessTargetProcessOptionsError

func (c CLPCUserClient) SetGameModeOnProcessTargetProcessOptionsError(process bool, process2 int32, options uint64) (bool, error)

func (CLPCUserClient) SetGameModeOptionsError

func (c CLPCUserClient) SetGameModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCUserClient) SetHotInPocketModeOptionsError

func (c CLPCUserClient) SetHotInPocketModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCUserClient) SetIntelligentBatteryLifeModeOptionsError

func (c CLPCUserClient) SetIntelligentBatteryLifeModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCUserClient) SetLowPowerModeOptionsError

func (c CLPCUserClient) SetLowPowerModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCUserClient) SetPowerTargetToTargetWattsWithReasonCodeError

func (c CLPCUserClient) SetPowerTargetToTargetWattsWithReasonCodeError(target uint64, watts float32, code int32) (bool, error)

func (CLPCUserClient) SetSustainableModeOptionsError

func (c CLPCUserClient) SetSustainableModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCUserClient) SetTaskingModeOptionsError

func (c CLPCUserClient) SetTaskingModeOptionsError(mode bool, options uint64) (bool, error)

func (CLPCUserClient) SetWorkloadPowerBudgetOptionsError

func (c CLPCUserClient) SetWorkloadPowerBudgetOptionsError(budget float32, options uint64) (bool, error)

type CLPCUserClientClass

type CLPCUserClientClass struct {
	// contains filtered or unexported fields
}

func GetCLPCUserClientClass

func GetCLPCUserClientClass() CLPCUserClientClass

GetCLPCUserClientClass returns the class object for CLPCUserClient.

func (CLPCUserClientClass) Alloc

Alloc allocates memory for a new instance of the class.

func (CLPCUserClientClass) Class

func (cc CLPCUserClientClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type CLPCUtils

type CLPCUtils struct {
	objectivec.Object
}

func CLPCUtilsFromID

func CLPCUtilsFromID(id objc.ID) CLPCUtils

CLPCUtilsFromID constructs a CLPCUtils from an objc.ID.

func NewCLPCUtils

func NewCLPCUtils() CLPCUtils

NewCLPCUtils creates a new CLPCUtils instance.

func (CLPCUtils) Autorelease

func (c CLPCUtils) Autorelease() CLPCUtils

Autorelease adds the receiver to the current autorelease pool.

func (CLPCUtils) Init

func (c CLPCUtils) Init() CLPCUtils

Init initializes the instance.

type CLPCUtilsClass

type CLPCUtilsClass struct {
	// contains filtered or unexported fields
}

func GetCLPCUtilsClass

func GetCLPCUtilsClass() CLPCUtilsClass

GetCLPCUtilsClass returns the class object for CLPCUtils.

func (CLPCUtilsClass) Alloc

func (cc CLPCUtilsClass) Alloc() CLPCUtils

Alloc allocates memory for a new instance of the class.

func (CLPCUtilsClass) Class

func (cc CLPCUtilsClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type ChannelList

type ChannelList struct {
	Channels *foundation.NSMutableDictionary
}

ChannelList

type ICLPCPolicyClient

type ICLPCPolicyClient interface {
	ICLPCUserClient

	IsLowPowerModeCandidateError(candidate uint64) (bool, error)
	SetCLPCTrialIDError(id uint64) (bool, error)
}

An interface definition for the CLPCPolicyClient class.

Methods

type ICLPCPolicyInterface

type ICLPCPolicyInterface interface {
	objectivec.IObject
}

An interface definition for the CLPCPolicyInterface class.

type ICLPCReportingInterface

type ICLPCReportingInterface interface {
	objectivec.IObject
}

An interface definition for the CLPCReportingInterface class.

type ICLPCReportingReadResult

type ICLPCReportingReadResult interface {
	objectivec.IObject

	Enumerate(enumerate VoidHandler)
	HasRowsForSchemaIDError(id uint64) (uint64, error)
	RowsForSchemaIDError(id uint64) (objectivec.IObject, error)
}

An interface definition for the CLPCReportingReadResult class.

Methods

type ICLPCReportingSchema

type ICLPCReportingSchema interface {
	objectivec.IObject

	Columns() foundation.INSArray
	SchemaID() uint64
	SetSchemaID(value uint64)
}

An interface definition for the CLPCReportingSchema class.

Methods

type ICLPCUserClient

type ICLPCUserClient interface {
	objectivec.IObject

	IsInContextualPowerMode(mode *objc.ID) uint64
	IsInDockMode(mode *objc.ID) uint64
	IsInGameMode(mode *objc.ID) uint64
	IsInHotInPocketMode(mode *objc.ID) uint64
	IsInIntelligentBatteryLifeMode(mode *objc.ID) uint64
	IsInLowPowerMode(mode *objc.ID) uint64
	IsInSustainableMode(mode *objc.ID) uint64
	IsInTaskingMode(mode *objc.ID) uint64
	ReportingObfuscationData(data *objc.ID) objectivec.IObject
	SetContextualPowerModeOptionsError(mode bool, options uint64) (bool, error)
	SetDockModeOptionsError(mode bool, options uint64) (bool, error)
	SetGameModeOptionsError(mode bool, options uint64) (bool, error)
	SetGameModeOnProcessTargetProcessOptionsError(process bool, process2 int32, options uint64) (bool, error)
	SetHotInPocketModeOptionsError(mode bool, options uint64) (bool, error)
	SetIntelligentBatteryLifeModeOptionsError(mode bool, options uint64) (bool, error)
	SetLowPowerModeOptionsError(mode bool, options uint64) (bool, error)
	SetPowerTargetToTargetWattsWithReasonCodeError(target uint64, watts float32, code int32) (bool, error)
	SetSustainableModeOptionsError(mode bool, options uint64) (bool, error)
	SetTaskingModeOptionsError(mode bool, options uint64) (bool, error)
	SetWorkloadPowerBudgetOptionsError(budget float32, options uint64) (bool, error)
	InitWithValue(init_ *objc.ID) CLPCUserClient
}

An interface definition for the CLPCUserClient class.

Methods

type ICLPCUtils

type ICLPCUtils interface {
	objectivec.IObject
}

An interface definition for the CLPCUtils class.

type IOReportSubscriptionCF

type IOReportSubscriptionCF struct {
}

IOReportSubscriptionCF

type IOReportSubscriptionCFRef

type IOReportSubscriptionCFRef = _undefined

type LPGMInfo

type LPGMInfo struct {
	Info              ResponseInfo
	Package_energy_nj uint64
	Lpgm_timestamp    uint64
	Lpgm_target       float32
}

LPGMInfo

type ResponseInfo

type ResponseInfo struct {
	Id       uint32
	Version  uint16
	Reserved uint16
	Size     uint64
}

ResponseInfo

type SampleList

type SampleList struct {
	Samples *foundation.NSMutableDictionary
}

SampleList

type Service

type Service struct {
	Object  uint32
	Connect uint32
}

Service

type Subscription

type Subscription struct {
	Subscription        IOReportSubscriptionCFRef
	Subscribed_channels *foundation.NSMutableDictionary
}

Subscription

type VoidHandler

type VoidHandler = func()

VoidHandler is the signature for a completion handler block.

Used by:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL