~ubuntu-branches/ubuntu/wily/librest/wily

« back to all changes in this revision

Viewing changes to rest/Rest-0.7.gir

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-10-28 13:13:46 UTC
  • mfrom: (1.2.7) (3.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20141028131346-e0sq44lcxa7vkkey
Tags: 0.7.92-2ubuntu1
debian/patches/0001-oauth-Add-missing-include.patch: Cherry-pick patch
from upstream to fix implicit function definition which fails to build on
our buildds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
9
9
  <include name="GObject" version="2.0"/>
10
10
  <include name="Gio" version="2.0"/>
 
11
  <include name="Soup" version="2.4"/>
11
12
  <package name="rest-0.7"/>
12
13
  <c:include name="rest/oauth-proxy-call.h"/>
13
14
  <c:include name="rest/oauth-proxy.h"/>
966
967
            <doc xml:space="preserve">the content type of the data</doc>
967
968
            <type name="utf8" c:type="const char*"/>
968
969
          </parameter>
969
 
          <parameter name="filename" transfer-ownership="none" allow-none="1">
 
970
          <parameter name="filename"
 
971
                     transfer-ownership="none"
 
972
                     nullable="1"
 
973
                     allow-none="1">
970
974
            <doc xml:space="preserve">the original filename, or %NULL</doc>
971
975
            <type name="utf8" c:type="const char*"/>
972
976
          </parameter>
976
980
          </parameter>
977
981
          <parameter name="owner_dnotify"
978
982
                     transfer-ownership="none"
 
983
                     nullable="1"
979
984
                     allow-none="1"
980
985
                     scope="async">
981
986
            <doc xml:space="preserve">a function to free/unref @owner when
1380
1385
          </parameter>
1381
1386
        </parameters>
1382
1387
      </virtual-method>
 
1388
      <method name="add_soup_feature"
 
1389
              c:identifier="rest_proxy_add_soup_feature"
 
1390
              version="0.7.92">
 
1391
        <doc xml:space="preserve">This method can be used to add specific features to the #SoupSession objects
 
1392
that are used by librest for its HTTP connections. For example, if one needs
 
1393
extensive control over the cookies which are used for the REST HTTP
 
1394
communication, it's possible to get full access to libsoup cookie API by
 
1395
using
 
1396
 
 
1397
  &lt;programlisting&gt;
 
1398
  RestProxy *proxy = g_object_new(REST_TYPE_PROXY,
 
1399
                                  "url-format", url,
 
1400
                                  "disable-cookies", TRUE,
 
1401
                                  NULL);
 
1402
  SoupSessionFeature *cookie_jar = SOUP_SESSION_FEATURE(soup_cookie_jar_new ());
 
1403
  rest_proxy_add_soup_feature(proxy, cookie_jar);
 
1404
  &lt;/programlisting&gt;</doc>
 
1405
        <return-value transfer-ownership="none">
 
1406
          <type name="none" c:type="void"/>
 
1407
        </return-value>
 
1408
        <parameters>
 
1409
          <instance-parameter name="proxy" transfer-ownership="none">
 
1410
            <doc xml:space="preserve">The #RestProxy</doc>
 
1411
            <type name="Proxy" c:type="RestProxy*"/>
 
1412
          </instance-parameter>
 
1413
          <parameter name="feature" transfer-ownership="none">
 
1414
            <doc xml:space="preserve">A #SoupSessionFeature</doc>
 
1415
            <type name="Soup.SessionFeature" c:type="SoupSessionFeature*"/>
 
1416
          </parameter>
 
1417
        </parameters>
 
1418
      </method>
1383
1419
      <method name="bind" c:identifier="rest_proxy_bind" introspectable="0">
1384
1420
        <return-value transfer-ownership="none">
1385
1421
          <type name="gboolean" c:type="gboolean"/>
1894
1930
          </parameter>
1895
1931
        </parameters>
1896
1932
      </method>
 
1933
      <method name="get_function"
 
1934
              c:identifier="rest_proxy_call_get_function"
 
1935
              version="0.7.92">
 
1936
        <doc xml:space="preserve">Get the REST function that is going to be called on the proxy.</doc>
 
1937
        <return-value transfer-ownership="none">
 
1938
          <doc xml:space="preserve">The REST "function" for the current call, see also
 
1939
rest_proxy_call_set_function(). This string is owned by the #RestProxyCall
 
1940
and should not be freed.</doc>
 
1941
          <type name="utf8" c:type="const char*"/>
 
1942
        </return-value>
 
1943
        <parameters>
 
1944
          <instance-parameter name="call" transfer-ownership="none">
 
1945
            <doc xml:space="preserve">The #RestProxyCall</doc>
 
1946
            <type name="ProxyCall" c:type="RestProxyCall*"/>
 
1947
          </instance-parameter>
 
1948
        </parameters>
 
1949
      </method>
1897
1950
      <method name="get_method" c:identifier="rest_proxy_call_get_method">
1898
1951
        <doc xml:space="preserve">Get the HTTP method to use when making the call, for example GET or POST.</doc>
1899
1952
        <return-value transfer-ownership="none">
1906
1959
          </instance-parameter>
1907
1960
        </parameters>
1908
1961
      </method>
1909
 
      <method name="get_params"
1910
 
              c:identifier="rest_proxy_call_get_params"
1911
 
              introspectable="0">
1912
 
        <doc xml:space="preserve">Get the parameters as a #GHashTable of parameter names to values.  The
 
1962
      <method name="get_params" c:identifier="rest_proxy_call_get_params">
 
1963
        <doc xml:space="preserve">Get the parameters as a #RestParams of parameter names to values.  The
1913
1964
returned value is owned by the RestProxyCall instance and should not
1914
1965
be freed by the caller.</doc>
1915
 
        <return-value>
 
1966
        <return-value transfer-ownership="none">
1916
1967
          <doc xml:space="preserve">A #RestParams.</doc>
1917
1968
          <type name="Params" c:type="RestParams*"/>
1918
1969
        </return-value>
2009
2060
          </instance-parameter>
2010
2061
          <parameter name="cancellable"
2011
2062
                     transfer-ownership="none"
 
2063
                     nullable="1"
2012
2064
                     allow-none="1">
2013
2065
            <doc xml:space="preserve">an optional #GCancellable that can be used to
2014
2066
  cancel the call, or %NULL</doc>
2016
2068
          </parameter>
2017
2069
          <parameter name="callback"
2018
2070
                     transfer-ownership="none"
 
2071
                     nullable="1"
2019
2072
                     allow-none="1"
2020
2073
                     scope="async"
2021
2074
                     closure="2">
2888
2941
        </parameters>
2889
2942
      </method>
2890
2943
      <method name="print" c:identifier="rest_xml_node_print">
 
2944
        <doc xml:space="preserve">Recursively outputs given node and it's children.</doc>
2891
2945
        <return-value transfer-ownership="full">
 
2946
          <doc xml:space="preserve">xml string representing the node.</doc>
2892
2947
          <type name="utf8" c:type="char*"/>
2893
2948
        </return-value>
2894
2949
        <parameters>
2895
2950
          <instance-parameter name="node" transfer-ownership="none">
 
2951
            <doc xml:space="preserve">#RestXmlNode</doc>
2896
2952
            <type name="XmlNode" c:type="RestXmlNode*"/>
2897
2953
          </instance-parameter>
2898
2954
        </parameters>