Michael Adam
bf6340d00d
Move implementation of _winreg_SaveKey() from srv_winreg_nt.c to reg_api.c
...
This gives a new function reg_savekey() and hides a piece of
the backend code from srv_winreg_nt.c. One step towards using
reg_api throughout samba code.
Michael
2008-02-15 16:23:10 +01:00
Michael Adam
84ec89ab9f
Adapt a comment to current circumstances.
...
Michael
2008-02-15 16:23:10 +01:00
Michael Adam
9d3c27f557
Rename registry_init_regdb() to registry_init_smbconf().
...
That's what it actually is.
Michael
2008-02-15 16:23:10 +01:00
Volker Lendecke
d28a537277
Fix Coverity IDs 451, 452
2008-01-25 20:55:51 +01:00
Michael Adam
01bda3ab35
Rename lib/util_reg_smbconf.c to registry/reg_init_smbconf.c
...
This actually is a counterpart to reg_init_full, in that is does
open and initialize the registry too, but only registeres the backends
necessary to access the SMBCONF key.
Michael
2008-01-21 08:49:12 +01:00
Michael Adam
39d65d11f8
Move reg_frontend_hilvl.c to reg_dispatcher.c
...
This is actually the dispatcher to the registered registry backends.
Michael
2008-01-21 08:49:12 +01:00
Michael Adam
4952417fca
Extend/fix comments.
...
Michael
2008-01-21 08:49:12 +01:00
Michael Adam
0005b88d74
Extract regkey_open_internal() from reg_frontend.c to new reg_util_legacy.c
...
reg_openpath should be used instead of this function (along with the
reg_api interface). Last callers of this function are in services_db.c
Michael
2008-01-21 08:49:12 +01:00
Michael Adam
c3f695d3b1
Rename reg_db.c to reg_backend_db.c
...
Michael
2008-01-21 08:49:12 +01:00
Michael Adam
aaf33ae5b8
Rename reg_shares.c to reg_backend_shares.c
...
Michael
2008-01-21 08:49:12 +01:00
Michael Adam
b85e5ee450
Rename reg_smbconf.c to reg_backend_smbconf.c
...
Michael
2008-01-21 08:49:12 +01:00
Michael Adam
b3c2fb17a4
Rename reg_printing.c to reg_backend_printing.c
...
Start making naming of source files more systematic
to facilitate understanding of the structures.
Michael
2008-01-21 08:49:12 +01:00
Volker Lendecke
4a6dadc517
Fix some "set but never used" warnings
2008-01-20 17:44:40 +01:00
Michael Adam
239aa59cc1
Add a debug message to fetch_reg_values().
...
Michael
2008-01-20 03:54:56 +01:00
Michael Adam
2a27892880
Add some debugging output to reg_cachehook.c
...
Michael
2008-01-20 03:54:56 +01:00
Michael Adam
e327953bd6
Remove the dynamic registry overlay.
...
It is unnecessary now the dynamic functions have been made
registry backends of their own.
Michael
2008-01-20 03:47:37 +01:00
Michael Adam
c3fba41595
Add a registry backend perflib that replaces the former dynamic overlay.
...
Michael
2008-01-20 03:47:37 +01:00
Michael Adam
d2e3814db8
Some reformatting of current_version_fetch_values().
...
Michael
2008-01-20 03:47:37 +01:00
Michael Adam
2c650bf63c
Add a registry backend current_version that replaces the former dynamic overlay.
...
Make sure to only respond to the exact current version key since subkeys
are registered by other backends (printing and - soon - perflib).
Michael
2008-01-20 03:47:36 +01:00
Michael Adam
80024f4e1c
Use some consts instead of literal strings for registry keys.
...
Michael
2008-01-20 02:03:41 +01:00
Michael Adam
f245c4e094
Some reformatting in hkpt_params_fetch_values().
...
Michael
2008-01-20 02:03:40 +01:00
Michael Adam
8e8bb6ba12
Add a registry backend hkpt_params that replaces the former dynamic overlay.
...
Michael
2008-01-20 02:03:40 +01:00
Michael Adam
5b3813b233
Some reformatting in tcpip_params_fetch_values().
...
Michael
2008-01-20 02:03:40 +01:00
Michael Adam
a8a743b693
Add a registry backend tcpip_params that replaces the former dynamic overlay.
...
Michael
2008-01-20 02:03:40 +01:00
Michael Adam
347b988654
Some reformatting in prod_options_fetch_values().
...
Michael
2008-01-20 02:03:39 +01:00
Michael Adam
d9b89e9d30
Add a registry backend prod_options that replaces the former dynamic overlay.
...
Michael
2008-01-20 02:03:39 +01:00
Michael Adam
24f13fb72e
Some reformatting in netlogon_params_fetch_values().
...
Michael
2008-01-20 02:03:39 +01:00
Michael Adam
54e7c80985
Rename netlogon_params_fetch_reg_values() to netlogon_params_fetch_values().
...
Michael
2008-01-20 02:03:39 +01:00
Michael Adam
9261b2c4bf
In reg_backend_netlogon_params, delegate fetch_subkeys() to regdb.
...
In order to be able to open the netlogon_params key (the new backend replacing
the former dynamic overlay), certain methods need to be provided. Delegate these
to the regdb backend (like e.g. the smbconf backend does).
Michael
2008-01-20 02:03:38 +01:00
Michael Adam
7d1e986f3a
Fix registering Registry backends in reghook_cache_add().
...
This was broken in 331c0d6216
(pstring removal).
Michael
2008-01-20 02:03:38 +01:00
Michael Adam
daf37c9545
Use constant KEY_NETLOGON_PARAMS instead of literal key.
...
Michael
2008-01-20 02:03:38 +01:00
Michael Adam
a73b8d16aa
Volker is right: why keep commented out migrated dynamic reg overlays around?...
...
Michael
2008-01-20 02:03:38 +01:00
Michael Adam
2c4dfd7aaa
Use c99 struct initializers for REGISTRY_OPS in reg_shares.c
...
Michael
2008-01-20 02:03:38 +01:00
Michael Adam
a89bee4139
Use c99 struct initializers for REGISTRY_OPS in reg_printing.c
...
Michael
2008-01-20 02:03:37 +01:00
Michael Adam
96d116b003
Use c99 struct initializers for REGISTRY_OPS in reg_smbconf.c.
...
Michael
2008-01-20 02:03:37 +01:00
Michael Adam
f3901f179b
Use C99 structure initializers for netlogon_params_reg_ops.
...
Michael
2008-01-18 12:07:04 +01:00
Michael Adam
e8a0524961
Add a registry backend netlogon_params that replaces the former dynamic overlay.
...
This is the first step in replacing the dynamic overlays by proper
backends implementing REGISTRY_OPS.
Michael
2008-01-18 09:40:57 +01:00
Michael Adam
d7a8d7ffbd
Fix typo in debug message.
...
Michael
2008-01-18 09:40:57 +01:00
Michael Adam
903223b160
Add a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
81d6a1fbed
Add my (C) to reg_api.c - Michael
2008-01-17 16:25:11 +01:00
Michael Adam
15163926a8
Add a comment header comparing winreg.idl and reg_api.c.
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
7251a24b48
Add reg_api functions reg_getkeysecurity() and reg_setkeysecurity().
...
These are wrappers around the lower level functions regkey_get_secdesc()
and regkey_set_secdesc(). Next step towards hiding reg_frontend from
the surface.
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
0cb8399d7c
Comment out unused reg_create_path() and reg_delete_path().
...
These functions are unused. Comment them out for now.
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
4d82cc586c
Move reg_create_path() and reg_delete_path() to reg_api.c
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
d3c9c27374
Add some sectioning comments to reg_api.c
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
3e66127322
Make utility function reg_deletekey_recursive_internal() static.
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
5c0a1d5d45
Use the proper boolean constants in reg_frontend_hilvl.c
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
36085d9004
Reformatting: Strip trailing white spaces from reg_frontent_hilvl.c.
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
beaa83f32b
Use the proper boolean functions.
...
Michael
2008-01-15 14:56:00 +01:00
Michael Adam
1941c365b5
Remove some trailing spaces.
...
Michael
2008-01-15 14:55:04 +01:00