summaryrefslogtreecommitdiffstats
path: root/source3/registry/reg_objects.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:registry: add a new function regval_ctr_value_byname()Michael Adam2012-04-251-0/+18
| | | | | | | This is like regval_ctr_key_exists() but does not return bool, but the regval_blob instead, if found, and NULL if not found. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: rename regval_ctr_key_exists() to regval_ctr_value_exists()Michael Adam2012-04-251-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-registry Remove unused dup_registry_value() and free_registry_value()Andrew Bartlett2012-02-171-54/+0
|
* s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and ↵Michael Adam2011-10-111-2/+4
| | | | dbwrap_fetch_bystring_upper() to NTSTATUS
* s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.hMichael Adam2011-10-111-0/+1
|
* s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam2011-07-291-1/+1
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
* s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-2/+2
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3: only include tdb headers where needed.Günther Deschner2011-05-061-0/+1
| | | | Guenther
* registry: create and use shared libcli/registry/util_reg.h header.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-build: use dbwrap.h only where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3-registry: remove 2 byte winreg type limitation.Günther Deschner2010-07-021-3/+3
| | | | | | | | | We already pull and push 4 byte winreg type in the registry.tdb, we were just not using full 4 bytes within the reg_object functions. With this change we finally pass the set extended value torture test. Guenther
* s3:registry: add C for substantial changes to reg_objectsMichael Adam2010-05-251-0/+1
|
* s3:registry:reg_objects: Remove use of uint{8,16,32} in favour of C99 typesMichael Adam2010-05-251-25/+25
|
* s3:registry: move reg_objects.h to registry/ and use it only where neededMichael Adam2010-05-251-0/+1
| | | | | Every place outside of registry/ where this is used, should probably be changed to use pure reg_api.c code.
* s3:registry: hide definition of regval_ctr and regval_blob in reg_objects.cMichael Adam2010-05-251-0/+18
|
* s3:registry:reg_objects: add regval_ctr_set_seqnum()Michael Adam2010-05-251-0/+11
|
* s3:registry:reg_objects: add regval_ctr_get_seqnum()Michael Adam2010-05-251-0/+9
|
* s3:registry:reg_objects: add regval_ctr_init()Michael Adam2010-05-251-0/+17
|
* s3:registry: fix regval_ctr_addvalue() to take data as uint8 *, not char *.Michael Adam2010-05-251-4/+4
|
* s3:registry: fix data_p arg of regval_compose to be uint8 * instead of char *Michael Adam2010-05-251-1/+1
|
* s3: Remove use of iconv_convenience.Jelmer Vernooij2010-05-181-3/+3
|
* s3-registry: only include registry headers when really needed.Günther Deschner2010-05-181-0/+1
| | | | Guenther
* s3: add iconv_convenience handle to pull/push sz helpers.Günther Deschner2010-04-091-3/+3
| | | | Guenther
* s3-registry: use pull_reg_sz() where appropriate.Günther Deschner2009-10-011-4/+5
| | | | | | (and move away from rpcstr_pull and rpcstr_pull_talloc). Guenther
* s3-registry: add regval_ctr_addvalue_multi_sz.Günther Deschner2009-09-301-0/+17
| | | | Guenther
* s3-registry: add regval_ctr_addvalue_sz.Günther Deschner2009-09-301-0/+17
| | | | Guenther
* s3:registry: add function regsubkey_ctr_reinit()Michael Adam2009-07-151-0/+23
| | | | | | | This reinitializes an already allocated regsubkey_ctr structure, emptying out the subkey array and hash table. Michael
* s3:registry: don't store differently cased entries for the same keys.Michael Adam2009-07-151-3/+3
| | | | | | | | | | | | This happened for instance during registry initialization, when entries for HKLM\Software and HKLM\SOFTWARE were created. Searching these entries was case insensitive though. But the entries ended up in the subkey-lists anyways. This is solved by making the subkeys_hash in the regsubkey_container structs case insensitive (using the new _bystring_upper() wrappers). Michael
* s3:registry: replace typedef REGISTRY_VALUE by struct regval_blobMichael Adam2009-04-271-23/+26
| | | | Michael
* s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.Michael Adam2009-04-271-10/+10
| | | | | | | This paves the way for hiding the typedef and the implementation from the surface. Michael
* s3:registry: hash the list of subkeys in the regsubkey_ctrMichael Adam2009-02-261-21/+102
| | | | | | | | | | This removes many loops over all the arrays (from regsubkey_ctr_key_exists) and thus reduces "net conf drop" from 1m55 to 48seconds and "net conf import" from 1m55 to 58 seconds for 2000 shares on my box. Michael
* s3:registry: remove definition of regsubkey_ctr from the surface.Michael Adam2009-02-261-0/+6
| | | | | | | All access is now through accessor functions in reg_objects.c This allows for performance tuning under the hood in the next step. Michael
* s3:registry: add regsubkey_ctr_get_seqnum() to hide implementationMichael Adam2009-02-261-0/+9
| | | | Michael
* s3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.Michael Adam2009-02-261-0/+11
| | | | Michael
* s3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctrMichael Adam2009-02-261-1/+15
| | | | Michael
* s3:registry: fix a commentMichael Adam2009-02-261-3/+3
| | | | Michael
* s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"Michael Adam2009-02-261-5/+5
| | | | | | | This paves the way for hiding the typedef and the implementation from the surface. Michael
* Remove pstrings from nsswitch/ and registry/Jeremy Allison2007-11-261-5/+5
| | | | | Jeremy. (This used to be commit 331c0d6216e1a1607a49ed7eb4078e10138ec16a)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-2/+2
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r25417: Use DBGC_REGISTRY class.Günther Deschner2007-10-101-1/+1
| | | | | Guenther (This used to be commit 43ca04918a5a1b2379083dc624b346ceb8476a38)
* r25140: Less red bars to hurt my eyes...Michael Adam2007-10-101-47/+51
| | | | (This used to be commit f935d21200294c8d29ce527300f605e721cb3620)
* r25139: Avoid code duplication: let regval_ctr_copyvalue() call ↵Michael Adam2007-10-101-37/+2
| | | | | | | | | | regval_ctr_addvalue(). This also corrects regval_ctr_copyvalue() in that it cannot create (invalid) regval containers with dupliacte entries... Michael (This used to be commit 2daaaaa835078c543fa12cd1819e8a3d86cf6e5e)
* r24999: Use the new regval_compose() function in regval_ctr_addvalue().Michael Adam2007-10-101-18/+3
| | | | | Michael (This used to be commit dab9ffe602eaca478a73f3b882f543629ce3001e)
* r24998: Add a function regval_compose() to compose a REGISTRY_VALUE fromMichael Adam2007-10-101-0/+30
| | | | | | | | input data. Use this function in a first step to refactor the canonicalization code of smbconf_store_values(). Michael (This used to be commit f4caa2d7d412e2b9bb2a1ce71514551569ccf373)
* r24949: Remove some static buffersVolker Lendecke2007-10-101-2/+2
| | | | (This used to be commit df648d47ff3c4e24f439fda839653bda98323100)
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)