summaryrefslogtreecommitdiff
path: root/source3/libnet/libnet_conf.c
AgeCommit message (Collapse)AuthorFilesLines
2008-01-03Hey, it is 2008 now.Michael Adam1-1/+1
:-) Michael (This used to be commit a1d3f60ea753a158447bb0208441453b76a0f3b9)
2008-01-03Choose a more apropriate parameter name.Michael Adam1-2/+2
Michael (This used to be commit 39a73b6291fd028d44fc2712afa76abf1fcff9cb)
2008-01-03Rename libnet_smbconf_reg_open_basepath() to libnet_smbconf_reg_open_basekey().Michael Adam1-9/+9
Michael (This used to be commit 9e953a94e9b3a060769938ef6af25623e446c180)
2007-12-31Make the last two helper functions in libnet_conf.c static.Michael Adam1-4/+4
Now the registry backend is completely hidden from the API. Michael (This used to be commit 5608c398ad9a0d05d651905a81dd92b7a0e120ff)
2007-12-31Rename libnet_smbconf_key_exists() to libnet_smbconf_share_exists()Michael Adam1-24/+24
and move it to the api section of libnet_conf.c Michael (This used to be commit 9b5d8f4d95ebfd47831906019e11227aecc83aa1)
2007-12-30Remove an unused variable.Michael Adam1-1/+0
Michael (This used to be commit 7bac935b65565099c0dfb34cab0dec73dd5fb479)
2007-12-30Remove all d_fprintf-s from libnet_conf.cMichael Adam1-16/+15
Replacing them buy DEBUG statements and filling in d_fprintfs in callers in net_conf.c. Michael (This used to be commit 1f0122d8d4ec0f67eaedd5df7383c1b45f37290f)
2007-12-30Make libnet_smbconf_reg_open_path() static.Michael Adam1-4/+4
Michael (This used to be commit 6447bae71c99407485307dd508603c73d5bb9823)
2007-12-30Make libnet_smbconf_reg_open_basepath() static.Michael Adam1-2/+3
Michael (This used to be commit 8e87dd79ba4e3aeceb26c7b4e131053172f077cd)
2007-12-30Remove list_values() from net_conf.c - it is not needed any more.Michael Adam1-2/+2
Also make libnet.c:libnet_smbconf_format_registry_value() static. (There are nor more external callers.) Michael (This used to be commit ac7baa17e89d2363b5b3db85de9c842b596dea25)
2007-12-30Add a function libnet_smbconf_get_config() to libnet_conf.cMichael Adam1-0/+84
This gets the whole config as a set of lists (of share names and corresponding lists of parameter names and values). The function is an aggregate of libnet_smbconf_get_share_names() and libnet_smbconf_getshare(). Michael (This used to be commit 94e97a72548a7f76a5273346d472e3ba5b24795a)
2007-12-30Include libnet/libnet.h in libnet_conf.c to have prototypes available.Michael Adam1-0/+1
Michael (This used to be commit 4842438c396b93007fc4f4dded437567e562a2dc)
2007-12-29Return NULL (instead of unchanged) for no shares/parameters defined.Michael Adam1-0/+5
Michael (This used to be commit bfe3d1462f52d2849611fc58ad70fa08b4917077)
2007-12-29Dont return count - 1 but count from libnet_smbconf_reg_get_values().Michael Adam1-1/+1
Michael (This used to be commit ded60dec7d75db7df485a159fb6bf628d8e24805)
2007-12-29Make sure libnet_smbconf_get_share_names() always lists "global" first.Michael Adam1-4/+21
And don't return count-1 but count. Michael (This used to be commit b7cb9b78231512dc4a88c307048d7fb5334fa319)
2007-12-29Move talloc-appending a string to an array to its own helper functionMichael Adam1-13/+49
libnet_smbconf_add_string_to_array(). Michael (This used to be commit f4a4c1b26a03cd0f334e00912d32f15c73474ff1)
2007-12-29Fix uninitalized variablesVolker Lendecke1-2/+2
(This used to be commit 2322fe718728178990fdc3696b84f5de7ae7701b)
2007-12-29Rename libnet_smbconf_getshares() to libnet_smbconf_get_share_names().Michael Adam1-2/+2
Michael (This used to be commit 9b3b9aa7e1044719a5112b9e5446e6fbdd7cecf9)
2007-12-29Add a comment header for libnet_smbconf_getshares().Michael Adam1-0/+3
Michael (This used to be commit 7b51535f2f76b5c3c18620ffd9ac64505357e6db)
2007-12-29Move functionality of net_conf_listshares() to libnet_conf.cMichael Adam1-0/+53
into new function libnet_smbconf_getshares(). Michael (This used to be commit 306c7e4d9cecac4c2c0ea1172bd585c3c17d4541)
2007-12-29Move functionality of net_conf_showshare() to libnet_conf.cMichael Adam1-0/+89
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-29Add a couple of comment headers to the main libnet_conf functions.Michael Adam1-0/+9
Michael (This used to be commit e9694ae20e1da1d8c1cbb252e630815b561647dd)
2007-12-29Add a comment header for libnet_smbconf_format_registry_value().Michael Adam1-0/+7
Michael (This used to be commit 80e73407ea326cc68cd8728845c7a1c0907e2201)
2007-12-29Handle NULL talloc context in libnet_smbconf_format_registry_value().Michael Adam1-1/+4
Maybe we should generate a new context instead of returning NULL? Michael (This used to be commit d7aaec713e17f93eed5177f0c3468deb625402a8)
2007-12-29Hide the registry backend from libnet_smbconf_getparm().Michael Adam1-3/+18
Return a formatted string of the value instead. Michael (This used to be commit 7d0ec5bae155cda6620db04dcb7bd43db59241aa)
2007-12-29Rename format_value() to libnet_smbconf_format_registry_value().Michael Adam1-1/+3
Michael (This used to be commit 95d5dd9bb0546181cd499e6deabff562166412e3)
2007-12-29Move format_value() to libnet_conf.c.Michael Adam1-0/+34
Michael (This used to be commit 3422a5048ad4b7f789ec233356885d78dbdacf9a)
2007-12-26Move libnet_smbconf_reg_open_basepath() in source fileMichael Adam1-9/+9
to group helper functions more logically. Michael (This used to be commit 3fa3891f8721e9f02594cd1be2dc6b9b88692416)
2007-12-26Rename libnet_smbconf_open_basepath() to libnet_smbconf_reg_open_basepath().Michael Adam1-4/+5
Michael (This used to be commit 4c0e7270c42788e7f77c402032ae74cf0f8a7106)
2007-12-26Rename libnet_smbconf_open_path() to libnet_smbconf_reg_open_path().Michael Adam1-10/+12
Michael (This used to be commit 4b0e636965bd37e7c0deecb7b5eff0cc4487408b)
2007-12-26Rename libnet_smbconf_open_path_q() to libnet_smbconf_open_path()Michael Adam1-27/+10
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-25Remove talloc context parameter from libnet_smbconf_delparm().Michael Adam1-3/+3
Make use of talloc stackframe internally. This removes talloc contxt from net_conf_delparm. Michael (This used to be commit 16f137393881edc78c9322f038ba38e53e3ee07d)
2007-12-25Remove talloc context parameter from libnet_smbconf_setparm().Michael Adam1-6/+5
Make use of talloc stackframe internally. This removes talloc contxt from net_conf_setparm. Michael (This used to be commit efaffefc438f8375a083b194ac7a09e563000d3c)
2007-12-25Typofix in comment.Michael Adam1-1/+1
Michael (This used to be commit 5039a70246a475176fa8212ad78b430f2211951f)
2007-12-25Add comment header to function libnet_smbconf_drop().Michael Adam1-0/+3
Michael (This used to be commit e94edb6bdbc9379b48679d7c72618acfe862fe52)
2007-12-25Remove a d_fprintf() from libnet_smbconf_drop().Michael Adam1-1/+0
Michael (This used to be commit 078e5e98b3589cec78893d44146a653dad9a7460)
2007-12-25Remove talloc context parameter from libnet_smbconf_drop().Michael Adam1-14/+8
Make use of talloc_stackframe. Michael (This used to be commit aaceab1153f6c2a2adde83681913c771a16ca81f)
2007-12-25Rename drop_smbconf_internal() to libnet_smbconf_drop().Michael Adam1-1/+1
Michael (This used to be commit 5873e6a1f8242e07b1699366a536350a7199c28c)
2007-12-25Move drop_smbconf_internal() to libnet_conf.cMichael Adam1-0/+50
Michael (This used to be commit 4c2a3396bb687703f6b74655fda2014d1f75200b)
2007-12-25Simplify libnet_smbconf_delshare().Michael Adam1-7/+4
Remove talloc context parameter. Remove d_printf error message. Michael (This used to be commit 870d35c04889603843bae989fb9c01396b4c6ed1)
2007-12-25Rename reg_delkey_internal() to libnet_smbconf_delshare().Michael Adam1-3/+3
Michael (This used to be commit 7d501f0d78ec57509d0bc5ef0dc16fcd24ee27e7)
2007-12-25Move reg_delkey_internal() to libnet/libnet_conf.cMichael Adam1-0/+24
Michael (This used to be commit c1b863fd0520ce64a1bad5e2fa3f69afcc2c78d5)
2007-12-24Do not leak memory in libnet_smbconf_delparm().Michael Adam1-2/+7
Michael (This used to be commit 49cfe2b9ebe03d5985187890445b775047f8a2f4)
2007-12-24Do not leak memory in libnet_smbconf_setparm().Michael Adam1-1/+5
Michael (This used to be commit a657b1c9f17d3cebc86b596f1f2d244750d70a6d)
2007-12-24Use the appropriate boolean constants.Michael Adam1-4/+4
Michael (This used to be commit 45e3e2451adc1490b62d39d486c169ad53e1d3f3)
2007-12-24Make libnet_smbconf_value_exists() use talloc_stackframe().Michael Adam1-5/+5
And not pass a talloc context. Michael (This used to be commit 2983aba9d092e6ede43f6eb521c17fe3f304d041)
2007-12-24Make libnet_smbconf_key_exists() use talloc_stackframe().Michael Adam1-12/+6
And not pass a talloc context. Michael (This used to be commit 7e8451f2f03b246801783aaf4b3d54465292f8f7)
2007-12-24Don't leak memory in libnet_smbconf_getparm().Michael Adam1-3/+9
Michael (This used to be commit 09e62c765401102480d39a483bfffaf5a054babc)
2007-12-24Fix rights error in libnet_smbconf_delparm().Michael Adam1-1/+1
Introduced by additional test for existence of given parameter. Michael (This used to be commit 0fe095e85ca981e5660a67f3fb7d7965ae62c667)
2007-12-24Remove redundant check of return value.Michael Adam1-2/+1
Michael (This used to be commit 29f46c2d45e7ad7f8a9a525f9ac82c050a510967)