Michael Adam
df93c1aa57
Include libnet/libnet.h in libnet_conf.c to have prototypes available.
...
Michael
(This used to be commit 4842438c396b93007fc4f4dded437567e562a2dc)
2007-12-30 00:32:41 +01:00
Michael Adam
397b4d5397
Return NULL (instead of unchanged) for no shares/parameters defined.
...
Michael
(This used to be commit bfe3d1462f52d2849611fc58ad70fa08b4917077)
2007-12-29 17:06:49 +01:00
Michael Adam
a6d6fbb73d
Dont return count - 1 but count from libnet_smbconf_reg_get_values().
...
Michael
(This used to be commit ded60dec7d75db7df485a159fb6bf628d8e24805)
2007-12-29 17:02:27 +01:00
Michael Adam
e8cb7cecf2
Make sure libnet_smbconf_get_share_names() always lists "global" first.
...
And don't return count-1 but count.
Michael
(This used to be commit b7cb9b78231512dc4a88c307048d7fb5334fa319)
2007-12-29 17:00:27 +01:00
Michael Adam
0e8ca78720
Move talloc-appending a string to an array to its own helper function
...
libnet_smbconf_add_string_to_array().
Michael
(This used to be commit f4a4c1b26a03cd0f334e00912d32f15c73474ff1)
2007-12-29 16:45:01 +01:00
Volker Lendecke
d38aa8d037
Fix uninitalized variables
...
(This used to be commit 2322fe718728178990fdc3696b84f5de7ae7701b)
2007-12-29 16:41:31 +01:00
Michael Adam
1c03f6b608
Rename libnet_smbconf_getshares() to libnet_smbconf_get_share_names().
...
Michael
(This used to be commit 9b3b9aa7e1044719a5112b9e5446e6fbdd7cecf9)
2007-12-29 12:55:42 +01:00
Michael Adam
cf90b67d59
Add a comment header for libnet_smbconf_getshares().
...
Michael
(This used to be commit 7b51535f2f76b5c3c18620ffd9ac64505357e6db)
2007-12-29 12:53:19 +01:00
Michael Adam
2a642a6e2b
Move functionality of net_conf_listshares() to libnet_conf.c
...
into new function libnet_smbconf_getshares().
Michael
(This used to be commit 306c7e4d9cecac4c2c0ea1172bd585c3c17d4541)
2007-12-29 12:52:09 +01:00
Michael Adam
f8c39cbb7b
Move functionality of net_conf_showshare() to libnet_conf.c
...
The functionality is moved to a new function libnet_smbconf_getshare().
This returns the parameters of the given share as two lists: the list
of parameter names and the list of matching (formatted) parameter values.
The retrieval and formatting is done in a new internal helper function
libnet_smbconf_reg_get_values() that is to become the replacement for
list_values() from net_conf.c once functionality of net_conf_list() has
been moved to libnet_conf, too.
Michael
(This used to be commit 198232bd525cfac933b4885e6b330ebf4ac2c8ae)
2007-12-29 12:32:16 +01:00
Michael Adam
27f0130434
Add a couple of comment headers to the main libnet_conf functions.
...
Michael
(This used to be commit e9694ae20e1da1d8c1cbb252e630815b561647dd)
2007-12-29 02:26:33 +01:00
Michael Adam
b5b51b530f
Add a comment header for libnet_smbconf_format_registry_value().
...
Michael
(This used to be commit 80e73407ea326cc68cd8728845c7a1c0907e2201)
2007-12-29 02:18:44 +01:00
Michael Adam
618b0efbbc
Handle NULL talloc context in libnet_smbconf_format_registry_value().
...
Maybe we should generate a new context instead of returning NULL?
Michael
(This used to be commit d7aaec713e17f93eed5177f0c3468deb625402a8)
2007-12-29 02:16:38 +01:00
Michael Adam
eb356fbafc
Hide the registry backend from libnet_smbconf_getparm().
...
Return a formatted string of the value instead.
Michael
(This used to be commit 7d0ec5bae155cda6620db04dcb7bd43db59241aa)
2007-12-29 02:12:33 +01:00
Michael Adam
4b75bc63bb
Rename format_value() to libnet_smbconf_format_registry_value().
...
Michael
(This used to be commit 95d5dd9bb0546181cd499e6deabff562166412e3)
2007-12-29 01:17:39 +01:00
Michael Adam
dfa8d9356c
Move format_value() to libnet_conf.c.
...
Michael
(This used to be commit 3422a5048ad4b7f789ec233356885d78dbdacf9a)
2007-12-29 00:05:58 +01:00
Michael Adam
f99af84e6a
Move libnet_smbconf_reg_open_basepath() in source file
...
to group helper functions more logically.
Michael
(This used to be commit 3fa3891f8721e9f02594cd1be2dc6b9b88692416)
2007-12-26 01:03:28 +01:00
Michael Adam
afca308742
Rename libnet_smbconf_open_basepath() to libnet_smbconf_reg_open_basepath().
...
Michael
(This used to be commit 4c0e7270c42788e7f77c402032ae74cf0f8a7106)
2007-12-26 01:01:14 +01:00
Michael Adam
18ea20e19b
Rename libnet_smbconf_open_path() to libnet_smbconf_reg_open_path().
...
Michael
(This used to be commit 4b0e636965bd37e7c0deecb7b5eff0cc4487408b)
2007-12-26 00:58:11 +01:00
Michael Adam
e8cfbb0f4c
Rename libnet_smbconf_open_path_q() to libnet_smbconf_open_path()
...
removing previouse libnet_smbconf_open_path() and adding
DEBUG output (instead of d_fprintf error output) to new
libnet_smbconf_open_path().
Michael
(This used to be commit e63cc54fab8a0b03573f76305eab366a3ee4eda1)
2007-12-26 00:53:19 +01:00
Michael Adam
a107e8421d
Remove now unneeded talloc ctx parameter from do_JoinConfig().
...
Michael
(This used to be commit be985d8d0ce80d12aa7f0b447b16b14aa0362826)
2007-12-25 03:41:34 +01:00
Michael Adam
8445e820f2
Remove now unneeded talloc ctx parameter from do_join_modify_vals_config().
...
Michael
(This used to be commit f8823ae1232022ed3f7f9be6b8959d413e8aed19)
2007-12-25 03:40:35 +01:00
Michael Adam
d25661a615
Remove now unneeded talloc ctx parameter from do_UnjoinConfig().
...
Michael
(This used to be commit 92b8e5ea4ba26d663ea4e6fb65e4225d8259ea60)
2007-12-25 03:39:31 +01:00
Michael Adam
fc8be9d710
Remove now unneeded talloc ctx parameter from do_unjoin_modify_vals_config().
...
Michael
(This used to be commit 4f7375a110a69530d6ef9781573f45a5bf8391a5)
2007-12-25 03:38:06 +01:00
Michael Adam
44631bfd4d
Remove talloc context parameter from libnet_smbconf_delparm().
...
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_delparm.
Michael
(This used to be commit 16f137393881edc78c9322f038ba38e53e3ee07d)
2007-12-25 03:34:04 +01:00
Michael Adam
f3b0469b4a
Remove talloc context parameter from libnet_smbconf_setparm().
...
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_setparm.
Michael
(This used to be commit efaffefc438f8375a083b194ac7a09e563000d3c)
2007-12-25 03:29:05 +01:00
Michael Adam
a66a5fd94b
Typofix in comment.
...
Michael
(This used to be commit 5039a70246a475176fa8212ad78b430f2211951f)
2007-12-25 03:16:25 +01:00
Michael Adam
dff8e6b62c
Add comment header to function libnet_smbconf_drop().
...
Michael
(This used to be commit e94edb6bdbc9379b48679d7c72618acfe862fe52)
2007-12-25 03:08:00 +01:00
Michael Adam
efd218fb07
Remove a d_fprintf() from libnet_smbconf_drop().
...
Michael
(This used to be commit 078e5e98b3589cec78893d44146a653dad9a7460)
2007-12-25 03:06:48 +01:00
Michael Adam
e5a87c2543
Remove talloc context parameter from libnet_smbconf_drop().
...
Make use of talloc_stackframe.
Michael
(This used to be commit aaceab1153f6c2a2adde83681913c771a16ca81f)
2007-12-25 03:05:06 +01:00
Michael Adam
2764f5a0a6
Rename drop_smbconf_internal() to libnet_smbconf_drop().
...
Michael
(This used to be commit 5873e6a1f8242e07b1699366a536350a7199c28c)
2007-12-25 03:01:59 +01:00
Michael Adam
8e53343a74
Move drop_smbconf_internal() to libnet_conf.c
...
Michael
(This used to be commit 4c2a3396bb687703f6b74655fda2014d1f75200b)
2007-12-25 02:55:07 +01:00
Michael Adam
86486fcc98
Simplify libnet_smbconf_delshare().
...
Remove talloc context parameter.
Remove d_printf error message.
Michael
(This used to be commit 870d35c04889603843bae989fb9c01396b4c6ed1)
2007-12-25 02:37:02 +01:00
Michael Adam
9c20b9a731
Rename reg_delkey_internal() to libnet_smbconf_delshare().
...
Michael
(This used to be commit 7d501f0d78ec57509d0bc5ef0dc16fcd24ee27e7)
2007-12-25 02:24:39 +01:00
Michael Adam
c9f65929b7
Move reg_delkey_internal() to libnet/libnet_conf.c
...
Michael
(This used to be commit c1b863fd0520ce64a1bad5e2fa3f69afcc2c78d5)
2007-12-25 02:21:30 +01:00
Michael Adam
3177cece65
Do not leak memory in libnet_smbconf_delparm().
...
Michael
(This used to be commit 49cfe2b9ebe03d5985187890445b775047f8a2f4)
2007-12-24 01:03:14 +01:00
Michael Adam
713221e1c5
Do not leak memory in libnet_smbconf_setparm().
...
Michael
(This used to be commit a657b1c9f17d3cebc86b596f1f2d244750d70a6d)
2007-12-24 01:00:46 +01:00
Michael Adam
92b1ef15df
Use the appropriate boolean constants.
...
Michael
(This used to be commit 45e3e2451adc1490b62d39d486c169ad53e1d3f3)
2007-12-24 00:57:04 +01:00
Michael Adam
434f0bcb02
Make libnet_smbconf_value_exists() use talloc_stackframe().
...
And not pass a talloc context.
Michael
(This used to be commit 2983aba9d092e6ede43f6eb521c17fe3f304d041)
2007-12-24 00:56:24 +01:00
Michael Adam
c74579f491
Make libnet_smbconf_key_exists() use talloc_stackframe().
...
And not pass a talloc context.
Michael
(This used to be commit 7e8451f2f03b246801783aaf4b3d54465292f8f7)
2007-12-24 00:53:22 +01:00
Michael Adam
225dbe6c02
Don't leak memory in libnet_smbconf_getparm().
...
Michael
(This used to be commit 09e62c765401102480d39a483bfffaf5a054babc)
2007-12-24 00:47:43 +01:00
Michael Adam
44860bce54
Fix rights error in libnet_smbconf_delparm().
...
Introduced by additional test for existence of given parameter.
Michael
(This used to be commit 0fe095e85ca981e5660a67f3fb7d7965ae62c667)
2007-12-24 00:18:35 +01:00
Michael Adam
6306005f4c
Remove redundant check of return value.
...
Michael
(This used to be commit 29f46c2d45e7ad7f8a9a525f9ac82c050a510967)
2007-12-24 00:18:35 +01:00
Michael Adam
8f163d5c5a
Move logic of net_conf_getparm() to libnet_conf.c.
...
Michael
(This used to be commit d3a20c4d5a8109334cd3ed665ba60cfcc4425059)
2007-12-24 00:18:35 +01:00
Michael Adam
d1c2280cd4
Rename libnet_reg_createkey_internal() to libnet_smbconf_reg_createkey_internal().
...
Michael
(This used to be commit 0e7f215f54c68b2d40f65f90ed11c41e1a7ef5ed)
2007-12-23 04:10:32 +01:00
Michael Adam
a48f3c8a96
Make libnet_smbconf_set_global_param() call libnet_smbconf_setparm().
...
This not only removes duplicate logic, but also the use of
libnet_smbconf_reg_setvalue_internal() instead of do_modify_val_config()
which is removed, does add important tests and canonicalizations.
Michael
(This used to be commit fa844866493ee270f31faa3eca77cdff16b26301)
2007-12-23 04:10:32 +01:00
Michael Adam
b6527f3d29
Reorder libnet_conf.c some, adding "section" comments.
...
Michael
(This used to be commit b9f22adfd3e67046b7d786b5b338e078b4cdc6df)
2007-12-23 04:10:32 +01:00
Michael Adam
62f08d3dd9
Move net_conf_setparm() to libnet_conf.c
...
renaming it to libnet_smbconf_setparm()
Michael
(This used to be commit 60f49b22b5aa125ff6cb358a258a1be99c378d7a)
2007-12-23 04:10:32 +01:00
Michael Adam
31d436e54c
Move reg_setvalue_internal() to libnet_conf.c
...
renaming it to libnet_smbconf_setvalue_internal()
Michael
(This used to be commit 7cb51a1d6d95704225d9ab22e88cc76fa910d38c)
2007-12-23 04:10:31 +01:00
Michael Adam
88a424a4d3
Remove occurrences of registry_key from libnet_join.c
...
Replace duplicated logic by calls of libnet_smbconf_set_global_param()
from libnet_conf.c, pushing logic from do_JoinConfig() and do_UnjoinConfig()
to do_join_modify_vals_config() and do_unjoin_modify_vals_config()
respectively.
Only the net_conf api functions should be exported by libnet_conf.c, not
the lower level registry access functions.
Michael
(This used to be commit 81b9f1301d61f05f9153be61d62c13e82cecf7e2)
2007-12-23 04:10:31 +01:00