Lines Matching defs:reg
51 static void display( nsIRegistry *reg, nsRegistryKey root, const char *name );
52 static void displayValues( nsIRegistry *reg, nsRegistryKey root );
91 nsIRegistry *reg;
97 (void **) ®);
112 rv = reg->Open( regFile );
119 display( reg, nsIRegistry::Common, "nsRegistry::Common" );
120 display( reg, nsIRegistry::Users, "nsRegistry::Users" );
122 NS_RELEASE(reg);
131 (void **) ®);
139 rv = reg->OpenWellKnownRegistry(nsIRegistry::ApplicationComponentRegistry);
148 display( reg, nsIRegistry::Common, "nsRegistry::Common" );
149 display( reg, nsIRegistry::Users, "nsRegistry::Users" );
151 NS_RELEASE(reg);
159 void display( nsIRegistry *reg, nsRegistryKey root, const char *rootName ) {
170 displayValues( reg, root );
175 nsresult rv = reg->EnumerateSubtrees( root, &keys );
205 rv = reg->GetSubtreeRaw( root, name, &key );
207 display( reg, key, fullName );
244 static void displayValues( nsIRegistry *reg, nsRegistryKey root ) {
247 nsresult rv = reg->EnumerateValues( root, &values );
275 rv = reg->GetValueType( root, name, &type );
281 rv = reg->GetStringUTF8( root, name, &strValue );
294 rv = reg->GetInt( root, name, &val );