Connections & notifications

57 symbols · 37 function · 19 data · 1 absent

functionSLSMainConnectionIDcprobed

The calling process's connection to the window server. Almost every other call takes this connection id as its first argument. Non-zero once the process has a window-server connection; a launchd job with no GUI session gets 0.
Swift
let lib = dlopen("/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight", RTLD_NOW)
typealias SLSMainConnectionID = @convention(c) () -> Int32
let cid = unsafeBitCast(dlsym(lib, "SLSMainConnectionID")!, to: SLSMainConnectionID.self)()
// -> 565531 on the probing machine; the value differs per process
int SLSMainConnectionID(void);
also exported by CoreGraphics as CGSMainConnectionID

No published signature (56)

Exported and resolvable with dlsym, but not reverse-engineered here yet.
symbolkindCoreGraphics name
SLSConnectionBarrierfunction
SLSConnectionDispatchNotificationsToMainQueueIfNotMainThreadfunctionCGSConnectionDispatchNotificationsToMainQueueIfNotMainThread
SLSConnectionGetPIDfunctionCGSConnectionGetPID
SLSConnectionGetPIDAndVersionfunction
SLSConnectionHasValidPortfunction
SLSConnectionSetSpinningfunctionCGSConnectionSetSpinning
SLSCoordinatedLocalNotificationCenterfunction
SLSCopyConnectionPropertyfunctionCGSCopyConnectionProperty
SLSCopyCoordinatedDistributedNotificationContinuationBlockfunction
SLSCopyCoordinatedDistributedNotificationFencePortfunction
SLSDefaultConnectionForThreadfunctionCGSDefaultConnectionForThread
SLSGetConnectionIDForPSNfunctionCGSGetConnectionIDForPSN
SLSGetConnectionPSNfunctionCGSGetConnectionPSN
SLSInstallRemoteContextNotificationHandlerfunctionCGSInstallRemoteContextNotificationHandler
SLSInstallRemoteContextNotificationHandlerV2function
SLSNewConnectionfunctionCGSNewConnection
SLSOverrideAppSleepNotificationsfunctionCGSOverrideAppSleepNotifications
SLSPackagesEnableConnectionOcclusionNotificationsfunctionCGSPackagesEnableConnectionOcclusionNotifications
SLSPersistenceRegisterAsReadyfunctionCGSPersistenceRegisterAsReady
SLSPostBroadcastNotificationfunctionCGSPostBroadcastNotification
SLSPostCoordinatedDistributedNotificationfunction
SLSPostCoordinatedDistributedNotificationFencedfunction
SLSPostNotificationToConnectionfunctionCGSPostNotificationToConnection
SLSRegisterConnectionNotifyProcfunctionCGSRegisterConnectionNotifyProc
SLSRegisterNotifyProcfunctionCGSRegisterNotifyProc
SLSReleaseConnectionfunctionCGSReleaseConnection
SLSRemoveConnectionNotifyProcfunctionCGSRemoveConnectionNotifyProc
SLSRemoveNotifyProcfunctionCGSRemoveNotifyProc
SLSRemoveRemoteContextNotificationHandlerfunctionCGSRemoveRemoteContextNotificationHandler
SLSServerHasValidConnectionsfunctionCGSServerHasValidConnections
SLSServerPortfunctionCGSServerPort
SLSSetConnectionPropertyfunctionCGSSetConnectionProperty
SLSSetDebugOptionsWithDataObtainingPortfunction
SLSSetOtherUniversalConnectionfunctionCGSSetOtherUniversalConnection
SLSShutdownServerConnectionsfunctionCGSShutdownServerConnections
SLSSpinControlSetNotificationPortfunctionCGSSpinControlSetNotificationPort
_SLSDefaultConnectionabsent
kSLSConnectionHasPluginPowerdata
kSLSConnectionSafeApertureCompatibilitydata
kSLSCoordinatedLogoutNotificationNamedata
kSLSCoordinatedTileResizeNotificationNamedata
kSLSPowerStateNotificationCallbackOptionsdata
kSLSPowerStateNotificationPayloaddata
kSLSPowerStateNotificationPayloadNonedata
kSLSPowerStateNotificationRegistrationIDdata
kSLSPowerStateNotificationRegistrationStatedata
kSLSXPCNotificationErrorCodedata
kSLSXPCNotificationErrorDescriptiondata
kSLSXPCNotificationTypedata
kSLSXPCNotificationUUIDdata
kSLSXPCNotificationXPCObjectdata
kSLSXPCServiceCommanddata
kSLSXPCServiceEndpointdata
kSLSXPCServicePayloaddata
kSLSXPCServicePayloadTypedata
kSLSXPCServiceUUIDdata