| 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>log_compare</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="lsn.html" title="Chapter 7. The DB_LSN Handle" /> |
| 11 | <link rel="prev" href="logcget.html" title="DB_LOGC->get()" /> |
| 12 | <link rel="next" href="memp.html" title="Chapter 8. The DB_MPOOLFILE Handle" /> |
| 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">log_compare</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="logcget.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 7. |
| 26 | The DB_LSN Handle |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="memp.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="logcompare"></a>log_compare</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db.h> |
| 42 | |
| 43 | int |
| 44 | log_compare(const DB_LSN *lsn0, const DB_LSN *lsn1); </pre> |
| 45 | <p> |
| 46 | The |
| 47 | <code class="methodname">log_compare()</code> |
| 48 | |
| 49 | method allows the caller to compare two <code class="classname">DB_LSN</code> |
| 50 | structures, returning 0 if they are equal, 1 if <span class="bold"><strong>lsn0</strong></span> is greater than <span class="bold"><strong>lsn1</strong></span>, and -1 if <span class="bold"><strong>lsn0</strong></span> is less than <span class="bold"><strong>lsn1</strong></span>. |
| 51 | </p> |
| 52 | <div class="sect2" lang="en" xml:lang="en"> |
| 53 | <div class="titlepage"> |
| 54 | <div> |
| 55 | <div> |
| 56 | <h3 class="title"><a id="idp53093272"></a>Parameters</h3> |
| 57 | </div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div class="sect3" lang="en" xml:lang="en"> |
| 61 | <div class="titlepage"> |
| 62 | <div> |
| 63 | <div> |
| 64 | <h4 class="title"><a id="idp53105320"></a>lsn0</h4> |
| 65 | </div> |
| 66 | </div> |
| 67 | </div> |
| 68 | <p> |
| 69 | The <span class="bold"><strong>lsn0</strong></span> parameter is one of the |
| 70 | <code class="classname">DB_LSN</code> structures to be compared. |
| 71 | </p> |
| 72 | </div> |
| 73 | <div class="sect3" lang="en" xml:lang="en"> |
| 74 | <div class="titlepage"> |
| 75 | <div> |
| 76 | <div> |
| 77 | <h4 class="title"><a id="idp53113416"></a>lsn1</h4> |
| 78 | </div> |
| 79 | </div> |
| 80 | </div> |
| 81 | <p> |
| 82 | The <span class="bold"><strong>lsn1</strong></span> parameter is one of the |
| 83 | <code class="classname">DB_LSN</code> structures to be compared. |
| 84 | |
| 85 | </p> |
| 86 | </div> |
| 87 | </div> |
| 88 | <div class="sect2" lang="en" xml:lang="en"> |
| 89 | <div class="titlepage"> |
| 90 | <div> |
| 91 | <div> |
| 92 | <h3 class="title"><a id="idp53115088"></a>Class</h3> |
| 93 | </div> |
| 94 | </div> |
| 95 | </div> |
| 96 | <p> |
| 97 | <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a>, |
| 98 | <a class="link" href="logc.html" title="The DB_LOGC Handle">DB_LOGC</a>, |
| 99 | <a class="link" href="lsn.html" title="Chapter 7. The DB_LSN Handle">DB_LSN</a> |
| 100 | </p> |
| 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="idp53110248"></a>See Also</h3> |
| 107 | </div> |
| 108 | </div> |
| 109 | </div> |
| 110 | <p> |
| 111 | <a class="xref" href="lsn.html#loglist" title="Logging Subsystem and Related Methods">Logging Subsystem and Related Methods</a> |
| 112 | </p> |
| 113 | </div> |
| 114 | </div> |
| 115 | <div class="navfooter"> |
| 116 | <hr /> |
| 117 | <table width="100%" summary="Navigation footer"> |
| 118 | <tr> |
| 119 | <td width="40%" align="left"><a accesskey="p" href="logcget.html">Prev</a> </td> |
| 120 | <td width="20%" align="center"> |
| 121 | <a accesskey="u" href="lsn.html">Up</a> |
| 122 | </td> |
| 123 | <td width="40%" align="right"> <a accesskey="n" href="memp.html">Next</a></td> |
| 124 | </tr> |
| 125 | <tr> |
| 126 | <td width="40%" align="left" valign="top">DB_LOGC->get() </td> |
| 127 | <td width="20%" align="center"> |
| 128 | <a accesskey="h" href="index.html">Home</a> |
| 129 | </td> |
| 130 | <td width="40%" align="right" valign="top"> Chapter 8. |
| 131 | The DB_MPOOLFILE Handle |
| 132 | </td> |
| 133 | </tr> |
| 134 | </table> |
| 135 | </div> |
| 136 | </body> |
| 137 | </html> |