Mercurial > projects > libpws
annotate pws_init.3.xml @ 13:2bb1bbac1d0a default tip
Added tag version-1.0.0 for changeset 1926dfc9feb0
author | Guido Berhoerster <guido+libpws@berhoerster.name> |
---|---|
date | Sun, 04 Aug 2019 21:37:56 +0200 |
parents | b3fc9f7e2b43 |
children |
rev | line source |
---|---|
1
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
2 <!-- |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
3 |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
4 Copyright (C) 2015 Guido Berhoerster <guido+libpws@berhoerster.name> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
5 |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
6 Permission is hereby granted, free of charge, to any person obtaining |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
7 a copy of this software and associated documentation files (the |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
8 "Software"), to deal in the Software without restriction, including |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
9 without limitation the rights to use, copy, modify, merge, publish, |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
10 distribute, sublicense, and/or sell copies of the Software, and to |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
11 permit persons to whom the Software is furnished to do so, subject to |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
12 the following conditions: |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
13 |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
14 The above copyright notice and this permission notice shall be included |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
15 in all copies or substantial portions of the Software. |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
16 |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
18 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
19 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
20 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
21 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
22 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
23 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
24 |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
25 --> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
26 <refentry xmlns="http://docbook.org/ns/docbook" xml:lang="en"> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
27 <info> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
28 <author> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
29 <personname> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
30 <firstname>Guido</firstname> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
31 <surname>Berhoerster</surname> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
32 </personname> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
33 <email>guido+libpws@berhoerster.name</email> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
34 <personblurb/> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
35 </author> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
36 <date>21 March, 2015</date> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
37 </info> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
38 <refmeta> |
5
b3fc9f7e2b43
Fix manpage title
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
1
diff
changeset
|
39 <refentrytitle>pws_init</refentrytitle> |
1
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
40 <manvolnum>3</manvolnum> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
41 <refmiscinfo class="source"/> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
42 <refmiscinfo class="version"/> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
43 <refmiscinfo class="manual">Library Functions</refmiscinfo> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
44 </refmeta> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
45 <refnamediv> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
46 <refname>pws_init</refname> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
47 <refname>pws_finalize</refname> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
48 <refname>pws_set_alloc_functions</refname> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
49 <refname>pws_generate_uuid</refname> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
50 <refpurpose>initalize and deinitialize libpws</refpurpose> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
51 </refnamediv> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
52 <refsynopsisdiv> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
53 <cmdsynopsis> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
54 <command>cc</command> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
55 <arg choice="opt" rep="repeat"> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
56 <option>flag</option> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
57 </arg> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
58 <arg choice="plain" rep="repeat"> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
59 <option>file</option> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
60 </arg> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
61 <arg choice="plain"> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
62 <option>-lpws</option> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
63 </arg> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
64 <arg choice="plain"> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
65 <option>-lnettle</option> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
66 </arg> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
67 <arg choice="opt" rep="repeat"> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
68 <option>library</option> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
69 </arg> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
70 </cmdsynopsis> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
71 <funcsynopsis> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
72 <funcsynopsisinfo> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
73 #include <pws.h> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
74 </funcsynopsisinfo> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
75 <funcprototype> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
76 <funcdef>int <function>pws_init</function></funcdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
77 <void/> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
78 </funcprototype> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
79 <funcprototype> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
80 <funcdef>void <function>pws_finalize</function></funcdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
81 <void/> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
82 </funcprototype> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
83 <funcprototype> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
84 <funcdef>void <function>pws_set_alloc_functions</function></funcdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
85 <paramdef>void |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
86 *<funcparams>*<replaceable>alloc_function</replaceable></funcparams><funcparams>size_t</funcparams></paramdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
87 <paramdef>void |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
88 *<funcparams>*<replaceable>realloc_function</replaceable></funcparams><funcparams>void *, size_t</funcparams></paramdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
89 <paramdef>void <funcparams>*<replaceable>free_function</replaceable></funcparams><funcparams>void |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
90 *, size_t</funcparams></paramdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
91 <paramdef>void |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
92 *<funcparams>*<replaceable>secure_alloc_function</replaceable></funcparams><funcparams>size_t</funcparams></paramdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
93 <paramdef>void |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
94 *<funcparams>*<replaceable>secure_realloc_function</replaceable></funcparams><funcparams>void *, size_t</funcparams></paramdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
95 <paramdef>void <funcparams>*<replaceable>secure_free_function</replaceable></funcparams><funcparams>void |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
96 *, size_t</funcparams></paramdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
97 </funcprototype> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
98 <funcprototype> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
99 <funcdef>int <function>pws_generate_uuid</function></funcdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
100 <paramdef>unsigned char [static PWS3_UUID_SIZE]</paramdef> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
101 </funcprototype> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
102 </funcsynopsis> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
103 <synopsis> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
104 <constant>LIBPWS_VERSION_MAJOR</constant> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
105 |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
106 <constant>LIBPWS_VERSION_MINOR</constant> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
107 |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
108 <constant>LIBPWS_VERSION_MICRO</constant> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
109 </synopsis> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
110 </refsynopsisdiv> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
111 <refsect1> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
112 <title>Description</title> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
113 <para>The <function>pws_init()</function> function initializes |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
114 <citerefentry><refentrytitle>libpws</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
115 and must be called before any other function from this library.</para> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
116 <para>The <function>pws_finalize()</function> function deinitializes |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
117 <citerefentry><refentrytitle>libpws</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
118 after which no other function from this library may be called.</para> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
119 <para>The <function>pws_set_alloc_functions()</function> function specifies |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
120 the functions which are used by |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
121 <citerefentry><refentrytitle>libpws</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
122 to allocate, reallocate or free memory allowing for the use of custom |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
123 allocators. <function>pws_secure_alloc</function>, |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
124 <function>pws_secure_realloc</function>, and |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
125 <function>pws_secure_free</function> are used to allocate, reallocate, and |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
126 free memory containing potentially sensitive information such as passwords, |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
127 this e.g. allows for wrapping the acutal allocation using operating system |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
128 specific facilities to prevent memory from being paged to the swap area or |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
129 to overwrite memory before deallocating it. Any argument set to |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
130 <constant>NULL</constant> will result in the default function being used, |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
131 these are <function>malloc</function>, <function>realloc</function>, and a |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
132 wrapper around <function>free</function>. This function must be called |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
133 after <function>pws_init</function> and before calling any other function |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
134 from this library. It is not reentrant.</para> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
135 <para>The <function>pws_uuid_create()</function> function generates a new |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
136 random UUID following RFC4122 and places it in the array passed to |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
137 it.</para> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
138 <para>The macros <constant>LIBPWS_VERSION_MAJOR</constant>, |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
139 <constant>LIBPWS_VERSION_MINOR</constant>, and |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
140 <constant>LIBPWS_VERSION_MICRO</constant> can be used to check the major, |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
141 minor, and micro version of the library.</para> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
142 </refsect1> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
143 <refsect1> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
144 <title>Return Values</title> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
145 <para>The <function>pws_init()</function> function returns |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
146 <returnvalue>0</returnvalue> if the library was initialized successfully and |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
147 <returnvalue>-1</returnvalue> on failure.</para> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
148 <para>The <function>pws_generate_uuid()</function> returns |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
149 <returnvalue>0</returnvalue> if a new random UUID has been generated and |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
150 <returnvalue>-1</returnvalue> on failure.</para> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
151 </refsect1> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
152 <refsect1> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
153 <title>See Also</title> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
154 <para><citerefentry><refentrytitle>libpws</refentrytitle> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
155 <manvolnum>3</manvolnum></citerefentry>, |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
156 <citerefentry><refentrytitle>pws3_file_create</refentrytitle> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
157 <manvolnum>3</manvolnum></citerefentry>, RFC4122</para> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
158 </refsect1> |
e1309515d111
Add README file and manpages
Guido Berhoerster <guido+libpws@berhoerster.name>
parents:
diff
changeset
|
159 </refentry> |