/usr/share/gtk-doc/html/gnome-scan-1.0/gnome-scan-10-gnome-scan-utils.html is in libgnomescan-dev 0.6.2-1.1ubuntu4.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Miscellaneous utils</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="Gnome Scan Reference Manual">
<link rel="up" href="internals.html" title="Part II. Gnome Scan Internals">
<link rel="prev" href="gnome-scan-10-gnome-scan-types.html" title="Enums and Flags">
<link rel="next" href="backend.html" title="Writing Backend">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="core.html" title="Part I. Gnome Scan Core Reference">
<link rel="chapter" href="setup.html" title="Using Gnome Scan">
<link rel="chapter" href="extends.html" title="Extending For Application">
<link rel="part" href="internals.html" title="Part II. Gnome Scan Internals">
<link rel="chapter" href="backend.html" title="Writing Backend">
<link rel="index" href="symbols.html" title="Index">
<link rel="index" href="hierarchy.html" title="Object Hierarchy">
<link rel="index" href="gallery.html" title="Widget Gallery">
</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="gnome-scan-10-gnome-scan-types.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="internals.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">Gnome Scan Reference Manual</th>
<td><a accesskey="n" href="backend.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#gnome-scan-10-gnome-scan-utils.synopsis" class="shortcut">Top</a>
|
<a href="#gnome-scan-10-gnome-scan-utils.description" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gnome-scan-10-gnome-scan-utils"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gnome-scan-10-gnome-scan-utils.top_of_page"></a>Miscellaneous utils</span></h2>
<p>Miscellaneous utils</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gnome-scan-10-gnome-scan-utils.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#define <a class="link" href="gnome-scan-10-gnome-scan-utils.html#GS-DEFINE-QUARK:CAPS" title="GS_DEFINE_QUARK()">GS_DEFINE_QUARK</a> (quark_name, String)
<a class="link" href="gnome-scan-10-gnome-scan-utils.html#GnomeScanFormat" title="GnomeScanFormat">GnomeScanFormat</a>* <a class="link" href="gnome-scan-10-gnome-scan-utils.html#gnome-scan-format-new" title="gnome_scan_format_new ()">gnome_scan_format_new</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *domain,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *description,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> **mime_types,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> **extensions);
<a class="link" href="gnome-scan-10-gnome-scan-utils.html#GnomeScanFormat" title="GnomeScanFormat">GnomeScanFormat</a>;
enum <a class="link" href="gnome-scan-10-gnome-scan-utils.html#GnomeScanUnit" title="enum GnomeScanUnit">GnomeScanUnit</a>;
</pre>
</div>
<div class="refsect1" lang="en">
<a name="gnome-scan-10-gnome-scan-utils.description"></a><h2>Description</h2>
<p>
</p>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="gnome-scan-10-gnome-scan-utils.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="GS-DEFINE-QUARK:CAPS"></a><h3>GS_DEFINE_QUARK()</h3>
<pre class="programlisting">#define GS_DEFINE_QUARK(quark_name, String)</pre>
<p>
Generate a function that generate a static quark from <em class="parameter"><code>String</code></em>.
</p>
<p>
For example:
</p>
<pre class="programlisting">
GS_DEFINE_QUARK (foo_bar, FooBar);
</pre>
<p>
</p>
<p>
expands to:
</p>
<p>
</p>
<pre class="programlisting">
GQuark
gs_foo_bar_quark () {
static GQuark quark = 0;
if (!quark) {
quark = g_quark_from_static_string ("FooBar");
}
return quark;
}
</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>quark_name</code></em> :</span></p></td>
<td> function prefix
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>String</code></em> :</span></p></td>
<td> The string passed to <a
href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#g-quark-from-string"
><code class="function">g_quark_from_string()</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gnome-scan-format-new"></a><h3>gnome_scan_format_new ()</h3>
<pre class="programlisting"><a class="link" href="gnome-scan-10-gnome-scan-utils.html#GnomeScanFormat" title="GnomeScanFormat">GnomeScanFormat</a>* gnome_scan_format_new (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *domain,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *description,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> **mime_types,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> **extensions);</pre>
<p>
</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>name</code></em> :</span></p></td>
<td> format name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
<td> translation domain
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
<td>description
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_types</code></em> :</span></p></td>
<td> list of mime types for this format
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>extensions</code></em> :</span></p></td>
<td> list of suffixes for file of this format.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="gnome-scan-10-gnome-scan-utils.html#GnomeScanFormat" title="GnomeScanFormat"><span class="type">GnomeScanFormat</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GnomeScanFormat"></a><h3>GnomeScanFormat</h3>
<pre class="programlisting">typedef struct {
gchar *name;
gchar *domain;
gchar *description;
gchar **mime_types;
gchar **extensions;
} GnomeScanFormat;
</pre>
<p>
</p>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GnomeScanUnit"></a><h3>enum GnomeScanUnit</h3>
<pre class="programlisting">typedef enum /*< lowercase_name=gs_param_unit,prefix=GS_UNIT >*/
{
GS_UNIT_NONE=-1,
GS_UNIT_PIXEL=GTK_UNIT_PIXEL,
GS_UNIT_POINT=GTK_UNIT_POINTS,
GS_UNIT_MM=GTK_UNIT_MM,
GS_UNIT_BIT,
GS_UNIT_DPI,
GS_UNIT_PERCENT,
GS_UNIT_MICROSECOND
} GnomeScanUnit;
</pre>
<p>
</p>
<p>
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.10</div>
</body>
</html>
|