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->rep_get_config()</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="repget_clockskew.html" title="DB_ENV->rep_get_clockskew()" /> 12 <link rel="next" href="repget_limit.html" title="DB_ENV->rep_get_limit()" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">DB_ENV->rep_get_config()</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="repget_clockskew.html">Prev</a> </td> 22 <th width="60%" align="center">Chapter 10. 23 Replication Methods 24 </th> 25 <td width="20%" align="right"> <a accesskey="n" href="repget_limit.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="repget_config"></a>DB_ENV->rep_get_config()</h2> 35 </div> 36 </div> 37 </div> 38 <pre class="programlisting">#include <db.h> 39 40int 41DB_ENV->rep_get_config(DB_ENV *env, u_int32_t which, int *onoffp); </pre> 42 <p> 43 The <code class="methodname">DB_ENV->rep_get_config()</code> method returns whether the specified 44 <span class="bold"><strong>which</strong></span> parameter is currently set or not. 45 See the <a class="xref" href="repconfig.html" title="DB_ENV->rep_set_config()">DB_ENV->rep_set_config()</a> method for the 46 configuration flags that can be set for replication. 47 </p> 48 <p> 49 The <code class="methodname">DB_ENV->rep_get_config()</code> method may be called at any time during 50 the life of the application. 51 </p> 52 <p> 53 The <code class="methodname">DB_ENV->rep_get_config()</code> <span> 54 <span> 55 method returns a non-zero error value on failure and 0 on success. 56 </span> 57 58 </span> 59 </p> 60 <div class="sect2" lang="en" xml:lang="en"> 61 <div class="titlepage"> 62 <div> 63 <div> 64 <h3 class="title"><a id="id1696731"></a>Parameters</h3> 65 </div> 66 </div> 67 </div> 68 <div class="sect3" lang="en" xml:lang="en"> 69 <div class="titlepage"> 70 <div> 71 <div> 72 <h4 class="title"><a id="id1696684"></a>onoffp</h4> 73 </div> 74 </div> 75 </div> 76 <p> 77 The <span class="bold"><strong>onoffp</strong></span> parameter references 78 memory into which the configuration of the specified <span class="bold"><strong>which</strong></span> parameter is copied. 79 </p> 80 <p> 81 If the returned <span class="bold"><strong>onoff</strong></span> value is zero, 82 the parameter is off; otherwise it is on. 83 </p> 84 </div> 85 <div class="sect3" lang="en" xml:lang="en"> 86 <div class="titlepage"> 87 <div> 88 <div> 89 <h4 class="title"><a id="id1696884"></a>which</h4> 90 </div> 91 </div> 92 </div> 93 <p> 94 The <span class="bold"><strong>which</strong></span> parameter is the configuration flag 95 which is being checked. 96 See the <a class="xref" href="repconfig.html" title="DB_ENV->rep_set_config()">DB_ENV->rep_set_config()</a> 97 method for a list of configuration flags that you can 98 provide to this parameter. 99 </p> 100 </div> 101 </div> 102 <div class="sect2" lang="en" xml:lang="en"> 103 <div class="titlepage"> 104 <div> 105 <div> 106 <h3 class="title"><a id="id1696912"></a>Class</h3> 107 </div> 108 </div> 109 </div> 110 <p> 111 <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a> 112 </p> 113 </div> 114 <div class="sect2" lang="en" xml:lang="en"> 115 <div class="titlepage"> 116 <div> 117 <div> 118 <h3 class="title"><a id="id1696748"></a>See Also</h3> 119 </div> 120 </div> 121 </div> 122 <p> 123 <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>, 124 <a class="xref" href="repconfig.html" title="DB_ENV->rep_set_config()">DB_ENV->rep_set_config()</a> 125 </p> 126 </div> 127 </div> 128 <div class="navfooter"> 129 <hr /> 130 <table width="100%" summary="Navigation footer"> 131 <tr> 132 <td width="40%" align="left"><a accesskey="p" href="repget_clockskew.html">Prev</a> </td> 133 <td width="20%" align="center"> 134 <a accesskey="u" href="rep.html">Up</a> 135 </td> 136 <td width="40%" align="right"> <a accesskey="n" href="repget_limit.html">Next</a></td> 137 </tr> 138 <tr> 139 <td width="40%" align="left" valign="top">DB_ENV->rep_get_clockskew() </td> 140 <td width="20%" align="center"> 141 <a accesskey="h" href="index.html">Home</a> 142 </td> 143 <td width="40%" align="right" valign="top"> DB_ENV->rep_get_limit()</td> 144 </tr> 145 </table> 146 </div> 147 </body> 148</html> 149