Skip to content

Conversation

@mach-kernel
Copy link
Collaborator

@mach-kernel mach-kernel commented May 16, 2025

I finally got another Mac and found some spare time. So, here's about 4 years of todolist:

xpc-sys

Goal: do less and be clear about it

  • Deprecate traits for pipe_routine etc in lieu of simple fns in module
  • QueryBuilder -> DictBuilder
  • TryXPCValue -> TryXPCIntoRust with a to_rust method
  • Deprecate XPCDictionary to use to_rust and XPCObject::from with std HashMap
  • Deprecate from/into raw pointer in lieu of new unsafe fns XPCObject::from_raw and XPCObject::from_raw_retain
  • Add XPCObject::from_raw_fd
  • XPCShmem
    • API for making from xpc_object_t unsafe fns
    • Existing behavior moved to unsafe fn XPCShmem::allocate
    • Do not require mach_port_t to make

launchk

Goal: make more usable, fix bugs

  • Now works on Sequoia
  • Deprecate: load, unload, session/domain chooser dialog (plist location and UID tells us what we can do)
  • Deprecate autoreload after edit, manually bootstrap/bootout
  • New commands: bootout, bootstrap, blame
  • Show if a service is disabled
  • Use xpc_pipe_interface_routine
  • sguadl filter: location and type toggles can now only select one of s/g/u or a/d
  • Fix redraw issues after sudo and pager

Resolves

David Stancu and others added 24 commits May 16, 2025 11:37
xpcshmem: write test that roundtrips a shmem handle through an xpc anonymous listener
…defined

rename querybuilder (terrible name) to dictbuilder, which is what it actually does
update readme
- get rid of traits ns
- get rid of xpcdictionary struct in lieu of using std hashmap directly
- rename tryxpcvalue -> tryxpcintorust with a to_rust method for clarity
- move rustified xpc_etc stuff into api mod, deprecate xpc_pipeable
- move dictbuilder into api mod
…s rawfd (!!!)

[launchk]: try to infer launchd domain first from plist location, only fallback to runtime query if cannot do so. fix bootstrap/bootout behavior depending on domain
@mach-kernel mach-kernel changed the title [WIP]: Dependency updates / maintenance Overhaul a few things Jun 3, 2025
@mach-kernel mach-kernel merged commit 9eb9a2c into master Jun 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants