Debian Codegraph @

docs/html/redland-general.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>General</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="Redland RDF Library Manual">
8 <link rel="up" href="reference-manual.html" title="Part II. Reference Manual">
9 <link rel="prev" href="redland-world.html" title="World">
10 <link rel="next" href="redland-concepts.html" title="Concepts">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="redland-world.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="reference-manual.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">Redland RDF Library Manual</th>
21 <td><a accesskey="n" href="redland-concepts.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#redland-general.synopsis" class="shortcut">Top</a>
25  | 
26 <a href="#redland-general.description" class="shortcut">Description</a>
27 </td></tr>
28 </table>
29 <div class="refentry">
30 <a name="redland-general"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
32 <td valign="top">
33 <h2><span class="refentrytitle"><a name="redland-general.top_of_page"></a>General</span></h2>
34 <p>General — Static variables and memory handling.</p>
35 </td>
36 <td valign="top" align="right"></td>
37 </tr></table></div>
38 <div class="refsynopsisdiv">
39 <a name="redland-general.synopsis"></a><h2>Synopsis</h2>
40 <pre class="synopsis">#define <a class="link" href="redland-general.html#LIBRDF-VERSION:CAPS" title="LIBRDF_VERSION">LIBRDF_VERSION</a>
41 #define <a class="link" href="redland-general.html#LIBRDF-VERSION-MAJOR:CAPS" title="LIBRDF_VERSION_MAJOR">LIBRDF_VERSION_MAJOR</a>
42 #define <a class="link" href="redland-general.html#LIBRDF-VERSION-MINOR:CAPS" title="LIBRDF_VERSION_MINOR">LIBRDF_VERSION_MINOR</a>
43 #define <a class="link" href="redland-general.html#LIBRDF-VERSION-RELEASE:CAPS" title="LIBRDF_VERSION_RELEASE">LIBRDF_VERSION_RELEASE</a>
44 #define <a class="link" href="redland-general.html#LIBRDF-VERSION-STRING:CAPS" title="LIBRDF_VERSION_STRING">LIBRDF_VERSION_STRING</a>
45 extern const unsigned int <a class="link" href="redland-general.html#librdf-version-decimal" title="librdf_version_decimal">librdf_version_decimal</a>;
46 extern const unsigned int <a class="link" href="redland-general.html#librdf-version-major" title="librdf_version_major">librdf_version_major</a>;
47 extern const unsigned int <a class="link" href="redland-general.html#librdf-version-release" title="librdf_version_release">librdf_version_release</a>;
48 extern const unsigned int <a class="link" href="redland-general.html#librdf-version-minor" title="librdf_version_minor">librdf_version_minor</a>;
49 extern const char * const <a class="link" href="redland-general.html#librdf-version-string" title="librdf_version_string">librdf_version_string</a>;
50 extern const char * const <a class="link" href="redland-general.html#librdf-copyright-string" title="librdf_copyright_string">librdf_copyright_string</a>;
51 extern const char * const <a class="link" href="redland-general.html#librdf-short-copyright-string" title="librdf_short_copyright_string">librdf_short_copyright_string</a>;
52 extern const char * const <a class="link" href="redland-general.html#librdf-license-string" title="librdf_license_string">librdf_license_string</a>;
53 extern const char * const <a class="link" href="redland-general.html#librdf-home-url-string" title="librdf_home_url_string">librdf_home_url_string</a>;
54 <span class="returnvalue">void</span> * <a class="link" href="redland-general.html#librdf-alloc-memory" title="librdf_alloc_memory ()">librdf_alloc_memory</a> (<em class="parameter"><code><span class="type">size_t</span> size</code></em>);
55 <span class="returnvalue">void</span> * <a class="link" href="redland-general.html#librdf-calloc-memory" title="librdf_calloc_memory ()">librdf_calloc_memory</a> (<em class="parameter"><code><span class="type">size_t</span> nmemb</code></em>,
56 <em class="parameter"><code><span class="type">size_t</span> size</code></em>);
57 <span class="returnvalue">void</span> <a class="link" href="redland-general.html#librdf-free-memory" title="librdf_free_memory ()">librdf_free_memory</a> (<em class="parameter"><code><span class="type">void</span> *ptr</code></em>);
58 #define <a class="link" href="redland-general.html#REDLAND-DEPRECATED:CAPS" title="REDLAND_DEPRECATED">REDLAND_DEPRECATED</a>
59 </pre>
60 </div>
61 <div class="refsect1">
62 <a name="redland-general.description"></a><h2>Description</h2>
63 <p>
64 Static variables for version numbers and strings, copyright strings and
65 home page. Functions for in-library memory allocation and deallocation.
66 </p>
67 </div>
68 <div class="refsect1">
69 <a name="redland-general.details"></a><h2>Details</h2>
70 <div class="refsect2">
71 <a name="LIBRDF-VERSION:CAPS"></a><h3>LIBRDF_VERSION</h3>
72 <pre class="programlisting">#define LIBRDF_VERSION 10017
73 </pre>
74 <p>
75 Redland librdf library version number
76 </p>
77 <p>
78 Format: major * 10000 + minor * 100 + release
79 </p>
80 </div>
81 <hr>
82 <div class="refsect2">
83 <a name="LIBRDF-VERSION-MAJOR:CAPS"></a><h3>LIBRDF_VERSION_MAJOR</h3>
84 <pre class="programlisting">#define LIBRDF_VERSION_MAJOR 1
85 </pre>
86 <p>
87 Redland librdf library major version
88 </p>
89 </div>
90 <hr>
91 <div class="refsect2">
92 <a name="LIBRDF-VERSION-MINOR:CAPS"></a><h3>LIBRDF_VERSION_MINOR</h3>
93 <pre class="programlisting">#define LIBRDF_VERSION_MINOR 0
94 </pre>
95 <p>
96 Redland librdf library minor version
97 </p>
98 </div>
99 <hr>
100 <div class="refsect2">
101 <a name="LIBRDF-VERSION-RELEASE:CAPS"></a><h3>LIBRDF_VERSION_RELEASE</h3>
102 <pre class="programlisting">#define LIBRDF_VERSION_RELEASE 17
103 </pre>
104 <p>
105 Redland librdf library release
106 </p>
107 </div>
108 <hr>
109 <div class="refsect2">
110 <a name="LIBRDF-VERSION-STRING:CAPS"></a><h3>LIBRDF_VERSION_STRING</h3>
111 <pre class="programlisting">#define LIBRDF_VERSION_STRING "1.0.17"
112 </pre>
113 <p>
114 Redland librdf library version string
115 </p>
116 </div>
117 <hr>
118 <div class="refsect2">
119 <a name="librdf-version-decimal"></a><h3>librdf_version_decimal</h3>
120 <pre class="programlisting">extern const unsigned int librdf_version_decimal;
121 </pre>
122 <p>
123 Redland librdf version as a decimal number.
124 </p>
125 <p>
126 Format: major * 10000 + minor * 100 + release
127 </p>
128 </div>
129 <hr>
130 <div class="refsect2">
131 <a name="librdf-version-major"></a><h3>librdf_version_major</h3>
132 <pre class="programlisting">extern const unsigned int librdf_version_major;
133 </pre>
134 <p>
135 Redland librdf major version number.
136 </p>
137 </div>
138 <hr>
139 <div class="refsect2">
140 <a name="librdf-version-release"></a><h3>librdf_version_release</h3>
141 <pre class="programlisting">extern const unsigned int librdf_version_release;
142 </pre>
143 <p>
144 Redland librdf release version number.
145 </p>
146 </div>
147 <hr>
148 <div class="refsect2">
149 <a name="librdf-version-minor"></a><h3>librdf_version_minor</h3>
150 <pre class="programlisting">extern const unsigned int librdf_version_minor;
151 </pre>
152 <p>
153 Redland librdf minor version number.
154 </p>
155 </div>
156 <hr>
157 <div class="refsect2">
158 <a name="librdf-version-string"></a><h3>librdf_version_string</h3>
159 <pre class="programlisting">extern const char * const librdf_version_string;
160 </pre>
161 <p>
162 Redland librdf version as a string.
163 </p>
164 </div>
165 <hr>
166 <div class="refsect2">
167 <a name="librdf-copyright-string"></a><h3>librdf_copyright_string</h3>
168 <pre class="programlisting">extern const char * const librdf_copyright_string;
169 </pre>
170 <p>
171 Copyright string (multiple lines).
172 </p>
173 </div>
174 <hr>
175 <div class="refsect2">
176 <a name="librdf-short-copyright-string"></a><h3>librdf_short_copyright_string</h3>
177 <pre class="programlisting">extern const char * const librdf_short_copyright_string;
178 </pre>
179 <p>
180 Short copyright string (one line).
181 </p>
182 </div>
183 <hr>
184 <div class="refsect2">
185 <a name="librdf-license-string"></a><h3>librdf_license_string</h3>
186 <pre class="programlisting">extern const char * const librdf_license_string;
187 </pre>
188 <p>
189 Redland librdf license string.
190 </p>
191 </div>
192 <hr>
193 <div class="refsect2">
194 <a name="librdf-home-url-string"></a><h3>librdf_home_url_string</h3>
195 <pre class="programlisting">extern const char * const librdf_home_url_string;
196 </pre>
197 <p>
198 Redland librdf home page URL.
199 </p>
200 </div>
201 <hr>
202 <div class="refsect2">
203 <a name="librdf-alloc-memory"></a><h3>librdf_alloc_memory ()</h3>
204 <pre class="programlisting"><span class="returnvalue">void</span> * librdf_alloc_memory (<em class="parameter"><code><span class="type">size_t</span> size</code></em>);</pre>
205 <p>
206 Allocate memory inside the library similar to <code class="function">malloc()</code>.
207 </p>
208 <p>
209 Required for some runtimes where memory must be freed within the same
210 shared object it was allocated in.
211 </p>
212 <div class="variablelist"><table border="0">
213 <col align="left" valign="top">
214 <tbody>
215 <tr>
216 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
217 <td>alloc size</td>
218 </tr>
219 <tr>
220 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
221 <td>pointer to memory or NULL on failure</td>
222 </tr>
223 </tbody>
224 </table></div>
225 </div>
226 <hr>
227 <div class="refsect2">
228 <a name="librdf-calloc-memory"></a><h3>librdf_calloc_memory ()</h3>
229 <pre class="programlisting"><span class="returnvalue">void</span> * librdf_calloc_memory (<em class="parameter"><code><span class="type">size_t</span> nmemb</code></em>,
230 <em class="parameter"><code><span class="type">size_t</span> size</code></em>);</pre>
231 <p>
232 Allocate zeroed array of items inside the library similar to <code class="function">calloc()</code>.
233 </p>
234 <p>
235 Required for some runtimes where memory must be freed within the same
236 shared object it was allocated in.
237 </p>
238 <div class="variablelist"><table border="0">
239 <col align="left" valign="top">
240 <tbody>
241 <tr>
242 <td><p><span class="term"><em class="parameter"><code>nmemb</code></em> :</span></p></td>
243 <td>number of members</td>
244 </tr>
245 <tr>
246 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
247 <td>size of member</td>
248 </tr>
249 <tr>
250 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
251 <td>pointer to memory or NULL on failure</td>
252 </tr>
253 </tbody>
254 </table></div>
255 </div>
256 <hr>
257 <div class="refsect2">
258 <a name="librdf-free-memory"></a><h3>librdf_free_memory ()</h3>
259 <pre class="programlisting"><span class="returnvalue">void</span> librdf_free_memory (<em class="parameter"><code><span class="type">void</span> *ptr</code></em>);</pre>
260 <p>
261 Free memory allocated in the library.
262 </p>
263 <p>
264 Required for some runtimes where memory must be freed within the same
265 shared object it was allocated in.
266 </p>
267 <div class="variablelist"><table border="0">
268 <col align="left" valign="top">
269 <tbody><tr>
270 <td><p><span class="term"><em class="parameter"><code>ptr</code></em> :</span></p></td>
271 <td>pointer to free</td>
272 </tr></tbody>
273 </table></div>
274 </div>
275 <hr>
276 <div class="refsect2">
277 <a name="REDLAND-DEPRECATED:CAPS"></a><h3>REDLAND_DEPRECATED</h3>
278 <pre class="programlisting">#define REDLAND_DEPRECATED __attribute__((deprecated))
279 </pre>
280 <p>
281 When defined before a function, indicates that the function
282 has been deprecated and may be replaced in a future release.
283 With some versions of gcc this may give a compilation warning.
284 </p>
285 </div>
286 </div>
287 </div>
288 <div class="footer">
289 <hr>
290 Generated by GTK-Doc V1.18</div>
291 </body>
292 </html>