• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/docs/ref/upgrade.4.3/
1<!--$Id: err.so,v 1.3 2004/09/28 14:13:09 bostic Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
6<title>Berkeley DB Reference Guide: Release 4.3: DB_ENV-&gt;set_errcall, DB-&gt;set_errcall</title>
7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<table width="100%"><tr valign=top>
12<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></b></td>
13<td align=right><a href="../upgrade.4.3/java.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.4.3/cput.html"><img src="../../images/next.gif" alt="Next"></a>
14</td></tr></table>
15<p align=center><b>Release 4.3: DB_ENV-&gt;set_errcall, DB-&gt;set_errcall</b></p>
16<p>The signature of the error callback passed to the
17<a href="../../api_c/env_set_errcall.html">DB_ENV-&gt;set_errcall</a> and <a href="../../api_c/db_set_errcall.html">DB-&gt;set_errcall</a> methods has changed in
18the 4.3 release.  For example, if you previously had a function such as
19this:</p>
20<blockquote><pre>void handle_db_error(const char *prefix, char *message);</pre></blockquote>
21<p>it should be changed to this:</p>
22<blockquote><pre>void handle_db_error(const DB_ENV *dbenv,
23    const char *prefix, const char *message);</pre></blockquote>
24<p>This change adds the <a href="../../api_c/env_class.html">DB_ENV</a> handle to provide database
25environment context for the callback function, and incidentally makes
26it clear the message parameter cannot be changed by the callback.</p>
27<table width="100%"><tr><td><br></td><td align=right><a href="../upgrade.4.3/java.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.4.3/cput.html"><img src="../../images/next.gif" alt="Next"></a>
28</td></tr></table>
29<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
30</body>
31</html>
32