Commit Graph

127 Commits

Author SHA1 Message Date
Luiz Augusto Von Dentz
4e5782eb00 obexd: Fix crash on pbap client when message was already replied/freed 2012-12-04 22:48:21 +01:00
Luiz Augusto Von Dentz
757db74df7 obexd: Fix not replying error when transfer could not be started 2012-12-04 22:48:21 +01:00
Luiz Augusto Von Dentz
fc180e2f74 obexd: Replace uses of debug with DBG 2012-12-04 22:48:21 +01:00
Luiz Augusto von Dentz
97c6683e95 obexd: Add dynamic debug feature 2012-12-04 22:48:21 +01:00
Luiz Augusto von Dentz
6ba70b4e55 obexd: Fix possible memory leak 2012-12-04 22:48:21 +01:00
Vinicius Costa Gomes
e85450cc32 obexd: Fix PullBusinessCard ignoring the file argument
These five commits should solve the issue reported by Daniel Abraham
on the mailing list.
2012-12-04 22:48:16 +01:00
Vinicius Costa Gomes
15820b3ab5 obexd: Fix not passing filename for pull requests
Now we can store the received response somewhere.
2012-12-04 22:48:16 +01:00
Vinicius Costa Gomes
6b28669b92 obexd: Fix misuse of the listing callback
The listing callback was being used for anything that included a type
header.
2012-12-04 22:48:16 +01:00
Vinicius Costa Gomes
1a6def174f obexd: Fix sending the reply for pull requests too early
This reply was being sent too early and it was being sent on the complete
callback anyway. This was causing the sender to exit the bus too soon.
Which was causing the daemon to close the connection.
2012-12-04 22:48:16 +01:00
Luiz Augusto Von Dentz
b77a1769c2 obexd: Fix PullBusinessCard not return transfer errors 2012-12-04 22:48:12 +01:00
Luiz Augusto Von Dentz
408fb342d8 obexd: Fix RemoveSession argument to be object path instead of string 2012-12-04 22:48:12 +01:00
Luiz Augusto Von Dentz
9ce74b2d68 obexd: Move transfer implementation to its own file 2012-12-04 22:48:12 +01:00
Luiz Augusto Von Dentz
296e697160 obexd: Fix agent not being released after transfers complete
This requession was introduced by d57bffe46b71e17a640c11b389dd6da95f933729
that add another reference to the session for the agent.

