File: liboil-liboiltypes.html

package info (click to toggle)
liboil 0.3.17-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 7,240 kB
  • ctags: 6,031
  • sloc: ansic: 47,277; xml: 12,671; sh: 10,222; perl: 1,095; asm: 1,072; makefile: 748
file content (464 lines) | stat: -rw-r--r-- 16,134 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>liboiltypes</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
<link rel="home" href="index.html" title="Liboil Reference Manual">
<link rel="up" href="ch02.html" title="Liboil Unstable API">
<link rel="prev" href="liboil-liboiltest.html" title="OilTest">
<link rel="next" href="liboil-liboilmacros.html" title="Macros">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Liboil Stable API">
<link rel="chapter" href="ch02.html" title="Liboil Unstable API">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="liboil-liboiltest.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Liboil Reference Manual</th>
<td><a accesskey="n" href="liboil-liboilmacros.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#liboil-liboiltypes.synopsis" class="shortcut">Top</a>
                 | 
                <a href="#liboil-liboiltypes.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="liboiltypes">
<a name="liboil-liboiltypes"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="liboil-liboiltypes.top_of_page"></a>liboiltypes</span></h2>
<p>liboiltypes — Internal Liboil types</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="liboil-liboiltypes.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
enum                <a class="link" href="liboil-liboiltypes.html#OilType" title="enum OilType">OilType</a>;
int                 <a class="link" href="liboil-liboiltypes.html#oil-type-sizeof" title="oil_type_sizeof ()">oil_type_sizeof</a>                     (<a class="link" href="liboil-liboiltypes.html#OilType" title="enum OilType">OilType</a> type);
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-is-floating-point" title="oil_type_is_floating_point()">oil_type_is_floating_point</a>          (type)
const char *        <a class="link" href="liboil-liboiltypes.html#oil-type-name" title="oil_type_name ()">oil_type_name</a>                       (<a class="link" href="liboil-liboiltypes.html#OilType" title="enum OilType">OilType</a> type);
enum                <a class="link" href="liboil-liboiltypes.html#OilArgType" title="enum OilArgType">OilArgType</a>;
const char *        <a class="link" href="liboil-liboiltypes.html#oil-arg-type-name" title="oil_arg_type_name ()">oil_arg_type_name</a>                   (<a class="link" href="liboil-liboiltypes.html#OilArgType" title="enum OilArgType">OilArgType</a> type);
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-s8" title="oil_type_s8">oil_type_s8</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-u8" title="oil_type_u8">oil_type_u8</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-s16" title="oil_type_s16">oil_type_s16</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-u16" title="oil_type_u16">oil_type_u16</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-s32" title="oil_type_s32">oil_type_s32</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-u32" title="oil_type_u32">oil_type_u32</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-s64" title="oil_type_s64">oil_type_s64</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-u64" title="oil_type_u64">oil_type_u64</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-f32" title="oil_type_f32">oil_type_f32</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-f64" title="oil_type_f64">oil_type_f64</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-min-s8" title="oil_type_min_s8">oil_type_min_s8</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-min-u8" title="oil_type_min_u8">oil_type_min_u8</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-min-s16" title="oil_type_min_s16">oil_type_min_s16</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-min-u16" title="oil_type_min_u16">oil_type_min_u16</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-min-s32" title="oil_type_min_s32">oil_type_min_s32</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-min-u32" title="oil_type_min_u32">oil_type_min_u32</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-max-s8" title="oil_type_max_s8">oil_type_max_s8</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-max-u8" title="oil_type_max_u8">oil_type_max_u8</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-max-s16" title="oil_type_max_s16">oil_type_max_s16</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-max-u16" title="oil_type_max_u16">oil_type_max_u16</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-max-s32" title="oil_type_max_s32">oil_type_max_s32</a>
#define             <a class="link" href="liboil-liboiltypes.html#oil-type-max-u32" title="oil_type_max_u32">oil_type_max_u32</a>
</pre>
</div>
<div class="refsect1" title="Description">
<a name="liboil-liboiltypes.description"></a><h2>Description</h2>
<p>
</p>
<p>
</p>
</div>
<div class="refsect1" title="Details">
<a name="liboil-liboiltypes.details"></a><h2>Details</h2>
<div class="refsect2" title="enum OilType">
<a name="OilType"></a><h3>enum OilType</h3>
<pre class="programlisting">typedef enum {
  OIL_TYPE_UNKNOWN = 0,
  OIL_TYPE_INT,
  OIL_TYPE_s8,
  OIL_TYPE_u8,
  OIL_TYPE_s16,
  OIL_TYPE_u16,
  OIL_TYPE_s32,
  OIL_TYPE_u32,
  OIL_TYPE_s64,
  OIL_TYPE_u64,
  OIL_TYPE_f32,
  OIL_TYPE_f64,
  OIL_TYPE_s8p,
  OIL_TYPE_u8p,
  OIL_TYPE_s16p,
  OIL_TYPE_u16p,
  OIL_TYPE_s32p,
  OIL_TYPE_u32p,
  OIL_TYPE_s64p,
  OIL_TYPE_u64p,
  OIL_TYPE_f32p,
  OIL_TYPE_f64p,
} OilType;
</pre>
<p>
Enumeration containing the data types understood by Liboil.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_sizeof ()">
<a name="oil-type-sizeof"></a><h3>oil_type_sizeof ()</h3>
<pre class="programlisting">int                 oil_type_sizeof                     (<a class="link" href="liboil-liboiltypes.html#OilType" title="enum OilType">OilType</a> type);</pre>
<p>
Looks up the size of the OilType represented by <em class="parameter"><code>type</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> the OilType
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the size of <em class="parameter"><code>type</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="oil_type_is_floating_point()">
<a name="oil-type-is-floating-point"></a><h3>oil_type_is_floating_point()</h3>
<pre class="programlisting">#define             oil_type_is_floating_point(type)</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="oil_type_name ()">
<a name="oil-type-name"></a><h3>oil_type_name ()</h3>
<pre class="programlisting">const char *        oil_type_name                       (<a class="link" href="liboil-liboiltypes.html#OilType" title="enum OilType">OilType</a> type);</pre>
<p>
Looks up the name of the OilType given by <em class="parameter"><code>type</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> an OilType
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a string containing the name of the OilType <em class="parameter"><code>type</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="enum OilArgType">
<a name="OilArgType"></a><h3>enum OilArgType</h3>
<pre class="programlisting">typedef enum {
  OIL_ARG_UNKNOWN = 0,
  OIL_ARG_N,
  OIL_ARG_M,
  OIL_ARG_DEST1,
  OIL_ARG_DSTR1,
  OIL_ARG_DEST2,
  OIL_ARG_DSTR2,
  OIL_ARG_DEST3,
  OIL_ARG_DSTR3,
  OIL_ARG_SRC1,
  OIL_ARG_SSTR1,
  OIL_ARG_SRC2,
  OIL_ARG_SSTR2,
  OIL_ARG_SRC3,
  OIL_ARG_SSTR3,
  OIL_ARG_SRC4,
  OIL_ARG_SSTR4,
  OIL_ARG_SRC5,
  OIL_ARG_SSTR5,
  OIL_ARG_INPLACE1,
  OIL_ARG_ISTR1,
  OIL_ARG_INPLACE2,
  OIL_ARG_ISTR2,

  OIL_ARG_LAST
} OilArgType;
</pre>
<p>
Enumeration containing the types of parameter types understood
by Liboil.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_arg_type_name ()">
<a name="oil-arg-type-name"></a><h3>oil_arg_type_name ()</h3>
<pre class="programlisting">const char *        oil_arg_type_name                   (<a class="link" href="liboil-liboiltypes.html#OilArgType" title="enum OilArgType">OilArgType</a> type);</pre>
<p>
Looks up the name of the OilArgType specified by <em class="parameter"><code>type</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> an OilArgType
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a string containing the name
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="oil_type_s8">
<a name="oil-type-s8"></a><h3>oil_type_s8</h3>
<pre class="programlisting">#define oil_type_s8 int8_t
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_u8">
<a name="oil-type-u8"></a><h3>oil_type_u8</h3>
<pre class="programlisting">#define oil_type_u8 uint8_t
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_s16">
<a name="oil-type-s16"></a><h3>oil_type_s16</h3>
<pre class="programlisting">#define oil_type_s16 int16_t
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_u16">
<a name="oil-type-u16"></a><h3>oil_type_u16</h3>
<pre class="programlisting">#define oil_type_u16 uint16_t
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_s32">
<a name="oil-type-s32"></a><h3>oil_type_s32</h3>
<pre class="programlisting">#define oil_type_s32 int32_t
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_u32">
<a name="oil-type-u32"></a><h3>oil_type_u32</h3>
<pre class="programlisting">#define oil_type_u32 uint32_t
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_s64">
<a name="oil-type-s64"></a><h3>oil_type_s64</h3>
<pre class="programlisting">#define oil_type_s64 int64_t
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_u64">
<a name="oil-type-u64"></a><h3>oil_type_u64</h3>
<pre class="programlisting">#define oil_type_u64 uint64_t
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_f32">
<a name="oil-type-f32"></a><h3>oil_type_f32</h3>
<pre class="programlisting">#define oil_type_f32 float
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_f64">
<a name="oil-type-f64"></a><h3>oil_type_f64</h3>
<pre class="programlisting">#define oil_type_f64 double
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_min_s8">
<a name="oil-type-min-s8"></a><h3>oil_type_min_s8</h3>
<pre class="programlisting">#define oil_type_min_s8 (-128)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_min_u8">
<a name="oil-type-min-u8"></a><h3>oil_type_min_u8</h3>
<pre class="programlisting">#define oil_type_min_u8 (0)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_min_s16">
<a name="oil-type-min-s16"></a><h3>oil_type_min_s16</h3>
<pre class="programlisting">#define oil_type_min_s16 (-32768)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_min_u16">
<a name="oil-type-min-u16"></a><h3>oil_type_min_u16</h3>
<pre class="programlisting">#define oil_type_min_u16 (0)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_min_s32">
<a name="oil-type-min-s32"></a><h3>oil_type_min_s32</h3>
<pre class="programlisting">#define oil_type_min_s32 (-2147483647 - 1)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_min_u32">
<a name="oil-type-min-u32"></a><h3>oil_type_min_u32</h3>
<pre class="programlisting">#define oil_type_min_u32 (0)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_max_s8">
<a name="oil-type-max-s8"></a><h3>oil_type_max_s8</h3>
<pre class="programlisting">#define oil_type_max_s8 (127)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_max_u8">
<a name="oil-type-max-u8"></a><h3>oil_type_max_u8</h3>
<pre class="programlisting">#define oil_type_max_u8 (255)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_max_s16">
<a name="oil-type-max-s16"></a><h3>oil_type_max_s16</h3>
<pre class="programlisting">#define oil_type_max_s16 (32767)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_max_u16">
<a name="oil-type-max-u16"></a><h3>oil_type_max_u16</h3>
<pre class="programlisting">#define oil_type_max_u16 (65535)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_max_s32">
<a name="oil-type-max-s32"></a><h3>oil_type_max_s32</h3>
<pre class="programlisting">#define oil_type_max_s32 (2147483647)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="oil_type_max_u32">
<a name="oil-type-max-u32"></a><h3>oil_type_max_u32</h3>
<pre class="programlisting">#define oil_type_max_u32 (4294967295U)
</pre>
<p>
Useful for autogenerated code.  Do not use otherwise.</p>
<p>
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.11</div>
</body>
</html>