/usr/share/doc/discover/api-reference/group__core.html is in libdiscover-dev 2.1.2-5.2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>discover: Core functionality</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<h1>Core functionality</h1><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structdiscover__error.html">discover_error_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__core.html#ga0">discover_error_new</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__core.html#ga1">_discover_create_message</a> (<a class="el" href="structdiscover__error.html">discover_error_t</a> **status, char *message)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__core.html#ga2">discover_error_free</a> (<a class="el" href="structdiscover__error.html">discover_error_t</a> *status)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__core.html#ga3">discover_strerror</a> (<a class="el" href="structdiscover__error.html">discover_error_t</a> *err)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__core.html#ga4">discover_major_version</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__core.html#ga5">discover_minor_version</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__core.html#ga6">discover_micro_version</a> (void)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="ga1" doxytag="core.c::_discover_create_message"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void* _discover_create_message </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structdiscover__error.html">discover_error_t</a> ** </td>
<td class="mdname" nowrap> <em>status</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>char * </td>
<td class="mdname" nowrap> <em>message</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Allocate memory for a char * variable. This routine was written for discover_error_t struct.
<p>
Definition at line <a class="el" href="core_8c-source.html#l00082">82</a> of file <a class="el" href="core_8c-source.html">core.c</a>.
<p>
Referenced by <a class="el" href="core_8c-source.html#l00068">discover_error_new()</a>. </td>
</tr>
</table>
<a class="anchor" name="ga2" doxytag="core.c::discover_error_free"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void discover_error_free </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structdiscover__error.html">discover_error_t</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>status</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Free a discover_error_t structure.
<p>
Definition at line <a class="el" href="core_8c-source.html#l00095">95</a> of file <a class="el" href="core_8c-source.html">core.c</a>.
<p>
References <a class="el" href="discover_8h-source.html#l00110">discover_error::message</a>. </td>
</tr>
</table>
<a class="anchor" name="ga0" doxytag="core.c::discover_error_new"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="structdiscover__error.html">discover_error_t</a>* discover_error_new </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Allocate and initialize a discover_error_t structure.
<p>
Definition at line <a class="el" href="core_8c-source.html#l00068">68</a> of file <a class="el" href="core_8c-source.html">core.c</a>.
<p>
References <a class="el" href="core_8c-source.html#l00082">_discover_create_message()</a>, <a class="el" href="discover_8h-source.html#l00108">discover_error::code</a>, <a class="el" href="discover_8h-source.html#l00112">discover_error::create_message</a>, and <a class="el" href="discover_8h-source.html#l00110">discover_error::message</a>. </td>
</tr>
</table>
<a class="anchor" name="ga4" doxytag="core.c::discover_major_version"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int discover_major_version </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the major version number.
<p>
Definition at line <a class="el" href="core_8c-source.html#l00124">124</a> of file <a class="el" href="core_8c-source.html">core.c</a>. </td>
</tr>
</table>
<a class="anchor" name="ga6" doxytag="core.c::discover_micro_version"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int discover_micro_version </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the micro version number.
<p>
Definition at line <a class="el" href="core_8c-source.html#l00142">142</a> of file <a class="el" href="core_8c-source.html">core.c</a>. </td>
</tr>
</table>
<a class="anchor" name="ga5" doxytag="core.c::discover_minor_version"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int discover_minor_version </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the minor version number.
<p>
Definition at line <a class="el" href="core_8c-source.html#l00133">133</a> of file <a class="el" href="core_8c-source.html">core.c</a>. </td>
</tr>
</table>
<a class="anchor" name="ga3" doxytag="core.c::discover_strerror"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">char* discover_strerror </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structdiscover__error.html">discover_error_t</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>err</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Convert an error code to a human-readable string localized according to the current locale (XXX: no i18n yet).<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>err</em> </td><td>Error code to convert </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="core_8c-source.html#l00111">111</a> of file <a class="el" href="core_8c-source.html">core.c</a>.
<p>
References <a class="el" href="discover_8h-source.html#l00108">discover_error::code</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Thu Jul 28 03:38:01 2005 for discover by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address>
</body>
</html>
|