/usr/share/gir-1.0/GrlNet-0.1.gir is in libgrilo-0.1-dev 0.1.18-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 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 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<namespace name="GrlNet"
version="0.1"
shared-library="libgrlnet-0.1.so.0"
c:identifier-prefixes="GrlNet"
c:symbol-prefixes="grl_net">
<class name="Wc"
c:symbol-prefix="wc"
c:type="GrlNetWc"
parent="GObject.Object"
glib:type-name="GrlNetWc"
glib:get-type="grl_net_wc_get_type"
glib:type-struct="WcClass">
<constructor name="new" c:identifier="grl_net_wc_new">
<doc xml:whitespace="preserve">Creates a new #GrlNetWc.
use it.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new allocated instance of #GrlNetWc. Do g_object_unref() after</doc>
<type name="Wc" c:type="GrlNetWc*"/>
</return-value>
</constructor>
<function name="error_quark" c:identifier="grl_net_wc_error_quark">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
<method name="flush_delayed_requests"
c:identifier="grl_net_wc_flush_delayed_requests">
<doc xml:whitespace="preserve">This method will flush all the pending request in the queue.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="request_async" c:identifier="grl_net_wc_request_async">
<doc xml:whitespace="preserve">Request the fetching of a web resource given the @uri. This request is
asynchronous, thus the result will be returned within the @callback.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="uri" transfer-ownership="none">
<doc xml:whitespace="preserve">The URI of the resource to request</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
allow-none="1">
<doc xml:whitespace="preserve">a #GCancellable instance or %NULL to ignore</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
allow-none="1"
scope="async"
closure="3">
<doc xml:whitespace="preserve">The callback when the result is ready</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:whitespace="preserve">User data set for the @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="request_finish"
c:identifier="grl_net_wc_request_finish"
throws="1">
<doc xml:whitespace="preserve">Finishes an asynchronous load of the file's contents.
The contents are placed in contents, and length is set to the size of the
contents string.
The content address will be invalidated at the next request. So if you
want to keep it, please copy it into another address.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the request was successfull. If %FALSE an error occurred.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="result" transfer-ownership="none">
<doc xml:whitespace="preserve">The result of the request</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
<parameter name="content" transfer-ownership="none">
<doc xml:whitespace="preserve">The contents of the resource</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="length" transfer-ownership="none" allow-none="1">
<doc xml:whitespace="preserve">The length of the contents or %NULL if it is not needed</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="set_cache"
c:identifier="grl_net_wc_set_cache"
version="0.1.12">
<doc xml:whitespace="preserve">Sets if cache must be used. Note that this will only work if caching is
supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
current cache is clean and removed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="use_cache" transfer-ownership="none">
<doc xml:whitespace="preserve">if cache must be used or not</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_cache_size"
c:identifier="grl_net_wc_set_cache_size"
version="0.1.12">
<doc xml:whitespace="preserve">Sets the new maximum size of cache, in Megabytes. Default value is 10. Using
0 means no cache will be done.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="cache_size" transfer-ownership="none">
<doc xml:whitespace="preserve">size of cache (in Mb)</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="set_log_level" c:identifier="grl_net_wc_set_log_level">
<doc xml:whitespace="preserve">Setting the log level the logger feature is added into
the libsoup session.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="log_level" transfer-ownership="none">
<doc xml:whitespace="preserve">the libsoup log level to set [0,3]</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="set_throttling" c:identifier="grl_net_wc_set_throttling">
<doc xml:whitespace="preserve">Setting this property, the #GrlNetWc will queue all the requests and
will dispatch them with a pause between them of this value.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="throttling" transfer-ownership="none">
<doc xml:whitespace="preserve">the number of seconds to wait between requests</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<property name="cache"
writable="1"
construct="1"
transfer-ownership="none">
<type name="gboolean"/>
</property>
<property name="cache-size"
writable="1"
construct="1"
transfer-ownership="none">
<type name="guint"/>
</property>
<property name="loglevel" writable="1" transfer-ownership="none">
<type name="guint"/>
</property>
<property name="throttling" writable="1" transfer-ownership="none">
<type name="guint"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv" readable="0" private="1">
<type name="WcPrivate" c:type="GrlNetWcPrivate*"/>
</field>
</class>
<record name="WcClass"
c:type="GrlNetWcClass"
glib:is-gtype-struct-for="Wc">
<doc xml:whitespace="preserve">Grilo web client helper class.
It's a simple and thin web client for be used by the sources.</doc>
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<enumeration name="WcError" c:type="GrlNetWcError">
<doc xml:whitespace="preserve">These constants identify all the available errors managed by
the web client.</doc>
<member name="unavailable"
value="1"
c:identifier="GRL_NET_WC_ERROR_UNAVAILABLE"/>
<member name="protocol_error"
value="2"
c:identifier="GRL_NET_WC_ERROR_PROTOCOL_ERROR"/>
<member name="authentication_required"
value="3"
c:identifier="GRL_NET_WC_ERROR_AUTHENTICATION_REQUIRED"/>
<member name="not_found"
value="4"
c:identifier="GRL_NET_WC_ERROR_NOT_FOUND"/>
<member name="conflict"
value="5"
c:identifier="GRL_NET_WC_ERROR_CONFLICT"/>
<member name="forbidden"
value="6"
c:identifier="GRL_NET_WC_ERROR_FORBIDDEN"/>
<member name="network_error"
value="7"
c:identifier="GRL_NET_WC_ERROR_NETWORK_ERROR"/>
<member name="proxy_error"
value="8"
c:identifier="GRL_NET_WC_ERROR_PROXY_ERROR"/>
<member name="cancelled"
value="9"
c:identifier="GRL_NET_WC_ERROR_CANCELLED"/>
</enumeration>
<record name="WcPrivate" c:type="GrlNetWcPrivate" disguised="1">
</record>
</namespace>
</repository>
|