/usr/share/gtk-doc/html/gdata/GDataComparable.html is in libgdata-doc 0.12.0-1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GDataComparable</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GData Reference Manual">
<link rel="up" href="ch02.html" title="Core API">
<link rel="prev" href="GDataUploadStream.html" title="GDataUploadStream">
<link rel="next" href="ch03.html" title="Access Control List API">
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</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="GDataUploadStream.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">GData Reference Manual</th>
<td><a accesskey="n" href="ch03.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GDataComparable.synopsis" class="shortcut">Top</a>
|
<a href="#GDataComparable.description" class="shortcut">Description</a>
|
<a href="#GDataComparable.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GDataComparable.implementations" class="shortcut">Known Implementations</a>
</td></tr>
</table>
<div class="refentry">
<a name="GDataComparable"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GDataComparable.top_of_page"></a>GDataComparable</span></h2>
<p>GDataComparable — GData comparable interface</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GDataComparable.stability-level"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="GDataComparable.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <gdata/gdata-comparable.h>
<a class="link" href="GDataComparable.html#GDataComparable-struct" title="GDataComparable">GDataComparable</a>;
<a class="link" href="GDataComparable.html#GDataComparableIface" title="GDataComparableIface">GDataComparableIface</a>;
<a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GDataComparable.html#gdata-comparable-compare" title="gdata_comparable_compare ()">gdata_comparable_compare</a> (<em class="parameter"><code><a class="link" href="GDataComparable.html" title="GDataComparable"><span class="type">GDataComparable</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="GDataComparable.html" title="GDataComparable"><span class="type">GDataComparable</span></a> *other</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GDataComparable.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GInterface
+----GDataComparable
</pre>
</div>
<div class="refsect1">
<a name="GDataComparable.implementations"></a><h2>Known Implementations</h2>
<p>
GDataComparable is implemented by
<a class="link" href="GDataAuthor.html" title="GDataAuthor">GDataAuthor</a>, <a class="link" href="GDataCategory.html" title="GDataCategory">GDataCategory</a>, <a class="link" href="GDataGContactCalendar.html" title="GDataGContactCalendar">GDataGContactCalendar</a>, <a class="link" href="GDataGContactExternalID.html" title="GDataGContactExternalID">GDataGContactExternalID</a>, <a class="link" href="GDataGContactLanguage.html" title="GDataGContactLanguage">GDataGContactLanguage</a>, <a class="link" href="GDataGContactWebsite.html" title="GDataGContactWebsite">GDataGContactWebsite</a>, <a class="link" href="GDataGDEmailAddress.html" title="GDataGDEmailAddress">GDataGDEmailAddress</a>, <a class="link" href="GDataGDIMAddress.html" title="GDataGDIMAddress">GDataGDIMAddress</a>, <a class="link" href="GDataGDName.html" title="GDataGDName">GDataGDName</a>, <a class="link" href="GDataGDOrganization.html" title="GDataGDOrganization">GDataGDOrganization</a>, <a class="link" href="GDataGDPhoneNumber.html" title="GDataGDPhoneNumber">GDataGDPhoneNumber</a>, <a class="link" href="GDataGDPostalAddress.html" title="GDataGDPostalAddress">GDataGDPostalAddress</a>, <a class="link" href="GDataGDReminder.html" title="GDataGDReminder">GDataGDReminder</a>, <a class="link" href="GDataGDWhen.html" title="GDataGDWhen">GDataGDWhen</a>, <a class="link" href="GDataGDWhere.html" title="GDataGDWhere">GDataGDWhere</a>, <a class="link" href="GDataGDWho.html" title="GDataGDWho">GDataGDWho</a>, <a class="link" href="GDataGenerator.html" title="GDataGenerator">GDataGenerator</a>, <a class="link" href="GDataLink.html" title="GDataLink">GDataLink</a> and <a class="link" href="GDataYouTubeCategory.html" title="GDataYouTubeCategory">GDataYouTubeCategory</a>.</p>
</div>
<div class="refsect1">
<a name="GDataComparable.description"></a><h2>Description</h2>
<p>
<a class="link" href="GDataComparable.html" title="GDataComparable"><span class="type">GDataComparable</span></a> is an interface which can be implemented by any object which needs to be compared to another object of the same type or of a
derived type.
</p>
<p>
When implementing the interface, classes must implement the <code class="function">compare_with</code> function, and the implementation must be
<a class="ulink" href="http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#index-g_t_0040code_007bpure_007d-function-attribute-2413" target="_top">pure
</a>.
</p>
</div>
<div class="refsect1">
<a name="GDataComparable.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GDataComparable-struct"></a><h3>GDataComparable</h3>
<pre class="programlisting">typedef struct _GDataComparable GDataComparable;</pre>
<p>
All the fields in the <a class="link" href="GDataComparable.html" title="GDataComparable"><span class="type">GDataComparable</span></a> structure are private and should never be accessed directly.
</p>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="GDataComparableIface"></a><h3>GDataComparableIface</h3>
<pre class="programlisting">typedef struct {
GTypeInterface parent;
gint (*compare_with) (GDataComparable *self, GDataComparable *other);
} GDataComparableIface;
</pre>
<p>
The class structure for the <a class="link" href="GDataComparable.html" title="GDataComparable"><span class="type">GDataComparable</span></a> interface.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="/opt/gnome3/build/share/gtk-doc/html/gobject/gobject-Type-Information.html#GTypeInterface"><span class="type">GTypeInterface</span></a> <em class="structfield"><code><a name="GDataComparableIface.parent"></a>parent</code></em>;</span></p></td>
<td>the parent type</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GDataComparableIface.compare-with"></a>compare_with</code></em> ()</span></p></td>
<td>compares the object with an <em class="parameter"><code>other</code></em> object of the same type, returning <code class="code">-1</code> if the object is "less than"
the other object, <code class="code">0</code> if they're equal, or <code class="code">1</code> if the object is "greater than" the other. The
function can assume that neither <em class="parameter"><code>self</code></em> or <em class="parameter"><code>other</code></em> will be <a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, and that both have correct types. The function must be pure.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-comparable-compare"></a><h3>gdata_comparable_compare ()</h3>
<pre class="programlisting"><a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gdata_comparable_compare (<em class="parameter"><code><a class="link" href="GDataComparable.html" title="GDataComparable"><span class="type">GDataComparable</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="GDataComparable.html" title="GDataComparable"><span class="type">GDataComparable</span></a> *other</code></em>);</pre>
<p>
Compares the two objects, returning <code class="code">-1</code> if <em class="parameter"><code>self</code></em> is "less than" <em class="parameter"><code>other</code></em> by some metric, <code class="code">0</code>
if they're equal, or <code class="code">1</code> if <em class="parameter"><code>self</code></em> is "greater than" <em class="parameter"><code>other</code></em>.
</p>
<p>
<a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> values are handled gracefully, with <code class="code">0</code> returned if both <em class="parameter"><code>self</code></em> and <em class="parameter"><code>other</code></em> are <a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>,
<code class="code">-1</code> if <em class="parameter"><code>self</code></em> is <a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and <code class="code">1</code> if <em class="parameter"><code>other</code></em> is <a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</p>
<p>
The <em class="parameter"><code>other</code></em> object must be of the same type as <em class="parameter"><code>self</code></em>, or of a type derived from <em class="parameter"><code>self</code></em>'s type.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="GDataComparable.html" title="GDataComparable"><span class="type">GDataComparable</span></a>, or <a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
<td>another <a class="link" href="GDataComparable.html" title="GDataComparable"><span class="type">GDataComparable</span></a> of the same type, or <a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="/opt/gnome3/build/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18.1</div>
</body>
</html>
|