To fix this a rework on refcount was done so that transfer now hold
references to the session and once done they release the references one
by one.
2012-12-04 22:48:12 +01:00
Luiz Augusto Von Dentz
170dcc96a5 obexd: Fix not releasing the watches when a session is freed 2012-12-04 22:48:11 +01:00
Luiz Augusto Von Dentz
b87eef8860 obexd: Fix sending packets before they are full
Packets should be full, expect the last piece, before they can be send to
achieve faster transfer speeds.
2012-12-04 22:48:08 +01:00
Vinicius Costa Gomes
be404857ea obexd: Fix file corruption during PUT
In some cases file corruption would occur, because the order of
the arguments to memmove was inverted.
2012-12-04 22:48:08 +01:00
Vinicius Costa Gomes
71f571dc65 obexd: the session is shutdown when the agent exits the bus 2012-12-04 22:48:08 +01:00
Vinicius Costa Gomes
b2b8fbbec2 obexd: Improve the error message when setting up the bus name 2012-12-04 22:48:08 +01:00
Vinicius Costa Gomes
7480d4761f obexd: Add support for using the logging infrastructure from obexd 2012-12-04 22:48:07 +01:00
Vinicius Costa Gomes
35d124c8b8 obexd: Fix handling of the response of the Request() method
The response was being ignored, now this will allow the agent to cancel
operations it doesn't want anymore and to change the name of the
object being sent.
2012-12-04 22:48:07 +01:00
Vinicius Costa Gomes
f4e714d814 obexd: Fix issue when opening the file fails during SendFiles
When this happens we must somehow inform the user that it has failed.
2012-12-04 22:48:07 +01:00
Marcel Holtmann
c081792026 obexd: Update Intel copyrights 2012-12-04 22:48:07 +01:00
Marcel Holtmann
4174e904a2 obexd: Update copyright information 2012-12-04 22:48:07 +01:00
Vinicius Costa Gomes
3b67aba1b3 obexd: Fix the types of session->size and session->transferred
These were represented as ssize_t which represent the maximum size
of the addressable memory, so they are 32bits in 32bit machines. We
were expecting them to be 64bits.
2012-12-04 22:48:06 +01:00
Claudio Takahasi
1b4bf20d6a obexd: Fixed SendFiles to use "Source" argument.
SendFiles was ignoring "Source" argument and using the default adapter
always.
2012-12-04 22:48:04 +01:00
Marcel Holtmann
6541461762 obexd: Fix handling of strict-aliasing rules 2012-12-04 22:48:04 +01:00
Luiz Augusto von Dentz
6a40f1133f obexd: Add Channel property.
Channel can be used to connect to specific channel without resolving target
record.
2012-12-04 22:48:04 +01:00
Vinicius Costa Gomes
83f47d59fc obexd: Fix the registration of the Transfer interface for FTP sessions
When the type of the transfer was NULL, which is the case for most
GET's, the Transfer interface was not registered.
2012-12-04 22:48:03 +01:00
Marcel Holtmann
ac08e32b2a obexd: Allow compilation with -Wsign-compare 2012-12-04 22:48:01 +01:00
Forrest Zhao
fba78dbad8 obexd: add support for Sync Putphonebook 2012-12-04 22:48:00 +01:00
Forrest Zhao
2077c66ccf obexd: add support for Sync Getphonebook 2012-12-04 22:48:00 +01:00
Marcel Holtmann
e356b2e9ff obexd: Fix compiler warning 2012-12-04 22:48:00 +01:00
Forrest Zhao
6a19f9408f obexd: add initial framework support for SYNC client 2012-12-04 22:48:00 +01:00
Forrest Zhao
ee7b55d29c obexd: use session_get_data(), session_set_data() to access 'priv' field of struct session_data 2012-12-04 22:48:00 +01:00
Forrest Zhao
5e9fcefe1a obexd: rename pbapdata in struct session_data to priv, so that it could be reused by Sync client 2012-12-04 22:48:00 +01:00
Marcel Holtmann
e8aa19fec7 obexd: Update copyright information 2012-12-04 22:48:00 +01:00
Luiz Augusto von Dentz
04235bf3f7 obexd: Introduce GetCapabilities support to client API. 2012-12-04 22:48:00 +01:00
Marcel Holtmann
2a776169f4 obexd: Return if function type is not provided 2012-12-04 22:48:00 +01:00
Raymond Liu
d184f1d0e1 obexd: Rename SetFilters/GetFilters/ListAllFilters to SetFilter/GetFilter/ListFilterFields 2012-12-04 22:47:59 +01:00
Raymond Liu
df080bdba5 obexd: Add SetFilters and remove AddFilter, RemoveFilter for PBAP client 2012-12-04 22:47:59 +01:00
Raymond Liu
ecd621b972 obexd: Bug fix on session_get, do not register transfer twice 2012-12-04 22:47:59 +01:00
Raymond Liu
99be1da31c obexd: Minor bug fix on Pull Search Function 2012-12-04 22:47:59 +01:00
Raymond Liu
3a1e6b3e8d obexd: Implement Filter related function for PBAP client 2012-12-04 22:47:59 +01:00
Raymond Liu
6172e3e51f obexd: Implement List and Search function for PBAP client 2012-12-04 22:47:59 +01:00
Raymond Liu
6497c0dd5c obexd: add Pull function for PBAP client 2012-12-04 22:47:59 +01:00
Raymond Liu
690e25c5a0 obexd: add GetSize function for PBAP client 2012-12-04 22:47:59 +01:00
Raymond Liu
ebd3eccc79 obexd: add PullAll function for PBAP client 2012-12-04 22:47:59 +01:00
Raymond Liu
bd34b83f81 obexd: Add SetFormat and SetOrder function for PBAP client 2012-12-04 22:47:59 +01:00
Raymond Liu
75d32c6b3a obexd: Implement Select function for PBAP Client 2012-12-04 22:47:59 +01:00
Raymond Liu
70f6779621 obexd: Export session_get and minior fix on get_xfer_listing_progess 2012-12-04 22:47:58 +01:00