summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* ftp: remove unnecessary openobex includesLuiz Augusto von Dentz2011-11-161-3/+1
|
* ftp: remove duplicated includesLuiz Augusto von Dentz2011-11-161-2/+0
|
* Remove use of obex_object_t from service.hLuiz Augusto von Dentz2011-11-1610-49/+34
| | | | | Plugins including service.h need to include openobex headers because of this.
* Introduce obex_get_non_header_dataLuiz Augusto von Dentz2011-11-166-6/+20
| | | | | This function remove the need of calling OBEX_ObjectGetNonHdrData in the plugins.
* Remove use of obex_object_t on obex.hLuiz Augusto von Dentz2011-11-164-18/+17
| | | | | Plugins including obex.h need to include openobex headers because of this.
* Remove unused function obex_aparam_writeLuiz Augusto von Dentz2011-11-162-13/+0
|
* phonebook-tracker: Seek for contact name deeperSlawomir Bochenski2011-11-141-10/+81
| | | | | | | | | | | | Some contacts in Tracker can have no name fields set nor nickname. This patch enhances the way the contact name is obtained: 1) If there is no nco:nickname set for contact, use nco:imNickname from its related IM data. 2) As the N field is mandatory in both vCard 2.1 and 3.0 and it's the most useful field for PBAP clients, if its components are not present in Tracker, use nco:fullname (thus promote FN to N) or if nco:fullname is also not present, then use previously obtained nickname for N field.
* Fix dbus memory leakSyam Sidhardhan2011-11-141-0/+2
|
* Fix empty parameter list in function declarationSyam Sidhardhan2011-11-144-4/+4
|
* gobex: make connection id check less strictLuiz Augusto von Dentz2011-11-121-1/+1
| | | | | | | | | | | | | | | | OBEX spec says: Only the first packet in the request needs to contain the Connection Id header... If a Connection Id header is received with an invalid connection identifier, it is recommended that the operation be rejected with the response code (0xD3) “Service Unavailable”. Since not all requests packets need to contain Connection Id header we should only try to validate it in case a header is received. Reported by Hendrik Sattler <post@hendrik-sattler.de>
* gobex: fix sending Connection ID header in all requestsLuiz Augusto von Dentz2011-11-121-0/+3
| | | | | According to both OBEX and GOEP specs Connection ID should only be included in the first packet of a request.
* gobex: fix not tracking received responsesLuiz Augusto von Dentz2011-11-121-2/+3
| | | | | obex->rx_last_op is only updated if there is no pending request which means it only store last received request.
* gobex: fix checking connection id for ABORTLuiz Augusto von Dentz2011-11-121-2/+9
| | | | | | | OBEX spec state that it is optional to send a Connection Id header in an OBEX ABORT operation. Reported by Hendrik Sattler <post@hendrik-sattler.de>
* gobex: add unit test for CONNECT followed by PUT request with random dataLuiz Augusto von Dentz2011-11-122-1/+64
| | | | | | Note that in order to work the buffer had to be increased to OBEX maximum MTU otherwise test_io_cb would be sending responses for each fragment it has read which may not constitute a full packet.
* gobex: add unit test for CONNECT followed by GET wrong responseLuiz Augusto von Dentz2011-11-121-0/+52
|
* gobex: add unit test for CONNECT followed by PUT responseLuiz Augusto von Dentz2011-11-121-0/+61
|
* gobex: add unit test for CONNECT followed by PUT requestLuiz Augusto von Dentz2011-11-121-1/+75
|
* gobex: add unit test for CONNECT followed by GET responseLuiz Augusto von Dentz2011-11-121-0/+59
|
* gobex: add unit test for CONNECT followed by GET requestLuiz Augusto von Dentz2011-11-121-0/+67
|
* gobex: add unit test for CONNECT responseLuiz Augusto von Dentz2011-11-122-0/+63
|
* gobex: add unit test for CONNECT requestLuiz Augusto von Dentz2011-11-121-0/+57
|
* Fix missing URL vCard's field with OTHER subtypeRafal Michalski2011-11-101-6/+4
| | | | | | | Previously URL vCard's field (imported with default OTHER subtype) was missing after pulling entire phonebook or single vCard (for phonebook and each call history as well). This patch fixes that issue by adjusting queries to URL field.
* gobex: add check for connection idLuiz Augusto von Dentz2011-11-071-3/+26
| | | | | | Since gobex maintain the connection id of the session it is more convenient to check whether the incoming request connection matches before calling the application handlers.
* gobex: remove extra define of G_OBEX_RSP_SUCCESSLuiz Augusto von Dentz2011-11-071-1/+0
|
* ftp: fix coding styleLuiz Augusto von Dentz2011-11-031-15/+15
| | | | Make use of tabs instead of spaces
* ftp: remove pcsuite codeLuiz Augusto von Dentz2011-11-031-55/+0
| | | | | pcsuite code has been moved to pcsuite plugin and this code is no longer used.
* filesystem: remove unnecessary includesLuiz Augusto von Dentz2011-11-031-6/+6
| | | | | As a mimetype driver only plugin filesystem should not depend on service.h nor obex.h
* Make obex_server_init to initialized all services registeredLuiz Augusto von Dentz2011-11-034-30/+35
| | | | | This way we don't have to keep adding new entries to main.c everytime a new service is introduced.
* Move secure flag to service driverLuiz Augusto von Dentz2011-11-0311-20/+25
| | | | | The driver already define the channel so it makes sense to have the secure flag in the same place.
* Remove options per serverLuiz Augusto von Dentz2011-11-039-76/+35
| | | | Options are general so it is pointless to copy them to each server.
* Removed unused fields of obex_serverLuiz Augusto von Dentz2011-11-031-2/+0
|
* Remove config.h from src/obex.hLuiz Augusto von Dentz2011-11-031-4/+0
| | | | config.h should only be included in .c files
* Fix crash on error in agent_request_replySlawomir Bochenski2011-10-281-1/+2
| | | | | | | | | | | | | | This fixes regression introduced by 63becff48820dc50a30ae495e286e858a886d9dd, causing obex-client to crash in cases of e.g. remote site rejecting pushed file. The req->function set by user of agent API may request agent object deletion. This in turn checks if agent->pending is set and if it is, it tries to cancel the pending call and frees pending call data. As at this point we are already handling call response and we are going to free this pending call data, agent->pending can be set to NULL prior to calling req->function, thus preventing premature freeing of later dereferenced req.
* Code clean-up: Remove unnecessary code line breakingRafal Michalski2011-10-251-2/+1
| | | | This patch removes unnecessary code line breaking.
* gobex: dump data when G_OBEX_DEBUG_DATA is setLuiz Augusto von Dentz2011-10-221-3/+12
|
* gobex: log packets using G_OBEX_DEBUG_PACKETLuiz Augusto von Dentz2011-10-221-0/+38
|
* gobex: log headers using G_OBEX_DEBUG_HEADERLuiz Augusto von Dentz2011-10-221-0/+49
|
* gobex: log transfers using G_OBEX_DEBUG_TRANSFERLuiz Augusto von Dentz2011-10-221-0/+50
|
* gobex: log commands using G_OBEX_DEBUG_COMMANDLuiz Augusto von Dentz2011-10-221-0/+26
|
* gobex: log errors using G_OBEX_DEBUG_ERRORLuiz Augusto von Dentz2011-10-224-7/+37
|
* gobex: add initial support for debugLuiz Augusto von Dentz2011-10-223-1/+97
| | | | This adds support for debug using GOBEX_DEBUG environment variable.
* Fix pulling single vCard for parameters header missingRafal Michalski2011-10-201-2/+6
| | | | | | | | | | | According to PBAP specification (ANNEX A), all application-parameters are optional in case of pulling single vCard entry, so header for application-parameters can be omitted, and it would be valid as well. Previously pulling single vCard was always failing with "Bad Request" status in such a circumstance. This patch fixes that issue and pulling single vCard is done successfully with "OK" status. Output vCard would contain all fields under 2.1 format (as for default settings).
* gobex: fix includes of config.hLuiz Augusto von Dentz2011-10-204-3/+7
|
* gobex: add missing checks for config.hLuiz Augusto von Dentz2011-10-183-0/+12
|
* Fix breaking long lines in vCard's fieldsRafal Michalski2011-10-141-2/+7
| | | | | | | | | | Previously limit length for vCard's (vCard 2.1 with Quoted Printable encoding) property line was always set as 75 (QP_LINE_LEN), after processing each single subfield (for instance under ADR property). Thus it was not possible to reach limit equal to 0 (then breaking line is required) for all property subfields. This patch fixes that issue and length of first line, containing property parameters, is limited as well.
* Support for encoding UTF-8 characters in vCard's fieldsRafal Michalski2011-10-131-2/+46
| | | | | | | | | | | | This patch provides additional condition for selection of Quoted Printable encoding (for vCard's 2.1 fields). It will be satisfied if there is any byte which value is out of range standard ASCII set. Such byte may be a part of sequence (composed of more than single byte) for non-standard characters specified by UTF-8 and if detected, CHARSET parameter for property is set as "UTF-8". This fix is required since without such improvement some carkits may display non-standard characters incorrectly (for instance they may be omitted completely).
* Add NULL-field checking in vcard_printf_addressRadoslaw Jablonski2011-10-111-2/+5
| | | | | | Without that checking strlen(..) could be called with NULL as param and this will result crash (in some scenarios 'field' may be NULL)
* Add check for empty string in vcard_printf_fullnameRadoslaw Jablonski2011-10-111-0/+5
| | | | | | | | If tag value is empty there is possibility to quickly create empty tag without entering to rest of the logic. Checking for empty parameter at the begining is included basicaly in every print tag function in code - here somehow was missing.
* Fix OPP not sending TransferCompleted signalSlawomir Bochenski2011-10-111-2/+2
| | | | | | | | | Commit 934b3b2f5f8432b67822be9f83a141fe3783cbd7 introduced a regression in OPP, by making it not send TransferCompleted signal. This happened because OPP was calling manager_emit_transfer_completed() on .reset(), and manager_emit_transfer_completed() in turn checks if the os->object is not NULL. This fixes this by moving clearing os->object after doing service driver .reset().
* gobex: Fix decoding byte array headers with too small lengthJohan Hedberg2011-10-062-0/+15
| | | | Length values of less than 3 are invalid.