summaryrefslogtreecommitdiff
path: root/rest
AgeCommit message (Collapse)AuthorFilesLines
2010-09-13xml-parser: Remove unused variablelibrest-0.7.4Rob Bradford1-1/+0
2010-09-13proxy-call: Use g_error_set_literal for content from the web serverRob Bradford1-5/+5
Fixes: http://bugs.meego.com/show_bug.cgi?id=6295
2010-09-07build: Don't include Soup and libxml in includes for GIRRob Bradford1-1/+1
The librest API doesn't export API that uses these two.
2010-09-06proxy-call: The status code for the request is fetched from the messageRob Bradford1-2/+1
Therefore we don't need to save the return value from soup_session_send_message ().
2010-09-06proxy-call: Remove unused code post refactoringRob Bradford1-4/+0
The RestProxyCallClass is not needed in these functions any more since it is accessed through prepare_message ()
2010-09-06xml-parser: Remove unread 'res' variableRob Bradford1-2/+2
We never read from this variable apart from in the loop so we can instead simply compare the result of the function.
2010-09-06proxy: Fix compiler warningRob Bradford1-1/+1
2010-09-02proxy-call: Fix compiler warning with storing call closureRob Bradford1-1/+1
2010-09-02proxy-call: Turn off body buffer accumulation for continuous callRob Bradford1-0/+3
2010-09-02proxy-call: Add documentation for rest_proxy_call_continuousRob Bradford1-0/+23
2010-09-02proxy-call: Enhance documentation for rest_proxy_call_asyncRob Bradford1-1/+5
2010-09-02proxy-call: Add first pass at continuous call modeRob Bradford3-0/+144
2010-09-02build: Enable test code coverage analysisRob Bradford1-4/+5
2010-09-01Fix code formattingRoss Burton1-1/+2
2010-09-01Add cookie support to rest-proxyGary Ching-Pang Lin1-0/+5
Signed-off-by: Gary Ching-Pang Lin <chingpang@gmail.com>
2010-08-27oauth-proxy-call: Don't leak the parameter names that we stealRob Bradford1-9/+13
2010-08-27oauth-proxy-call: Prevent memory corruption by duplicating dataRob Bradford1-1/+3
2010-08-20build: Update the build systemlibrest-0.7.2Emmanuele Bassi1-32/+16
• Use an autoconf released in this millenium • Use the LT macros for libtool • Do not create SGML templates for gtk-doc, and speed up the build • Place every build-related file under build/ • Update the introspection.m4 • Use the introspection makefile rules Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2010-08-19xml-parser: Clear the stack in rest_xml_node_findRob Bradford1-0/+2
2010-08-19xml-parser: Fix rest_xml_node_unref so that is correctly unrefs siblingsRob Bradford1-28/+28
2010-08-12proxy-call: Adjust to the new callback always fired invariant (since d7d4d52)Rob Bradford1-16/+9
Since the callback is always fired when the call is completed, cancelled or an error situation. We need to adapt the code for rest_proxy_call_cancel so that it doesn't unref the call object a second time.
2010-08-11Small documentation fixesRoss Burton2-5/+13
2010-08-06Skip non-string params in rest_params_as_string_hash_tableRoss Burton1-2/+2
2010-08-06rest-param: if we're passed NULL in _new_string, replace it with empty stringRoss Burton1-0/+6
2010-08-04Minor documentation fixesRoss Burton8-15/+31
2010-07-08oauth: do signing differently when using OAuth EchoRoss Burton1-3/+12
2010-07-08oauth: add constructor for OAuth Echo proxiesRoss Burton3-2/+47
2010-07-08Port the proxies to use RestParamRoss Burton4-47/+117
2010-07-08rest: add RestParam and RestParams typesRoss Burton5-1/+693
2010-05-28Fix leak of soup logger instancesJonathon Jongsma1-4/+7
When adding a feature, the soup session takes a reference on the feature, so we need to unref it after adding in order for it not to leak. http://bugs.meego.com/show_bug.cgi?id=2500
2010-05-26Add a oauth2 proxyJonathon Jongsma6-0/+670
This new class provides a proxy class for oauth2-based web services, such as the new facebook graph API. The basic idea is as follows: - Construct a OAuth2Proxy object - Build a login url with _build_login_url(_full)() - Display said url in a browser widget (e.g. webkit) and listen for redirects to the specified 'redirect_uri' - Extract the access token from the uri that you are redirected to - Set the access token for the proxy with _set_access_token() http://bugs.meego.com/show_bug.cgi?id=2265
2010-05-17rest: small prototype fixes to clean up docsRoss Burton2-5/+5
2010-05-14Use the session callback instead of finished (BMC#842)Ross Burton3-13/+17
Use the completed callback in soup_session_queue_message instead of connecting to finished on the message itself. I'm not entirely why the behaviour is different but this fixes #842 where an async call make inside another async call would end up with the original message "finishing" again, causing infinite loops.
2010-05-14Don't check for dispose or finalize when chaining upRoss Burton2-9/+5
2010-04-15Fix introspection generation in distchecklibrest-0.6.3Ross Burton1-2/+2
2010-04-15proxy/proxy-call/xml-parser: Guard public function entry pointsRob Bradford3-24/+136
Fixes: http://bugzilla.meego.com/show_bug.cgi?id=273
2010-04-13rest-xml-parser: Remove redundant GObject methodsRoss Burton1-40/+0
2010-04-13rest-xml-parser: Remove pointless private structRoss Burton1-35/+22
2010-04-06rest-xml-parser: Remove duplicate free for the reader in finalizeRob Bradford1-2/+0
2010-03-25oauth-proxy-call: Free the list of hash table keysRob Bradford1-5/+5
Fixes the following leak: ==18990== 101,971 (1,048 direct, 100,923 indirect) bytes in 25 blocks are definitely lost in loss record 66 of 73 ==18990== at 0x4C2391E: malloc (vg_replace_malloc.c:207) ==18990== by 0x644E552: g_malloc (gmem.c:131) ==18990== by 0x64643C7: g_slice_alloc (gslice.c:824) ==18990== by 0x6443F7D: g_list_prepend (glist.c:169) ==18990== by 0x64376B8: g_hash_table_get_keys (ghash.c:1306) ==18990== by 0x6C51F4A: _prepare (oauth-proxy-call.c:60) ==18990== by 0x6C4EB25: prepare_message (rest-proxy-call.c:636) ==18990== by 0x6C4F152: rest_proxy_call_async (rest-proxy-call.c:696) ==18990== by 0xB221BDC: online_notify (twitter.c:567) ==18990== by 0xB2224DF: credentials_updated (twitter.c:592) ==18990== by 0x945CE33: gconf_listeners_notify (in /usr/lib/libgconf-2.so.4.1.5) ==18990== by 0x946A97F: (within /usr/lib/libgconf-2.so.4.1.5)
2010-03-24oauth-proxy-call: Free the encoded string that we add to the header stringRob Bradford1-1/+3
This resolves the following leak: ==14633== 848 bytes in 28 blocks are definitely lost in loss record 54 of 75 ==14633== at 0x4C2391E: malloc (vg_replace_malloc.c:207) ==14633== by 0x4C23AA7: realloc (vg_replace_malloc.c:429) ==14633== by 0x644E47D: g_realloc (gmem.c:170) ==14633== by 0x6468353: g_string_maybe_expand (gstring.c:361) ==14633== by 0x64694D9: g_string_sized_new (gstring.c:386) ==14633== by 0x56F6E6F: soup_uri_encode (soup-uri.c:617) ==14633== by 0x6C51D7B: _prepare (oauth-proxy-call.c:162) ==14633== by 0x6C4EB25: prepare_message (rest-proxy-call.c:636) ==14633== by 0x6C4F152: rest_proxy_call_async (rest-proxy-call.c:696) ==14633== by 0xB221BDC: online_notify (twitter.c:563) ==14633== by 0xB2224AF: credentials_updated (twitter.c:588) ==14633== by 0x945CE33: gconf_listeners_notify (in /usr/lib/libgconf-2.so.4.1.5)
2010-03-24rest-xml-parser: Free the textReader after we close itRob Bradford1-0/+1
This resolves the following leak: ==10948== 43,296 (672 direct, 42,624 indirect) bytes in 2 blocks are definitely lost in loss record 109 of 124 ==10948== at 0x4C2391E: malloc (vg_replace_malloc.c:207) ==10948== by 0x71460DA: xmlNewTextReader (in /usr/lib/libxml2.so.2.7.4) ==10948== by 0x71465A1: xmlReaderForMemory (in /usr/lib/libxml2.so.2.7.4) ==10948== by 0x6C4FF5D: rest_xml_parser_parse_from_data (rest-xml-parser.c:345) ==10948== by 0xB2211C4: node_from_call (twitter.c:142) ==10948== by 0xB221E5B: verify_cb (twitter.c:487) ==10948== by 0x6C4EF78: _call_async_finished_cb (rest-proxy-call.c:557) ==10948== by 0x5BC43EC: g_closure_invoke (gclosure.c:767) ==10948== by 0x5BD7CDA: signal_emit_unlocked_R (gsignal.c:3247) ==10948== by 0x5BD9081: g_signal_emit_valist (gsignal.c:2980) ==10948== by 0x5BD9552: g_signal_emit (gsignal.c:3037) ==10948== by 0x56E8FAE: soup_message_io_finished (soup-message-io.c:177) ==10948==
2010-03-19Revert "Remove oauth_proxy_auth_step"Ross Burton2-0/+117
This reverts commit cf01d69f3bbcb899e12c48d8fb59cd56bb69a0c3.
2010-03-09Remove oauth_proxy_auth_stepRoss Burton2-117/+0
2010-03-09Use oauth_proxy_call_parse_token_reponse in request_token/access_tokenRoss Burton1-29/+4
2010-03-09Add oauth_proxy_call_parse_token_reponse to parse token responsesRoss Burton2-0/+25
2010-03-09Remove stale TODORoss Burton1-2/+0
2010-03-02Change struct definition to please GIR parser (MB#9674)Ross Burton1-4/+7
2009-11-11Fix rest/Rest-0.6.gir generationRoss Burton1-1/+1
2009-11-11Use AM_V_GEN not QUIET_GENRoss Burton1-2/+2