| 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->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="dbsite_close.html" title="DB_SITE->close()" /> |
| 12 | <link rel="next" href="dbsite_get_address.html" title="DB_SITE->get_address()" /> |
| 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->get_config()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="dbsite_close.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_address.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_get_config"></a>DB_SITE->get_config()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db.h> |
| 42 | |
| 43 | int |
| 44 | DB_SITE->get_config(DB_SITE *site, u_int32_t which, |
| 45 | u_int32_t *valuep); </pre> |
| 46 | <p> |
| 47 | The <code class="methodname">DB_SITE->get_config()</code> method returns |
| 48 | whether the specified <span class="bold"><strong>which</strong></span> |
| 49 | parameter is currently set. See the |
| 50 | <a class="xref" href="dbsite_set_config.html" title="DB_SITE->set_config()">DB_SITE->set_config()</a> |
| 51 | method for the configuration flags that can be set for a |
| 52 | DB_SITE handle. |
| 53 | </p> |
| 54 | <p> |
| 55 | The <code class="methodname">DB_SITE->get_config()</code> method may be |
| 56 | called at any time during the life of the application. |
| 57 | </p> |
| 58 | <p> |
| 59 | The <code class="methodname">DB_SITE->get_config()</code> <span> |
| 60 | <span> |
| 61 | method returns a non-zero error value on failure and 0 on success. |
| 62 | </span> |
| 63 | |
| 64 | </span> |
| 65 | </p> |
| 66 | <div class="sect2" lang="en" xml:lang="en"> |
| 67 | <div class="titlepage"> |
| 68 | <div> |
| 69 | <div> |
| 70 | <h3 class="title"><a id="idp53910296"></a>Parameters</h3> |
| 71 | </div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div class="sect3" lang="en" xml:lang="en"> |
| 75 | <div class="titlepage"> |
| 76 | <div> |
| 77 | <div> |
| 78 | <h4 class="title"><a id="idp53910768"></a>which</h4> |
| 79 | </div> |
| 80 | </div> |
| 81 | </div> |
| 82 | <p> |
| 83 | The <span class="bold"><strong>which</strong></span> parameter is |
| 84 | the configuration flag to check. See the |
| 85 | <a class="xref" href="dbsite_set_config.html" title="DB_SITE->set_config()">DB_SITE->set_config()</a> |
| 86 | method for a list of configuration flags that you can |
| 87 | provide to this parameter. |
| 88 | </p> |
| 89 | </div> |
| 90 | <div class="sect3" lang="en" xml:lang="en"> |
| 91 | <div class="titlepage"> |
| 92 | <div> |
| 93 | <div> |
| 94 | <h4 class="title"><a id="idp53890248"></a>valuep</h4> |
| 95 | </div> |
| 96 | </div> |
| 97 | </div> |
| 98 | <p> |
| 99 | The <span class="bold"><strong>valuep</strong></span> parameter references |
| 100 | memory into which the configuration of the specified <span class="bold"><strong>which</strong></span> parameter is copied. |
| 101 | </p> |
| 102 | <p> |
| 103 | If the returned value is zero, the parameter is off; |
| 104 | otherwise it is on. |
| 105 | </p> |
| 106 | </div> |
| 107 | </div> |
| 108 | <div class="sect2" lang="en" xml:lang="en"> |
| 109 | <div class="titlepage"> |
| 110 | <div> |
| 111 | <div> |
| 112 | <h3 class="title"><a id="idp53859752"></a>Class</h3> |
| 113 | </div> |
| 114 | </div> |
| 115 | </div> |
| 116 | <p> |
| 117 | <a class="link" href="db_site.html" title="The DB_SITE Handle">DB_SITE</a> |
| 118 | </p> |
| 119 | </div> |
| 120 | <div class="sect2" lang="en" xml:lang="en"> |
| 121 | <div class="titlepage"> |
| 122 | <div> |
| 123 | <div> |
| 124 | <h3 class="title"><a id="idp53896328"></a>See Also</h3> |
| 125 | </div> |
| 126 | </div> |
| 127 | </div> |
| 128 | <p> |
| 129 | <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>, |
| 130 | <a class="xref" href="dbsite_set_config.html" title="DB_SITE->set_config()">DB_SITE->set_config()</a> |
| 131 | </p> |
| 132 | </div> |
| 133 | </div> |
| 134 | <div class="navfooter"> |
| 135 | <hr /> |
| 136 | <table width="100%" summary="Navigation footer"> |
| 137 | <tr> |
| 138 | <td width="40%" align="left"><a accesskey="p" href="dbsite_close.html">Prev</a> </td> |
| 139 | <td width="20%" align="center"> |
| 140 | <a accesskey="u" href="rep.html">Up</a> |
| 141 | </td> |
| 142 | <td width="40%" align="right"> <a accesskey="n" href="dbsite_get_address.html">Next</a></td> |
| 143 | </tr> |
| 144 | <tr> |
| 145 | <td width="40%" align="left" valign="top">DB_SITE->close() </td> |
| 146 | <td width="20%" align="center"> |
| 147 | <a accesskey="h" href="index.html">Home</a> |
| 148 | </td> |
| 149 | <td width="40%" align="right" valign="top"> DB_SITE->get_address()</td> |
| 150 | </tr> |
| 151 | </table> |
| 152 | </div> |
| 153 | </body> |
| 154 | </html> |