Debian Codegraph @

docs/api_reference/C/envget_backup_callbacks.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_ENV-&gt;get_backup_callbacks()</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="env.html" title="Chapter 5.  The DB_ENV Handle" />
11 <link rel="prev" href="envget_errpfx.html" title="DB_ENV-&gt;get_errpfx()" />
12 <link rel="next" href="envget_backup_config.html" title="DB_ENV-&gt;get_backup_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_ENV-&gt;get_backup_callbacks()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envget_errpfx.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 5. 
26 The DB_ENV Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="envget_backup_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="envget_backup_callbacks"></a>DB_ENV-&gt;get_backup_callbacks()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 DB_ENV-&gt;get_backup_callbacks(DB_ENV,
44 int (**open_func)(DB_ENV *, const char *dbname,
45 const char *target, void **handle),
46 int (**write_func)(DB_ENV *, u_int32_t offset_gbytes,
47 u_int32_t offset_bytes, u_int32_t size,
48 u_int8_t *buf, void *handle),
49 int (**close_func)(DB_ENV *, const char *dbname, void *handle)); </pre>
50 <p>
51 The <code class="methodname">DB_ENV-&gt;get_backup_callbacks()</code> method
52 retrieves the three callback functions which can be used by the
53 <a class="xref" href="envbackup.html" title="DB_ENV-&gt;backup()">DB_ENV-&gt;backup()</a>
54 or
55 <a class="xref" href="envdbbackup.html" title="DB_ENV-&gt;dbbackup()">DB_ENV-&gt;dbbackup()</a>
56 methods to override their default behavior. These callbacks are
57 configured using the
58 <a class="xref" href="envset_backup_callbacks.html" title="DB_ENV-&gt;set_backup_callbacks()">DB_ENV-&gt;set_backup_callbacks()</a>
59 method.
60 </p>
61 <p>
62 The <code class="methodname">DB_ENV-&gt;get_backup_callbacks()</code> method may
63 be called at any time during the life of the application.
64 </p>
65 <p>
66 The <code class="methodname">DB_ENV-&gt;get_backup_callbacks()</code> <span>
67 <span>
68 method returns a non-zero error value on failure and 0 on success.
69 </span>
70
71 </span>
72 </p>
73 <div class="sect2" lang="en" xml:lang="en">
74 <div class="titlepage">
75 <div>
76 <div>
77 <h3 class="title"><a id="idp51486920"></a>Parameters</h3>
78 </div>
79 </div>
80 </div>
81 <div class="sect3" lang="en" xml:lang="en">
82 <div class="titlepage">
83 <div>
84 <div>
85 <h4 class="title"><a id="idp51486272"></a>open_func</h4>
86 </div>
87 </div>
88 </div>
89 <p>
90 The <span class="bold"><strong>open_func</strong></span> parameter
91 is the function used when a target location is opened
92 during a backup.
93 </p>
94 </div>
95 <div class="sect3" lang="en" xml:lang="en">
96 <div class="titlepage">
97 <div>
98 <div>
99 <h4 class="title"><a id="idp51482552"></a>write_func</h4>
100 </div>
101 </div>
102 </div>
103 <p>
104 The <span class="bold"><strong>close_func</strong></span> parameter
105 is the function used to write data during a backup.
106 </p>
107 </div>
108 <div class="sect3" lang="en" xml:lang="en">
109 <div class="titlepage">
110 <div>
111 <div>
112 <h4 class="title"><a id="idp51479624"></a>close_func</h4>
113 </div>
114 </div>
115 </div>
116 <p>
117 The <span class="bold"><strong>close_func</strong></span> parameter
118 is the function used when ending a backup and closing a
119 backup target.
120 </p>
121 </div>
122 </div>
123 <div class="sect2" lang="en" xml:lang="en">
124 <div class="titlepage">
125 <div>
126 <div>
127 <h3 class="title"><a id="idp51490752"></a>Class</h3>
128 </div>
129 </div>
130 </div>
131 <p>
132 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>
133 </p>
134 </div>
135 <div class="sect2" lang="en" xml:lang="en">
136 <div class="titlepage">
137 <div>
138 <div>
139 <h3 class="title"><a id="idp51482400"></a>See Also</h3>
140 </div>
141 </div>
142 </div>
143 <p>
144 <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a>,
145 <a class="xref" href="envset_backup_callbacks.html" title="DB_ENV-&gt;set_backup_callbacks()">DB_ENV-&gt;set_backup_callbacks()</a>,
146 <a class="xref" href="envbackup.html" title="DB_ENV-&gt;backup()">DB_ENV-&gt;backup()</a>, and
147 <a class="xref" href="envdbbackup.html" title="DB_ENV-&gt;dbbackup()">DB_ENV-&gt;dbbackup()</a>.
148 </p>
149 </div>
150 </div>
151 <div class="navfooter">
152 <hr />
153 <table width="100%" summary="Navigation footer">
154 <tr>
155 <td width="40%" align="left"><a accesskey="p" href="envget_errpfx.html">Prev</a> </td>
156 <td width="20%" align="center">
157 <a accesskey="u" href="env.html">Up</a>
158 </td>
159 <td width="40%" align="right"> <a accesskey="n" href="envget_backup_config.html">Next</a></td>
160 </tr>
161 <tr>
162 <td width="40%" align="left" valign="top">DB_ENV-&gt;get_errpfx() </td>
163 <td width="20%" align="center">
164 <a accesskey="h" href="index.html">Home</a>
165 </td>
166 <td width="40%" align="right" valign="top"> DB_ENV-&gt;get_backup_config()</td>
167 </tr>
168 </table>
169 </div>
170 </body>
171 </html>