hydra_cfg.h (772B)
1 // Hydra driver configuration reader. 2 // 3 // Reads the first virtual-device definition from the manifest the Hydra daemon writes at 4 // /Library/Application Support/hydra/devices.json (world-readable; coreaudiod runs as 5 // _coreaudiod and can't read the user's home dir). Lets the device be renamed without 6 // rebuilding the driver. If the manifest is missing or malformed, the caller falls back to 7 // the compile-time default — so a bad manifest can never produce a broken driver. 8 9 #ifndef HYDRA_CFG_H 10 #define HYDRA_CFG_H 11 12 // Copy the manifest's first-device "name" into out_name (capacity cap, NUL-terminated). 13 // Returns 1 if a non-empty name was found, 0 otherwise (caller keeps its default). 14 int hydra_cfg_device_name(char *out_name, int cap); 15 16 #endif // HYDRA_CFG_H