diff options
| author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
|---|---|---|
| committer | <> | 2015-03-17 16:26:24 +0000 |
| commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
| tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /docs/api_reference/C/dbset_h_compare.html | |
| parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
| download | berkeleydb-master.tar.gz | |
Diffstat (limited to 'docs/api_reference/C/dbset_h_compare.html')
| -rw-r--r-- | docs/api_reference/C/dbset_h_compare.html | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/docs/api_reference/C/dbset_h_compare.html b/docs/api_reference/C/dbset_h_compare.html index 33ea090e..03674251 100644 --- a/docs/api_reference/C/dbset_h_compare.html +++ b/docs/api_reference/C/dbset_h_compare.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -41,8 +41,8 @@ <pre class="programlisting">#include <db.h> int -DB->set_h_compare(DB *db, - int (*compare_fcn)(DB *db, const DBT *dbt1, const DBT *dbt2)); </pre> +DB->set_h_compare(DB *db, int (*compare_fcn)(DB *db, + const DBT *dbt1, const DBT *dbt2, size_t *locp)); </pre> <p> Set the Hash key comparison function. The comparison function is called whenever it is necessary to compare a key specified by the @@ -76,7 +76,7 @@ DB->set_h_compare(DB *db, <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58257416"></a>Parameters</h3> + <h3 class="title"><a id="idm7112800"></a>Parameters</h3> </div> </div> </div> @@ -84,14 +84,14 @@ DB->set_h_compare(DB *db, <div class="titlepage"> <div> <div> - <h4 class="title"><a id="idp58265048"></a>compare_fcn</h4> + <h4 class="title"><a id="idm2286408"></a>compare_fcn</h4> </div> </div> </div> <p> The <span class="bold"><strong>compare_fcn</strong></span> function is the application-specified Hash comparison function. The comparison - function takes three parameters: + function takes four parameters: </p> <div class="itemizedlist"> <ul type="disc"> @@ -122,6 +122,15 @@ DB->set_h_compare(DB *db, representing the current database's key. </p> </li> + <li> + <p> + <code class="literal">locp</code> + </p> + <p> + The <span class="bold"><strong>locp</strong></span> parameter is currently + unused, and must be set to NULL or corruption can occur. + </p> + </li> </ul> </div> <p> @@ -142,7 +151,7 @@ DB->set_h_compare(DB *db, <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58352136"></a>Errors</h3> + <h3 class="title"><a id="idm3490912"></a>Errors</h3> </div> </div> </div> @@ -158,7 +167,7 @@ DB->set_h_compare(DB *db, <div class="titlepage"> <div> <div> - <h4 class="title"><a id="idp58331448"></a>EINVAL</h4> + <h4 class="title"><a id="idm4618600"></a>EINVAL</h4> </div> </div> </div> @@ -172,7 +181,7 @@ DB->set_h_compare(DB *db, <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58359688"></a>Class</h3> + <h3 class="title"><a id="idm1328984"></a>Class</h3> </div> </div> </div> @@ -184,7 +193,7 @@ DB->set_h_compare(DB *db, <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58355024"></a>See Also</h3> + <h3 class="title"><a id="idm1892216"></a>See Also</h3> </div> </div> </div> |
