Johan Hedberg
da446f5edd
Fix format string warnings for g_dbus_create_error
...
This patch fixes gcc warnings for "format not a string literal and no
format arguments".
2010-08-19 23:24:42 +03:00
Gustavo F. Padovan
8e58667ef0
Move debug() to DBG()
...
Use the new dynamic debug feature
2010-05-21 18:21:48 +02:00
Gustavo F. Padovan
9f71c68cc5
Remove old defines from serial code
2010-05-21 14:40:36 +02:00
Gustavo F. Padovan
e891f7df62
Move logging.{c,h} to log.{c,h}
...
Try to make log stuff more similar to ConnMan and oFono.
2010-05-21 14:40:36 +02:00
Marcel Holtmann
9184e2eeb7
Update copyright information
2010-01-01 17:08:17 -08:00
Steve Grubb
2e926fb016
Fix memory leaks
...
I was doing some code reviews of the 4.54 release and found a few memory
leaks. These are mostly in error paths.
2009-10-02 11:18:16 +02:00
Marcel Holtmann
a5b1e3d02c
Switch to a full non-recursive build system
2009-08-23 00:40:59 -07:00
Marcel Holtmann
f5f61c23d7
Make all major plugins builtin to simplify debugging
2009-08-09 14:35:39 -07:00
Johan Hedberg
9e239f6af9
Fix serial proxy record info attributes
2009-07-28 13:37:16 +03:00
Johan Hedberg
a5650fa417
Use 16/32-bit UUID if possible in serial proxy records
2009-07-28 10:37:15 +03:00
Luiz Augusto von Dentz
9ab6adf3d5
Track sender of CreateProxy.
...
Only proxies created by serial.conf should be persistent.
2009-07-27 19:20:41 -03:00
Forrest Zhao
10eec6b999
Remove the serial storage functionality
...
This functionality isn't needed anymore now that we have serial.conf.
Proxies created through the D-Bus interface will always be temporary not
remembered after a bluetoothd restart.
2009-07-27 13:03:38 +03:00
Johan Hedberg
aab0414c2c
Fix whitespace
2009-07-24 10:27:35 +03:00
Forrest Zhao
1311516cf1
Add support for multiple serial proxies configuration
2009-07-24 10:23:19 +03:00
Johan Hedberg
13b40f5ed1
Fix whitespace issue
2009-06-30 16:18:05 +03:00
Johan Hedberg
124b32451f
Fix open() error check
2009-06-30 16:02:28 +03:00
Johan Hedberg
cd6e797fde
Use (safer) strncpy instead of strcpy
2009-06-30 15:48:53 +03:00
Johan Hedberg
b09e5f8892
Fix NULL check in find_port() for port->uuid
2009-06-30 14:24:54 +03:00
Luiz Augusto von Dentz
7dcf9b6f99
Make serial plugin to use adapter references.
2009-05-27 11:25:25 -03:00
Johan Hedberg
a746025869
Fix address variable type
2009-05-02 23:32:07 +03:00
Luiz Augusto von Dentz
e8610fcbe0
Fix bt_cancel_discovery to not call callback.
...
bt_cancel_discovery when disconnecting async and calling the callback
which cause crashes if the user data is free'd in between.
2009-04-30 00:35:41 +03:00
Luiz Augusto von Dentz
f7e6b2cd75
Fix bug on Serial.Connect which cause UUID-128 to be interpreted as channel.
...
strtol was generating a valid channel from the given UUID-128 and find_port
would first check if the port channel matches the given pattern.
2009-04-24 16:46:22 +03:00
Alok Barsode
e050cc3d14
Using # operator to stringify plugin name.
2009-04-21 13:25:35 +01:00
Alok Barsode
2f28c39a63
Add priority field to plugin descriptor definition and load plugins in priority order.
2009-04-21 13:23:51 +01:00
Johan Hedberg
1118edbc79
Fix uninitialized variable compiler warning
2009-04-19 00:07:39 +03:00
Luiz Augusto von Dentz
bc1b555acd
Add support to channel pattern in Serial interface.
...
Application can give RFCOMM channel as pattern for Serial.Connect and
Serial.Disconnect, in case of no service matching the given channel it
wont trigger the channel discover proceeding directly to connection phase.
2009-04-15 17:50:22 +03:00
Luiz Augusto von Dentz
0135f63663
Make Serial.Disconnect to abort connection attempt.
...
Serial.Disconnect should abort connection attempt if Serial.Connect is not
completed or user application quits before connection is done.
2009-04-14 11:11:57 -03:00
Luiz Augusto von Dentz
eeb8599f0b
Make serial port to not use channels from record storage.
...
Some devices are known to change the channels of its records so the storage
might become invalid over time. The solution is to always attempt to retrieve
the channel when connecting.
2009-04-11 18:29:47 +03:00
Luiz Augusto von Dentz
d333040da9
Make serial proxy to use confirm callback.
2009-04-01 11:59:49 -03:00
Luiz Augusto von Dentz
8347dc32bd
Add support of friendly name UUIDs for SerialProxyManager.
2009-04-01 11:59:49 -03:00
Johan Hedberg
8e706e2d4f
Convert some not-so-important info logs to debug logs
2009-03-24 12:31:10 +02:00
Johan Hedberg
44f054fa22
Be sure to remove the name listener in serial_port_free
2009-03-23 17:31:40 +02:00
Alok Barsode
bf6a4a5774
Adding version check for plugins.
2009-03-14 07:11:47 +01:00
Marcel Holtmann
92bd92f851
Use GCC visibility for exporting symbols
2009-03-11 12:02:00 +01:00
Johan Hedberg
80541b6be4
Remove unused function
2009-02-25 18:45:59 +02:00
Johan Hedberg
8bca00dadf
Fix bt_io_get parameter passing
2009-02-22 16:50:59 +02:00
Luiz Augusto von Dentz
10d6858927
Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close.
2009-02-19 16:23:10 -03:00
Luiz Augusto von Dentz
b5519a1fed
Make serial plugin to use BtIO API.
2009-02-19 10:19:11 +02:00
Marcel Holtmann
9c0b5859e6
Fix mostly every warning caused by -Wsign-compare
2009-01-29 17:58:28 +01:00
Marcel Holtmann
fb333f1c88
Update copyright information
2009-01-01 19:33:20 +01:00
Marcel Holtmann
86984e4b0e
Add missing include definitions
2008-12-23 04:32:20 +01:00
Marcel Holtmann
f463bec302
Remove old serial-api.txt documentation file
2008-12-22 08:10:37 +01:00
Johan Hedberg
fe5de84c0d
Revert previous change to g_timeout_add_seconds
...
These timeouts really need to be sub-second so g_timeout_add_seconds
can't be used.
2008-12-15 17:17:22 +02:00
Marcel Holtmann
321b4afa54
Convert two more users to g_timeout_add_seconds()
2008-12-10 21:54:12 +01:00
Luiz Augusto von Dentz
4a073b1a5a
Disallow Serial.Disconnect from unauthorized senders.
2008-12-01 18:11:38 -03:00
Johan Hedberg
f780466ede
Store RFCOMM tty fd and close it before release
2008-11-08 16:45:53 +02:00
Luiz Augusto von Dentz
f449b80bff
Fix driver removal for serial port driver.
...
Because of the last changes serial port driver would not remove all ports
registered on probe just the one registered with serial port uuid if
registered.
2008-11-07 18:21:43 -03:00
Luiz Augusto von Dentz
4ea2af53fa
Make serial driver to register RFCOMM UUID.
...
This will make serial driver to get probed for any record which has
RFCOMM UUID.
2008-11-07 15:29:56 -03:00
Luiz Augusto von Dentz
054f044588
Rename bt_string2class to bt_name2class and introduce bt_name2string.
...
Since bt_string2class didn't work for UUID128 in string format the name got
changed to be more suggestive. bt_name2string was introduced to prevent
potential use of bt_string2uuid followed with bt_uuid2string which turns
to do the same conversion twice.
2008-11-06 16:12:16 -03:00
Johan Hedberg
0cd6d963d0
Use bt_string2class instead of bt_string2uuid to avoid unecessary conversion
2008-11-06 17:13:03 +02:00