Debian Codegraph @

docs/api_reference/C/seqset_flags.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_SEQUENCE-&gt;set_flags()</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="seq.html" title="Chapter 11.  The DB_SEQUENCE Handle" />
11 <link rel="prev" href="seqset_cachesize.html" title="DB_SEQUENCE-&gt;set_cachesize()" />
12 <link rel="next" href="seqset_range.html" title="DB_SEQUENCE-&gt;set_range()" />
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_SEQUENCE-&gt;set_flags()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="seqset_cachesize.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 11. 
26 The DB_SEQUENCE Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="seqset_range.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="seqset_flags"></a>DB_SEQUENCE-&gt;set_flags()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_SEQUENCE-&gt;set_flags(DB_SEQUENCE *seq, u_int32_t flags); </pre>
45 <p>
46 Configure a sequence. The flags are only effective when creating a
47 sequence. Calling <code class="methodname">DB_SEQUENCE-&gt;set_flags()</code> is additive; there is no
48 way to clear flags.
49 </p>
50 <p>
51 The <code class="methodname">DB_SEQUENCE-&gt;set_flags()</code> method may not be called after the
52 <a class="xref" href="seqopen.html" title="DB_SEQUENCE-&gt;open()">DB_SEQUENCE-&gt;open()</a> method is called.
53 </p>
54 <p>
55 The <code class="methodname">DB_SEQUENCE-&gt;set_flags()</code> <span>
56 <span>
57 method returns a non-zero error value on failure and 0 on success.
58 </span>
59
60 </span>
61 </p>
62 <div class="sect2" lang="en" xml:lang="en">
63 <div class="titlepage">
64 <div>
65 <div>
66 <h3 class="title"><a id="idp54681256"></a>Parameters</h3>
67 </div>
68 </div>
69 </div>
70 <div class="sect3" lang="en" xml:lang="en">
71 <div class="titlepage">
72 <div>
73 <div>
74 <h4 class="title"><a id="idp54681728"></a>flags</h4>
75 </div>
76 </div>
77 </div>
78 <p>
79 The <span class="bold"><strong>flags</strong></span> parameter must be set to 0
80 or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing
81 together one or more of the following values:
82 </p>
83 <div class="itemizedlist">
84 <ul type="disc">
85 <li>
86 <p>
87 <code class="literal">DB_SEQ_DEC</code>
88 </p>
89 <p>
90 Specify that the sequence should be decremented.
91 </p>
92 </li>
93 <li>
94 <p>
95 <code class="literal">DB_SEQ_INC</code>
96 </p>
97 <p>
98 Specify that the sequence should be incremented. This is the default.
99 </p>
100 </li>
101 <li>
102 <p><a id="seqset_flags_DB_SEQ_WRAP"></a>
103 <code class="literal">DB_SEQ_WRAP</code>
104 </p>
105 <p>
106 Specify that the sequence should wrap around when it is incremented
107 (decremented) past the specified maximum (minimum) value.
108 </p>
109 </li>
110 </ul>
111 </div>
112 </div>
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="idp54690704"></a>Errors</h3>
119 </div>
120 </div>
121 </div>
122 <p>
123 The <code class="methodname">DB_SEQUENCE-&gt;set_flags()</code> <span>
124 <span>
125 method may fail and return one of the following non-zero errors:
126 </span>
127
128 </span>
129 </p>
130 <div class="sect3" lang="en" xml:lang="en">
131 <div class="titlepage">
132 <div>
133 <div>
134 <h4 class="title"><a id="idp54696128"></a>EINVAL</h4>
135 </div>
136 </div>
137 </div>
138 <p>
139 An invalid flag value or parameter was specified.
140 </p>
141 </div>
142 </div>
143 <div class="sect2" lang="en" xml:lang="en">
144 <div class="titlepage">
145 <div>
146 <div>
147 <h3 class="title"><a id="idp54694920"></a>Class</h3>
148 </div>
149 </div>
150 </div>
151 <p>
152 <a class="link" href="seq.html" title="Chapter 11.  The DB_SEQUENCE Handle">DB_SEQUENCE</a>
153 </p>
154 </div>
155 <div class="sect2" lang="en" xml:lang="en">
156 <div class="titlepage">
157 <div>
158 <div>
159 <h3 class="title"><a id="idp54691896"></a>See Also</h3>
160 </div>
161 </div>
162 </div>
163 <p>
164 <a class="xref" href="seq.html#seqlist" title="Sequences and Related Methods">Sequences and Related Methods</a>
165 </p>
166 </div>
167 </div>
168 <div class="navfooter">
169 <hr />
170 <table width="100%" summary="Navigation footer">
171 <tr>
172 <td width="40%" align="left"><a accesskey="p" href="seqset_cachesize.html">Prev</a> </td>
173 <td width="20%" align="center">
174 <a accesskey="u" href="seq.html">Up</a>
175 </td>
176 <td width="40%" align="right"> <a accesskey="n" href="seqset_range.html">Next</a></td>
177 </tr>
178 <tr>
179 <td width="40%" align="left" valign="top">DB_SEQUENCE-&gt;set_cachesize() </td>
180 <td width="20%" align="center">
181 <a accesskey="h" href="index.html">Home</a>
182 </td>
183 <td width="40%" align="right" valign="top"> DB_SEQUENCE-&gt;set_range()</td>
184 </tr>
185 </table>
186 </div>
187 </body>
188 </html>