Debian Codegraph @

docs/api_reference/C/dbsite_close.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DB_SITE-&gt;close()</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C API Reference" />
10 <link rel="up" href="rep.html" title="Chapter 10.  Replication Methods" />
11 <link rel="prev" href="dbchannel_set_timeout.html" title="DB_CHANNEL-&gt;set_timeout()" />
12 <link rel="next" href="dbsite_get_config.html" title="DB_SITE-&gt;get_config()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DB_SITE-&gt;close()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbchannel_set_timeout.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 10. 
26 Replication Methods
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="dbsite_get_config.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="dbsite_close"></a>DB_SITE-&gt;close()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_SITE-&gt;close(DB_SITE *site); </pre>
45 <p>
46 The <code class="methodname">DB_SITE-&gt;close()</code> method
47 deallocates the DB_SITE handle. The handle must not be accessed
48 again after this method is called, regardless of the return value.
49 </p>
50 <p>
51 Use of this method does not in any way affect the configuration of
52 the site to which the handle refers, or of the replication group in
53 general.
54 </p>
55 <p>
56 All DB_SITE handles must be closed before the owning DB_ENV handle
57 is closed.
58 </p>
59 <p>
60 The <code class="methodname">DB_SITE-&gt;close()</code> <span>
61 <span>
62 method returns a non-zero error value on failure and 0 on success.
63 </span>
64
65 </span>
66 </p>
67 <div class="sect2" lang="en" xml:lang="en">
68 <div class="titlepage">
69 <div>
70 <div>
71 <h3 class="title"><a id="idp53876232"></a>Errors</h3>
72 </div>
73 </div>
74 </div>
75 <p>
76 The <code class="methodname">DB_SITE-&gt;close()</code> <span>
77 <span>
78 method may fail and return one of the following non-zero errors:
79 </span>
80
81 </span>
82 </p>
83 </div>
84 <div class="sect2" lang="en" xml:lang="en">
85 <div class="titlepage">
86 <div>
87 <div>
88 <h3 class="title"><a id="idp53873904"></a>Class</h3>
89 </div>
90 </div>
91 </div>
92 <p>
93 <a class="link" href="db_site.html" title="The DB_SITE Handle">DB_SITE</a>
94 </p>
95 </div>
96 <div class="sect2" lang="en" xml:lang="en">
97 <div class="titlepage">
98 <div>
99 <div>
100 <h3 class="title"><a id="idp53891880"></a>See Also</h3>
101 </div>
102 </div>
103 </div>
104 <p>
105 <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>
106 </p>
107 </div>
108 </div>
109 <div class="navfooter">
110 <hr />
111 <table width="100%" summary="Navigation footer">
112 <tr>
113 <td width="40%" align="left"><a accesskey="p" href="dbchannel_set_timeout.html">Prev</a> </td>
114 <td width="20%" align="center">
115 <a accesskey="u" href="rep.html">Up</a>
116 </td>
117 <td width="40%" align="right"> <a accesskey="n" href="dbsite_get_config.html">Next</a></td>
118 </tr>
119 <tr>
120 <td width="40%" align="left" valign="top">DB_CHANNEL-&gt;set_timeout() </td>
121 <td width="20%" align="center">
122 <a accesskey="h" href="index.html">Home</a>
123 </td>
124 <td width="40%" align="right" valign="top"> DB_SITE-&gt;get_config()</td>
125 </tr>
126 </table>
127 </div>
128 </body>
129 </html>