summaryrefslogtreecommitdiff
path: root/src/file-transfer-channel.c
Commit message (Collapse)AuthorAgeFilesLines
* Use TP_ERROR instead of long-deprecated TP_ERRORSSimon McVittie2012-05-071-10/+10
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49594 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
* ft-channel: don't call gibber_ft_send unless the remote is accepted alreadyJonny Lamb2012-04-031-4/+39
| | | | | | | | This should fixe all the annoying TimeoutErrors in the outgoing file transfer tests waiting for TransferredBytesChanged (salut was actually asserting). \o/ Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* file-transfer-channel: Fix file transfer on windows.Siraj Razick2012-03-261-10/+8
| | | | | | | | Fix file-transfer-channel so that it handles file transfers on windows, The current code is designed not to support file transfers on windows. Reviewed-by: Olli Salli <olli.salli@collabora.co.uk>
* file-transfer-channel: Fix Compile issues under Windows/mingw32Siraj Razick2012-03-121-1/+5
| | | | | | Move Unix specific variables and headers into G_OS_UNIX. Please note this does not enable TP_SOCKET_ADDRESS_TYPE_IPV6 or TP_SOCKET_ADDRESS_TYPE_IPV4 it just fixes compile issues. Such changes will be done later.
* Merge ipv4/6 testing into the file transfer tester so any test can be ran ↵Trever Fischer2012-03-071-5/+5
| | | | without unix sockets
* Cleanup code formatting, errors, warnnings, and use of TpSocketAddressTypeTrever Fischer2012-03-071-24/+48
|
* Stop leaking the underlying GSocketTrever Fischer2012-03-071-17/+25
|
* Unify socket creation methodsTrever Fischer2012-03-071-79/+33
|
* Announce support for ipv4 and ipv6 socketsTrever Fischer2012-03-071-0/+11
|
* Generalize salut_file_transfer_channel_finalize to handle any kind of socket ↵Trever Fischer2012-03-071-19/+25
| | | | cleanup
* Use GSocket for unix sockets in file transfer codeTrever Fischer2012-03-071-42/+25
|
* Implement IPV4/6 with GSocket API and write IPv4 testsTrever Fischer2012-03-071-6/+71
|
* Merge branch 'cleanups'Jonny Lamb2012-02-291-377/+110
|\
| * file-transfer-channel: subclass TpBaseChannelJonny Lamb2012-01-311-377/+110
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | file-transfer-channel: Disable file-trasnfer for WindowsSiraj Razick2012-02-221-0/+12
| | | | | | | | | | | | setup_local_socket returns false if the platform is not unix, so salut_file_transfer_channel_accept_file and salut_file_transfer_channel_provide_file will fail with errors on windows.
* | Update Wocky snapshot for one big header.Will Thompson2012-02-061-4/+1
|/ | | | | | | | | | We have to lose the reference to wocky_heartbeat_source_new from the symbol hack table, because it's not exposed in Wocky's public headers any more. That's okay, though: it's not intended for use by applications, let alone plugins. https://bugs.freedesktop.org/show_bug.cgi?id=45703 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Use _unref instead of _free _destroy when possible.unrefXavier Claessens2011-11-161-2/+2
| | | | | | | | | | | Replace g_(ptr_)array_free (foo, TRUE) and g_hash_table_destroy with respectively g_(ptr_)array_unref (foo) and g_hash_table_unref. I used this command to generate this patch: for f in `find -name "*.c"`; do sed -i $f -re 's/g_ptr_array_free \(([^ ,]+), TRUE\)/g_ptr_array_unref \(\1\)/'; done See Danielle's blog for explanation of possible bug _free can do: http://blogs.gnome.org/danni/2011/11/16/mistakes-with-g_value_set_boxed/
* ft metadata: use tp-glib generated code rather than using the draft interfaceJonny Lamb2011-11-151-6/+5
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* metadata: update to new draftJonny Lamb2011-11-091-10/+13
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* ft-channel: simplify adding fields to dataformJonny Lamb2011-11-091-6/+7
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* ft-channel: use a more appropriate GQueue than a GListJonny Lamb2011-11-091-4/+4
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* ft-channel: deal with bad ServiceName fieldsJonny Lamb2011-11-091-1/+9
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* ft-channel: include metadata in file transfer offerJonny Lamb2011-10-281-0/+100
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* ft-channel: make Metadata props immutable and test themJonny Lamb2011-10-281-0/+2
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* ft-channel: get Metadata props from the file transfer offerJonny Lamb2011-10-281-0/+96
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* ft-channel: set Metadata props on constructionJonny Lamb2011-10-271-1/+5
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* ft-channel: implement Metadata propertiesJonny Lamb2011-10-271-2/+66
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Cope with the default value of handle-type being changed in new tp-glibSjoerd Simons2011-06-251-1/+4
| | | | | | | | In recent versions of tp-glib the handle-type property defaults to TP_UNKNOWN_HANDLE_TYPE instead of 0. Update the various assertions which verify a channel doesn't get constructed with an unexpected handle type to accept both 0 and TP_UNKNOWN_HANDLE_TYPE so we're compatible with both versions.
* stop using GibberXmppErrorJonny Lamb2011-05-041-1/+0
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* src: remove annoying salut- prefixJonny Lamb2011-04-281-0/+1629
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>