summaryrefslogtreecommitdiff
path: root/obexd/plugins
Commit message (Collapse)AuthorAgeFilesLines
* obexd: pbap: add headers correctly for size querySimon Fels2015-10-201-2/+3
| | | | | | | | | | | | | When client queries for the size of a phonebook we fall into a indefinite loop as g_obex_apparam_encode always returns the same number of items added to the buffer regardless how often it is called. In former times where this code wasn't using GObexApparams a array was reduced each time the headers where added and so we could easily find out when we've added all headers. However today we need to solve this a bit differently by also setting the firstpacket flag when we receive the phonebook size result from the phonebook implementation which then lets us correctly go through without falling into a indefinite loop.
* obexd/opp: Fix OPP GET request pathGowtham Anandha Babu2015-06-231-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | The default path is /etc/bluetooth/vcard.vcf which obexd is not able to access. obexd[11654]: obexd/src/obex.c:cmd_get() session 0x64edff0 obexd[11654]: GET(0x3), (null)(0xffffffff) obexd[11654]: obexd/src/obex.c:parse_type() TYPE: text/x-vcard obexd[11654]: open(/etc/bluetooth/vcard.vcf): Operation not permitted (1) obexd[11654]: GET(0x3), NOT_FOUND(0x44) After making this path as obex root folder, it is able to succeed. obexd[12246]: obexd/src/obex.c:cmd_get() session 0x64ed830 obexd[12246]: GET(0x3), (null)(0xffffffff) obexd[12246]: obexd/src/obex.c:parse_type() TYPE: text/x-vcard obexd[12246]: obexd/src/obex.c:driver_get_headers() name=(null) type=text/x-vcard object=0x8 obexd[12246]: GET(0x3), CONTINUE(0x10) obexd[12246]: obexd/src/obex.c:send_data() name=(null) type=text/x-vcard file=0x8 size=3061 obexd[12246]: obexd/src/obex.c:driver_read() 73 read obexd[12246]: obexd/src/obex.c:send_data() name=(null) type=text/x-vcard file=0x8 size=3066 obexd[12246]: obexd/src/obex.c:driver_read() 0 read obexd[12246]: obexd/src/obex.c:transfer_complete()
* obexd: Remove unused parameter from manager_request_authorizationSzymon Janc2015-04-081-3/+1
| | | | | This fix compilation error with musl due to missing (now not needed) stdint.h include.
* obexd/pbap: Fix NULL check to avoid potential crashBharat Panda2015-03-201-5/+5
| | | | NULL pointer check for name is done before using the same.
* obexd: Fix cross includes from client and pluginsMarcel Holtmann2015-03-0113-69/+68
|
* obexd: Fix includes for gobex.h headerMarcel Holtmann2015-03-012-4/+4
|
* obexd: Fix includes for gdbus.h headerMarcel Holtmann2015-03-013-4/+7
|
* obexd: Use local libbluetooth includesMarcel Holtmann2015-02-282-4/+5
|
* obexd: Add explicit include for lib/bluetooth.hMarcel Holtmann2015-02-181-1/+2
|
* obexd: List all enum values in switchSzymon Janc2014-12-081-0/+2
| | | | As described in coding style M10.
* pbap: Fix When MaxListCount header missingAnurag Biradar2014-12-011-0/+6
| | | | | As per spec(5.3.4.4) when MaxListCount headser is missing then PSE should assume MaxListCount value as MAX (65535)
* obexd/ftp: Handle transfer reset for FTPBharat Panda2014-11-041-1/+9
| | | | | Changes made to emit transfer completed to .Transfer1 interface on ftp reset.
* obexd/ftp: Add support for tracking transfersBharat Panda2014-10-311-0/+20
| | | | This enables transfer management for FTP connections.
* obexd/mas: Handle register notification openBharat Panda2014-10-291-1/+29
| | | | Changes made to handle method open for mime_notification_registration
* obexd/mas: Add Support for MSETime filterBharat Panda2014-10-221-0/+38
| | | | | Changes made to add support for MSE local time and timezone offset parameter along with GetMessageListing response.
* obexd/client/pbap: Add support for spd,favGowtham Anandha Babu2014-10-161-0/+4
| | | | Add support for the speed-dial and favorite folders.
* obexd: Fix compilation error with muslSzymon Janc2014-09-241-1/+1
| | | | | | | | | | | | CC obexd/plugins/obexd-filesystem.o In file included from obexd/plugins/filesystem.c:40:0: /usr/include/wait.h:1:2: error: #warning redirecting incorrect #include <wait.h> to <sys/wait.h> [-Werror=cpp] #warning redirecting incorrect #include <wait.h> to <sys/wait.h> ^ cc1: all warnings being treated as errors Makefile:6447: recipe for target 'obexd/plugins/obexd-filesystem.o' failed make[1]: *** [obexd/plugins/obexd-filesystem.o] Error 1
* obexd/mas: Fix crash when outparams is NULLLuiz Augusto von Dentz2014-09-031-0/+3
| | | | | outparams can be NULL meaning no application parameters should be added to the response.
* obexd/mas: Fix parsing of application parametersLuiz Augusto von Dentz2014-09-031-6/+18
| | | | | Some commands don't have any mandatory application parameter which means inparams can be NULL which should not be treated as a bad request.
* pbap: Fix PhonebookSize endiannessHannu Mallat2014-02-051-2/+2
| | | | | As g_obex_apparam_set_uint16() converts data to big-endian format internally, do not call htons() prior to it.
* obexd: Make btio/btio.h include localMarcel Holtmann2014-01-252-2/+3
|
* obexd/irmc: Fix folder for LUID requestsHarald Schmitt2014-01-201-1/+1
| | | | | | The old macro PB_LUID_FOLDER had the folder luid on the second level: /telecom/luid. But the luid folder occurs per IrMC spec on level three e.g. /telecom/pb/luid.
* obexd/bluetooth: Make dict_append_entry function staticSzymon Janc2013-10-041-1/+1
| | | | | | | | This fix following build error: CC obexd/plugins/obexd-bluetooth.o obexd/plugins/bluetooth.c:242:6: error: no previous declaration for ‘dict_append_entry’ [-Werror=missing-declarations]
* obexd/bluetooth: Remove unused local variablesSzymon Janc2013-10-041-4/+0
| | | | | | | | | | | | | | | | | | | | | This ix following build errors: CC obexd/plugins/obexd-bluetooth.o obexd/plugins/bluetooth.c: In function ‘register_profile_reply’: obexd/plugins/bluetooth.c:202:10: error: unused variable ‘err’ [-Werror=unused-variable] obexd/plugins/bluetooth.c: In function ‘name_acquired’: obexd/plugins/bluetooth.c:367:15: error: unused variable ‘uuid’ [-Werror=unused-variable] obexd/plugins/bluetooth.c: In function ‘name_released’: obexd/plugins/bluetooth.c:389:15: error: unused variable ‘uuid’ [-Werror=unused-variable] obexd/plugins/bluetooth.c: In function ‘bluetooth_start’: obexd/plugins/bluetooth.c:400:10: error: unused variable ‘ios’ [-Werror=unused-variable]
* obexd/bluetooth: Fix memory leakLuiz Augusto von Dentz2013-09-161-0/+1
| | | | | | | | | | | | g_io_channel_unix_new creates a reference which is then passed to obex_session_start which creates its on reference via g_io_channel_ref leading to the following leak: at 0x4A06409: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x3B03C4D89E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x3B03C88224: g_io_channel_unix_new (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x418967: profile_new_connection (bluetooth.c:148) by 0x43D763: process_message.isra.5 (object.c:259)
* obexd/bluetooth: Fix error on register_profileLuiz Augusto von Dentz2013-09-101-10/+9
| | | | | | | | | The error happens whenever RegisterProfile fails the interface is not unregistered causing any subsequent call to register_profile function to fail: obexd[944]: D-Bus failed to register /org/bluez/obex/00005005_0000_1000_8000_0002ee000001 obexd[944]: bluetooth: Failed to register profile (null)
* obexd: Make use of g_dbus_send_message*Luiz Augusto von Dentz2013-09-093-7/+6
| | | | | This replaces dbus_connection_send* with g_dbus_send_message* which do not alter message order.
* obexd: Fix not checking for valid fd on NewConnectionLuiz Augusto von Dentz2013-06-121-0/+13
| | | | | | | | | The fd needs to be checked as it may not be valid which cause the following warnings: ==8162== Warning: invalid file descriptor 1031 in syscall fcntl(DUPFD_CLOEXEC)() (obexd:8162): GLib-WARNING **: giounix.c:412Error while getting flags for FD: Bad file descriptor (9)
* bluetooth: add getsockname() entry in the bluetooth driverGustavo Padovan2013-05-291-0/+19
|
* opp: Register Session interface for OPP transfersGustavo Padovan2013-05-281-0/+3
| | | | The Session interface wasn't registered when a new transfer arrives.
* obexd: Get rid of gintLucas De Marchi2013-05-011-1/+1
| | | | | Use plain int instead of gint. In glib gint is always a typedef to int, so it's safe to use it even for callbacks with glib.
* obexd: Enable MNS serverChristian Fetzer2013-04-101-0/+2
|
* obexd: Fix includes for uuid.hMarcel Holtmann2013-01-091-1/+1
|
* obexd: Remove the total silly usage of gchar and replace it with charMarcel Holtmann2013-01-044-4/+4
|
* obexd: Fix missing config.h includesCristian Rodríguez2012-12-231-0/+4
|
* obexd: Simplify org.bluez.Error.InvalidArguments handlingAnderson Lizardo2012-12-221-9/+9
| | | | Use a helper function to void code duplication.
* obexd: Fix transfer path to include session pathLuiz Augusto von Dentz2012-12-211-8/+6
| | | | Transfer path should use the session path as prefix
* build: Remove obexd usb pluginLuiz Augusto von Dentz2012-12-131-299/+0
| | | | | This plugin is not longer maintained and used to work only in meego times.
* obexd: Fix build breakage from profile conversionMarcel Holtmann2012-12-121-1/+2
|
* irmc: Remove record detailsLuiz Augusto von Dentz2012-12-121-49/+0
| | | | Standart service records are already supported by bluetoothd
* mas: Remove record detailsLuiz Augusto von Dentz2012-12-121-51/+0
| | | | Standart service records are already supported by bluetoothd
* pbap: Remove record detailsLuiz Augusto von Dentz2012-12-121-46/+0
| | | | Standart service records are already supported by bluetoothd
* ftp: Remove record detailsLuiz Augusto von Dentz2012-12-121-45/+0
| | | | Standart service records are already supported by bluetoothd
* opp: Remove record detailsLuiz Augusto von Dentz2012-12-121-56/+0
| | | | Standart service records are already supported by bluetoothd
* obexd: Add support for custom recordsLuiz Augusto von Dentz2012-12-121-0/+19
| | | | | Services such as pcsuite and syncml use custom records not defined by Bluetooth SIG so they have to be registered using ServiceRecord entry.
* obexd: Enable support SYNC profileLuiz Augusto von Dentz2012-12-121-0/+2
|
* obexd: Enable support for MAS profileLuiz Augusto von Dentz2012-12-121-0/+2
|
* obexd: Port bluetooth plugin to use external profile supportLuiz Augusto von Dentz2012-12-121-484/+212
| | | | This changes obexd to use ProfileManager.RegisterProfile
* Revert "Ensure config.h is included by using CPPFLAGS"Johan Hedberg2012-12-0715-0/+60
| | | | | | | | | | | | | | This reverts commit 8a03376544b046a84301847d1594f6c3674983ff. The patch needs to be split up and the gdbus/ changes were bogus compared to the original commit message. Conflicts: Makefile.am Makefile.obexd profiles/cyclingspeed/cyclingspeed.c profiles/heartrate/heartrate.c src/error.c
* Use entire include path for gobex.hLucas De Marchi2012-12-051-1/+1
|