Re: HAL Userland driver and preferences
Re: HAL Userland driver and preferences
- Subject: Re: HAL Userland driver and preferences
- From: Airy ANDRE <email@hidden>
- Date: Fri, 18 Sep 2009 12:52:17 +0200
Thanks for the info about HP_DeviceSettings.
Right, finding the right place is quite tricky.
Reading is OK, but not writing.
My plan was to read/write the prefs from the plugin init/teardown
methods when the device is the master, but unfortunately coreaudiod
hasn't enough write privilege to any sane place. And I can't count on
user processes to be more powerful.
The only idea I have so far is to use the plugin installer to create a
directory with extended permissions in /Library/Preferences.
Airy
Le 17 sept. 2009 à 20:12, Jeff Moore a écrit :
HP_DeviceSettings is obsolete and has been since Leopard. It should
have been removed from the SDK, but apparently it slipped my mind
for two releases now. You should not use it.
That said, you are free to use any API you like to save and restore
your device's settings. There are two caveats I would add. First,
you should probably avoid using CFPreferences. CFPreferences works
great for applications but is not a reliable way to synchronize live
state across many processes, which is what you need to do as a user-
land driver.
The other caveat is that you need to write your preferences to a
location where they are accessible by all users. For example, /
Library/Preferences is writeable only by users with admin
privileges. So, your plug-in running in a process owned by a normal
user would not be able to write settings to that location.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden