Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Alternate for registry-key system present in window OS: (4 Items)
   
Alternate for registry-key system present in window OS  
Hi,
           I am searching substitute for registry – key system present in windows OS which can be implemented in QNX. 
So that at the time of initialization (booting process) of the OS this data repository can be accessed for further usage
.

Please help me out….
 
RE: Alternate for registry-key system present in window OS  
Photon has some PxConfig function.  That's as close to a registry as you'll get ;-)

-----Original Message-----
From: amit Pai [mailto:community-noreply@qnx.com] 
Sent: Friday, July 17, 2009 7:45 AM
To: general-filesystems
Subject: Alternate for registry-key system present in window OS

Hi,
           I am searching substitute for registry – key system present in windows OS which can be implemented in QNX. 
So that at the time of initialization (booting process) of the OS this data repository can be accessed for further usage
.

Please help me out….
 


_______________________________________________
General
http://community.qnx.com/sf/go/post34020
Re: RE: Alternate for registry-key system present in window OS  
Why not create an xml "database" for your configuration.  Most packages will allow you to retrieve content by hierarchy 
name from the xml file.  In principle, it is quote similar to accessing registry keys.
Re: Alternate for registry-key system present in window OS  
>            I am searching substitute for registry – key system present in 
> windows OS which can be implemented in QNX. So that at the time of 
> initialization (booting process) of the OS this data repository can be 
> accessed for further usage.

I wrote a "registry" server 10 years or so ago that operates in exactly that manner.  Basically:
* presents a tree of key/value pairs under "/dev/registry/"
* nodes have a .default item (like windows)
* tree can be seeded from a .ini file if desired (eg boot image); "registry -i"
* you can later mount disk-backed subtrees for persistent items (once a fsys running); "mount -Tregistry"
* there is a filesystem front-end (mkdir, touch, cat, ls) for manipulation from the shell that stringises all the data
* there is access via normal POSIX fd operations (open, read, write, select, mknod, unlink)
* there is a small library allowing raw data access (int, blob, string; basically as XTYPE reads/writes)
* select for OBAND on a key or directory will notify you of content change

I have not looked at this for many years, but it does appear to still compile, so I attached it if you want to try ...

# ./registry &
# echo "blue" >/dev/registry/window/colour
# echo "80x24" >/dev/registry/window/size
# ls -al /dev/registry/window
total 2
-rwxrwxrwx  1 root      root              0 Jul 17 08:26 .default
-rwxrwxrwx  1 root      root              5 Jul 17 08:26 colour
-rwxrwxrwx  1 root      root              6 Jul 17 08:26 size
# cat /dev/registry/window/colour
blue
Attachment: Text registry.tar.gz 24.43 KB