Software update functions
- group Software update
Additional helpers for the software update IPC API
Functions
-
int a_open_software_update_stream(void)
Open a stream for sending update packages to Software Update.
Call this function when the updater is waiting for files.
If the update includes multiple files, stream them back-to-back.
The stream is non-blocking, but this open call is blocking. The stream file descriptor might be a socket, but it is NOT guaranteed to be a socket.
Note: If the stream unexpectedly closes, write() to the stream can trigger a SIGPIPE signal to the process.
- Returns:
The stream file descriptor, or a negative error code on error
-
int a_open_software_update_stream(void)