Commit Graph

1429 Commits

Author SHA1 Message Date
Claudio Takahasi
82a42f8b8a obexd: Use utility function to report transfer complete 2012-12-04 22:47:54 +01:00
Claudio Takahasi
aeeacf204d obexd: Use utility function to report transfer progress 2012-12-04 22:47:54 +01:00
Claudio Takahasi
2ec536a9e8 obexd: Writing the received data into the file 2012-12-04 22:47:54 +01:00
Claudio Takahasi
5c26329358 obexd: Added GetFile implementation 2012-12-04 22:47:53 +01:00
Vinicius Costa Gomes
50d7138fe7 obexd: Removing memory leaks when setting the target filename 2012-12-04 22:47:53 +01:00
Vinicius Costa Gomes
969cac307c obexd: Closes the transfer as the transfer finishes 2012-12-04 22:47:53 +01:00
Johan Hedberg
b29147c000 obexd: Improve the dc_cb/xfer callback workaround
It's in anycase not safe to call these two callbacks at the same time here, but
in case some code does use the dc_cb for calling gw_obex_close (which is quite
a rational thing to do in this case) give it a chance to work.
2012-12-04 22:47:53 +01:00
Vinicius Costa Gomes
9a0f822e86 obexd: Removes a memory leak 2012-12-04 22:47:53 +01:00
Vinicius Costa Gomes
5e0bf2bcb4 obexd: Stores the transfer object path in session_data too 2012-12-04 22:47:53 +01:00
Johan Hedberg
1d01254ca1 obexd: Change xfer callback and dc_cb order in the event of a disconnection
This is mainly working around a bug in the gwobex API. Since it doesn't have
proper refcounting the xfer callback can free the gwobex ctx and so the second
callback fails. It could of course happen in the other direction too (dc_cb
calls gw_obex_close) but since no known code is using dc_cb it's at least a
little safer this way.
2012-12-04 22:47:53 +01:00
Claudio Takahasi
bff8882e6c obexd: Return an array of dictionary for ListFolder 2012-12-04 22:47:53 +01:00
Claudio Takahasi
807f9b7481 obexd: Added ListFolder method skeleton 2012-12-04 22:47:53 +01:00
Claudio Takahasi
00ec4eebd1 obexd: Removed folder parameter from ListFolder method 2012-12-04 22:47:53 +01:00
Vinicius Costa Gomes
9a3271cdea obexd: Removes the agent watch if the agent is released 2012-12-04 22:47:52 +01:00
Vinicius Costa Gomes
2a53e26f65 obexd: Do not register the transfer interface if it was already registered 2012-12-04 22:47:52 +01:00
Vinicius Costa Gomes
6a682e9491 obexd: Only try to send messages to the agent if there's one registered 2012-12-04 22:47:52 +01:00
Vinicius Costa Gomes
ea811042ef obexd: Removes the disconnect watch when the session is freed 2012-12-04 22:47:52 +01:00
Vinicius Costa Gomes
f97b09d4e3 obexd: Implements FTP PutFile 2012-12-04 22:47:52 +01:00
Vinicius Costa Gomes
23e6e28fb0 obexd: Support changing the filename that will be sent in the OBEX header 2012-12-04 22:47:52 +01:00
Claudio Takahasi
e356794180 obexd: Added ChangeFolder method implementation 2012-12-04 22:47:52 +01:00
Claudio Takahasi
67006129b1 obexd: Use Folder Browsing UUID length constant defined in gwobex 2012-12-04 22:47:52 +01:00
Claudio Takahasi
04b3834419 obexd: Use Folder Browsing UUID defined in gwobex. 2012-12-04 22:47:52 +01:00
Claudio Takahasi
4fafb9bae7 obexd: Added target_len in the session_data struct 2012-12-04 22:47:52 +01:00
Vinicius Costa Gomes
0b0e51f7c6 obexd: Do not create the session if the RFCOMM connection fails 2012-12-04 22:47:52 +01:00
Vinicius Costa Gomes
84f15bd2da obexd: Adds AssignAgent and RemoveAgent 2012-12-04 22:47:52 +01:00
Marcel Holtmann
c21b0f9d01 obexd: Disallow SETPATH to directories without executable permission 2012-12-04 22:47:52 +01:00
Marcel Holtmann
a713c4b801 obexd: Add skeleton for ExchangeBusinessCards method 2012-12-04 22:47:52 +01:00
Marcel Holtmann
bcc1b03424 obexd: Add skeleton for PullBusinessCard support 2012-12-04 22:47:51 +01:00
Claudio Takahasi
5ce1a692e2 obexd: CreateSession calls must return the object path 2012-12-04 22:47:51 +01:00
Claudio Takahasi
7adfcd3408 obexd: Added FileTransfer interface registration 2012-12-04 22:47:51 +01:00
Claudio Takahasi
cd879f3671 obexd: Renamed variables(uuid and target) to avoid misinterpretation 2012-12-04 22:47:51 +01:00
Vinicius Costa Gomes
523c0ab495 obexd: Adds support for cancelling a transfer 2012-12-04 22:47:51 +01:00
Marcel Holtmann
4e4eb54758 obexd: Fix 32-bit/64-bit printf issue 2012-12-04 22:47:51 +01:00
Marcel Holtmann
e11c6cd155 obexd: Use SESSION_BASEPATH and TRANSFER_BASEPATH 2012-12-04 22:47:51 +01:00
Claudio Takahasi
3871079dc4 obexd: Added session methods skeleton 2012-12-04 22:47:51 +01:00
Claudio Takahasi
7a92ff8110 obexd: Establish File Transfer OBEX connection when CreateSession method is called 2012-12-04 22:47:51 +01:00
Claudio Takahasi
26e1b85702 obexd: Added CreateSession skeleton 2012-12-04 22:47:51 +01:00
Vinicius Costa Gomes
2edc33c430 obexd: Fixes a segfault when disconnected trying to send multiple files 2012-12-04 22:47:51 +01:00
Claudio Takahasi
0a2a27c3eb obexd: Fix the problem to send object larger than 4096 (session data buffer size) 2012-12-04 22:47:51 +01:00
Claudio Takahasi
aae3203aae obexd: Fixed memory leak when session creation fails 2012-12-04 22:47:51 +01:00
Marcel Holtmann
4a276a4bfd obexd: Call agent release method only if present 2012-12-04 22:47:51 +01:00
Marcel Holtmann
004ccc9f57 obexd: Call unref on the right data structures 2012-12-04 22:47:51 +01:00
Marcel Holtmann
4a10493605 obexd: Fix SDP record memory leak 2012-12-04 22:47:50 +01:00
Marcel Holtmann
b56b731bd9 obexd: Compile only obexd with threading support if needed 2012-12-04 22:47:50 +01:00
Marcel Holtmann
35d82f7bde obexd: Closes the session when unable to write data to the transfer 2012-12-04 22:47:50 +01:00
Marcel Holtmann
37ee988a6d obexd: Fix shortcut for --pbap option 2012-12-04 22:47:50 +01:00
Marcel Holtmann
d646092228 obexd: Check for phonebook MIME type 2012-12-04 22:47:50 +01:00
Marcel Holtmann
ce6d0771cc obexd: Some minor cleanups 2012-12-04 22:47:50 +01:00
Marcel Holtmann
bac315ca0f obexd: Add first attempt at PBAP server implementation 2012-12-04 22:47:50 +01:00
Marcel Holtmann
b7b2ad11c6 obexd: Add option for testing Phonebook Access 2012-12-04 22:47:50 +01:00
Marcel Holtmann
b8b6009552 obexd: Add initial steps for phonebook retrieval 2012-12-04 22:47:50 +01:00
Marcel Holtmann
6a236b790a obexd: The return values will be a string 2012-12-04 22:47:50 +01:00
Marcel Holtmann
e3f45996df obexd: Add more functions to the phonebook framework 2012-12-04 22:47:50 +01:00
Marcel Holtmann
c79d67ac1f obexd: Add workaround for broken libraries within plugins 2012-12-04 22:47:50 +01:00
Marcel Holtmann
7c20375b77 obexd: Enable threading if supported 2012-12-04 22:47:50 +01:00
Marcel Holtmann
22c4dfafe9 obexd: Add code for testing phonebook plugins 2012-12-04 22:47:50 +01:00
Marcel Holtmann
d6fcf6aba9 obexd: Add driver data functions 2012-12-04 22:47:49 +01:00
Marcel Holtmann
6f3a6121ee obexd: Fix debugging statement 2012-12-04 22:47:49 +01:00
Marcel Holtmann
d3e7f55e19 obexd: Add skeleton for EBook driver 2012-12-04 22:47:49 +01:00
Marcel Holtmann
69e8591153 obexd: Add debugging to phonebook driver registration 2012-12-04 22:47:49 +01:00
Marcel Holtmann
00dd968673 obexd: Use GOption argument parsing 2012-12-04 22:47:49 +01:00
Marcel Holtmann
5787cb4e17 obexd: Check optional threading support 2012-12-04 22:47:49 +01:00
Marcel Holtmann
1985137b8d obexd: Simplify plugin descriptor checking 2012-12-04 22:47:49 +01:00
Marcel Holtmann
e28829b44a obexd: Use dlopen() directly and don't depend on GModule 2012-12-04 22:47:49 +01:00
Marcel Holtmann
30d230d81d obexd: Add skeleton for EBook plugin 2012-12-04 22:47:49 +01:00
Marcel Holtmann
94b83f5bc5 obexd: Add prototypes for phonebook abstraction 2012-12-04 22:47:49 +01:00
Marcel Holtmann
20f1a8eb69 obexd: Add files for phonebook abstraction 2012-12-04 22:47:49 +01:00
Marcel Holtmann
f98f84d08e obexd: Fix agent disconnect callback declaration 2012-12-04 22:47:49 +01:00
Vinicius Costa Gomes
23333ab922 obexd: Uses the BlueZ service plugin to ask for authorization for FTP 2012-12-04 22:47:49 +01:00
Vinicius Costa Gomes
e77fbdfaed obexd: Makes use of the BlueZ Service plugin to add services records 2012-12-04 22:47:49 +01:00
Johan Hedberg
0d00c0713f obexd: We should never send an OBEX abort when we are a server. 2012-12-04 22:47:49 +01:00
Johan Hedberg
d9586a86b4 obexd: Set buffer to NULL after freeing it 2012-12-04 22:47:48 +01:00
Marcel Holtmann
9866ce8d55 obexd: Add initial implementation of SendFiles method 2012-12-04 22:47:48 +01:00
Marcel Holtmann
66f5e125ef obexd: Use GW_OBEX_THREADS_ENABLED instead of G_THREADS_ENABLED 2012-12-04 22:47:48 +01:00
Marcel Holtmann
ce170a9fdc obexd: Add skeleton for OBEX client sessions 2012-12-04 22:47:48 +01:00
Marcel Holtmann
f7b9865e51 obexd: Decode parameters of SendFiles method 2012-12-04 22:47:48 +01:00
Marcel Holtmann
3caef345d1 obexd: Update client API documentation 2012-12-04 22:47:48 +01:00
Marcel Holtmann
bd58c41ecf obexd: Add initial steps for OBEX client implementation 2012-12-04 22:47:48 +01:00
Marcel Holtmann
ef3648a694 obexd: Add skeleton for OBEX client implementation 2012-12-04 22:47:48 +01:00
Marcel Holtmann
38cc843679 obexd: Add private copy of osso-gwobex-0.60 2012-12-04 22:47:48 +01:00
Johan Hedberg
41f2c9e5d8 obexd: Minor coding style consistency fix 2012-12-04 22:47:48 +01:00
Vinicius Costa Gomes
c3452bea97 obexd: Fixes the case when the client doesn't send the Lenght header 2012-12-04 22:47:48 +01:00
Vinicius Costa Gomes
c3d86fec64 obexd: Adding a missing unref after sending a message on auth_error() 2012-12-04 22:47:48 +01:00
Johan Hedberg
8f29e8c2f1 obexd: Use LM_AUTH and LM_ENCRYPT instead of LM_SECURE for now (same way as bluez) 2012-12-04 22:47:48 +01:00
Johan Hedberg
15734b43c9 obexd: Only use a secure socket if specified 2012-12-04 22:47:48 +01:00
Marcel Holtmann
99633b88a5 obexd: Have DBG using the logging infrastructure 2012-12-04 22:47:47 +01:00
Marcel Holtmann
f520638717 obexd: Add plugin infrastructure 2012-12-04 22:47:47 +01:00
Vinicius Costa Gomes
2d9cd8eee6 obexd: Removing the (useless) flags to add bluetooth support 2012-12-04 22:47:47 +01:00
Vinicius Costa Gomes
b6dd4fce6c obexd: Adds support for TTY transport. 2012-12-04 22:47:47 +01:00
Johan Hedberg
b1463011fb obexd: Minor coding style and log message fix 2012-12-04 22:47:47 +01:00
Johan Hedberg
6c6c326f06 obexd: Fix socket descriptor leak 2012-12-04 22:47:47 +01:00
Johan Hedberg
fbc604f565 obexd: Fix error code for all folder creation cases 2012-12-04 22:47:47 +01:00
Johan Hedberg
419cfdf4a9 obexd: Make sure TransferCompleted is emmited for ABORT cases 2012-12-04 22:47:47 +01:00
Johan Hedberg
cbf76556ac obexd: Make sure the daemon always exits with the apropriate status 2012-12-04 22:47:47 +01:00
Johan Hedberg
78baef1dd6 obexd: Coding style and whitespace fixes 2012-12-04 22:47:47 +01:00
Vinicius Costa Gomes
48b3276603 obexd: Fixing the behavior of ftp_setpath when the folder couldn't be found. 2012-12-04 22:47:47 +01:00
Vinicius Costa Gomes
e71f11053f obexd: Now only the same application that authorized the transfer is able to cancel it. 2012-12-04 22:47:47 +01:00
Vinicius Costa Gomes
7d3742525c obexd: There were some segfaults with asynchronous agents. 2012-12-04 22:47:47 +01:00
Vinicius Costa Gomes
0bf57eb968 obexd: Makes clear that the capability object isn't available to OPUSH and fixes a forgotten break, when setting the capability object. 2012-12-04 22:47:47 +01:00
Vinicius Costa Gomes
4ff2b6f9a7 obexd: Support for dynamic capability file.
Now a script could be passed as a capability file and its output is sent as
a capability object, just prepend the file name with '!' (some escaping may
be needed).
2012-12-04 22:47:47 +01:00
Vinicius Costa Gomes
4b6566781a obexd: Calls Agent.Cancel() when some error occurs during Authorization. 2012-12-04 22:47:46 +01:00
Vinicius Costa Gomes
d414d42387 obexd: Allows the Remote Device to cancel the tranfer while waiting for authorization.
Now we don't need to wait for a timeout to start another transfer.
2012-12-04 22:47:46 +01:00
Vinicius Costa Gomes
efae2b88f7 obexd: gmtime() already converts localtime to UTC time, so just adding 'Z' to time string. 2012-12-04 22:47:46 +01:00
Vinicius Costa Gomes
858703e7a4 obexd: Removing incomplete files when some error occurs. 2012-12-04 22:47:46 +01:00
Johan Hedberg
810e80df6f obexd: Add FTP deletion support 2012-12-04 22:47:46 +01:00
Johan Hedberg
30e3b9e9f2 obexd: Use size = 0 to indicate deletion (default as long as no body headers have been received) 2012-12-04 22:47:46 +01:00
Johan Hedberg
e85678d16e obexd: Remove incomplete file if PUT is aborted 2012-12-04 22:47:46 +01:00
Johan Hedberg
3031cd97d2 obexd: Spaces don't need to be escaped since we quote the name attribute 2012-12-04 22:47:46 +01:00
Johan Hedberg
a2c4a45e28 obexd: Allocate correct amount of space for permissions attributes 2012-12-04 22:47:46 +01:00
Johan Hedberg
2f21e1a7d0 obexd: Make obex_read and obex_write function names a little bit more clear (in that their verb applies to the OBEX stream and not local files) 2012-12-04 22:47:46 +01:00
Johan Hedberg
c4ff7f004c obexd: Do URI escaping of filenames 2012-12-04 22:47:46 +01:00
Johan Hedberg
abe009fff9 obexd: Fix minor whitespace issues 2012-12-04 22:47:46 +01:00
Vinicius Costa Gomes
e067a89594 obexd: Forgot to fix Transfer.Started signal for FTP. 2012-12-04 22:47:46 +01:00
Vinicius Costa Gomes
c0cf2c5f4b obexd: Transfer signals are now only sent for OPUSH. 2012-12-04 22:47:46 +01:00
Vinicius Costa Gomes
c735a95d7f obexd: Fixes register_transfer() invalid declarations. 2012-12-04 22:47:46 +01:00
Vinicius Costa Gomes
05f37d61e3 obexd: Adds transfer cancel. 2012-12-04 22:47:45 +01:00
Vinicius Costa Gomes
e539764caa obexd: Add support for FTP PUT, for now just files. 2012-12-04 22:47:45 +01:00
Claudio Takahasi
1c55fb8d7b obexd: Transfer interface must be registered for OPP only(NULL target) 2012-12-04 22:47:45 +01:00
Claudio Takahasi
172f5121ae obexd: Added session GetProperty 2012-12-04 22:47:45 +01:00
Claudio Takahasi
8c5ca86e9a obexd: Emitting SessionRemoved signal 2012-12-04 22:47:45 +01:00
Claudio Takahasi
b5891ebfa0 obexd: Added Session D-Bus interface skeleton 2012-12-04 22:47:45 +01:00
Vinicius Costa Gomes
fa413ebabc obexd: Optimizing parameters passing on file_stat_line() 2012-12-04 22:47:45 +01:00
Vinicius Costa Gomes
6b00375df6 obexd: Some GLib versions don't define G_GUINT64_FORMAT 2012-12-04 22:47:45 +01:00
Claudio Takahasi
0f7b050659 obexd: Fixed help cmd line option 2012-12-04 22:47:45 +01:00
Vinicius Costa Gomes
775f5ffcca obexd: Fixing going to parent folder and some folder listing optimizations. 2012-12-04 22:47:45 +01:00
Claudio Takahasi
975449945e obexd: Extract time from header 2012-12-04 22:47:45 +01:00
Claudio Takahasi
10bb8c3e50 obexd: Making authorization and encryption mandatory for FTP 2012-12-04 22:47:45 +01:00
Vinicius Costa Gomes
e92852400c obexd: Folder listing support. 2012-12-04 22:47:45 +01:00
Marcel Holtmann
6984ba9a57 obexd: Include initial source 2012-12-04 22:28:29 +01:00