Vinicius Costa Gomes [Mon, 21 May 2012 17:59:40 +0000 (14:59 -0300)]
netlink: Fix memory leak when handling netlink events
Samuel Ortiz [Fri, 25 May 2012 10:59:57 +0000 (12:59 +0200)]
snep: Add SNEP version to the SNEP response
Lucas De Marchi [Wed, 23 May 2012 13:20:08 +0000 (10:20 -0300)]
gdbus: add Method.NoReply annotation in introspection
Lucas De Marchi [Wed, 23 May 2012 13:20:07 +0000 (10:20 -0300)]
gdbus: add Deprecated annotation in introspection
Lucas De Marchi [Wed, 23 May 2012 13:20:06 +0000 (10:20 -0300)]
gdbus: remove signature and reply from tables
Henrique Dante de Almeida [Wed, 23 May 2012 13:20:05 +0000 (10:20 -0300)]
Do not set signature and reply in GDBus tables
Use GDBUS_* macros, so signature and reply fields are not set in each
method/signal.
Lucas De Marchi [Wed, 23 May 2012 13:20:04 +0000 (10:20 -0300)]
gdbus: loop over args to check message signature
Lucas De Marchi [Wed, 23 May 2012 13:20:03 +0000 (10:20 -0300)]
gdbus: use GDBusArgInfo to generate introspection
By using GDBusArgInfo in methods and signals, the introspection
generation is much simpler and we can add each argument name.
Henrique Dante de Almeida [Wed, 23 May 2012 13:20:02 +0000 (10:20 -0300)]
Convert GDBus methods and signals to use macro helpers
With these macro helpers we can separate in/out arguments and use their
own vector.
Lucas De Marchi [Wed, 23 May 2012 13:20:01 +0000 (10:20 -0300)]
gdbus: add and use helpers for table declarations
Lucas De Marchi [Wed, 23 May 2012 13:20:00 +0000 (10:20 -0300)]
gdbus: add argument info to methods and signals
Henrique Dante de Almeida [Wed, 23 May 2012 13:19:59 +0000 (10:19 -0300)]
Constify GDBus signal tables
Constify signal tables with the following command:
find . -name '*.[ch]' -exec \
sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \;
Henrique Dante de Almeida [Wed, 23 May 2012 13:19:58 +0000 (10:19 -0300)]
Constify GDBus method tables
Constify method tables with the following command:
find . -name '*.[ch]' -exec \
sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;
Marcel Holtmann [Fri, 18 May 2012 02:56:27 +0000 (19:56 -0700)]
gdbus: Constify introspection method table
Lucas De Marchi [Thu, 17 May 2012 18:19:59 +0000 (15:19 -0300)]
gdbus: do not call memset for terminating NUL
Lucas De Marchi [Thu, 17 May 2012 18:19:58 +0000 (15:19 -0300)]
gdbus: return if method signature is malformed
Ravi kumar Veeramally [Tue, 15 May 2012 12:27:13 +0000 (15:27 +0300)]
snep: Fix typo in SNEP push max fragment length
Samuel Ortiz [Wed, 16 May 2012 23:22:25 +0000 (01:22 +0200)]
AUTHORS: Mention Vinicius' contributions
Vinicius Costa Gomes [Tue, 15 May 2012 22:20:03 +0000 (19:20 -0300)]
build: Add main.conf to the source package
Even if this file isn't installed it needs to be present in the source
package so administrators are able to change some runtime behaviour.
Vinicius Costa Gomes [Tue, 15 May 2012 22:20:02 +0000 (19:20 -0300)]
build: install org.neard.conf dbus configuration file
Also, adds org.neard.conf to the source package.
Vinicius Costa Gomes [Tue, 15 May 2012 22:20:01 +0000 (19:20 -0300)]
tools: Fix snep-send compilation with glibc 2.15
From glibc 2.15 on, AF_NFC is already defined, so we need to protect
all local redefinitions.
Vinicius Costa Gomes [Tue, 15 May 2012 22:20:00 +0000 (19:20 -0300)]
build: Add support for building with libnl-3.0
libnl-3.0 has a precedence over the others. The change in the indetation
was made to reflect that.
Vinicius Costa Gomes [Tue, 15 May 2012 22:19:59 +0000 (19:19 -0300)]
build: Fix typo when checking for libnl-2.0
Vinicius Costa Gomes [Tue, 15 May 2012 22:19:58 +0000 (19:19 -0300)]
gitignore: add tools/snep-send
Samuel Ortiz [Mon, 14 May 2012 16:54:34 +0000 (18:54 +0200)]
Release 0.3
Ravi kumar Veeramally [Fri, 11 May 2012 14:45:02 +0000 (17:45 +0300)]
device: Dbus reply to device Push request and message queue
Replying to device push request after success or failure response
from p2p device. Maintaining push message pending queue and reply
-EALREADY if push transaction already in place.
Ravi kumar Veeramally [Mon, 14 May 2012 15:52:03 +0000 (18:52 +0300)]
snep: Implement SNEP Push fragmentation
If intended Push message is larger than lower layers max allowable
length, then slpit into multiple fragments and wait for CONTINUE
response from p2p server for first fragment and then send all
remaining fragments and close on SUCCESS response and call the
callback with status.
Olivier Guiter [Mon, 14 May 2012 12:36:35 +0000 (12:36 +0000)]
bluetooth: Complete get_properties parsing
Olivier Guiter [Mon, 14 May 2012 12:36:34 +0000 (12:36 +0000)]
bluetooth: Add pairing flag on parsing
The action flag allows a simple "parse oob data" or a "parse and
pair the devices" call.
Olivier Guiter [Mon, 14 May 2012 12:36:33 +0000 (12:36 +0000)]
bluetooth: Add synchronous local oob data read
Olivier Guiter [Mon, 14 May 2012 12:36:32 +0000 (12:36 +0000)]
bluetooth: Fix EIR parsing routine
Olivier Guiter [Mon, 14 May 2012 12:36:31 +0000 (12:36 +0000)]
bluetooth: Store default BT adapter properties
Olivier Guiter [Mon, 14 May 2012 12:36:30 +0000 (12:36 +0000)]
bluetooth: Add handlers to track adapters changes
Samuel Ortiz [Wed, 9 May 2012 11:04:30 +0000 (13:04 +0200)]
p2p: Close server socket when getting a polling error
The binding will happen again when the next device is detected.
Samuel Ortiz [Fri, 4 May 2012 18:01:56 +0000 (20:01 +0200)]
adapter: Disconnect and check for presence when getting an I/O error
Without doing so, the automatic polling won't start.
Ravi kumar Veeramally [Wed, 2 May 2012 16:00:43 +0000 (19:00 +0300)]
test: Add a device push script
Ravi kumar Veeramally [Wed, 2 May 2012 16:00:42 +0000 (19:00 +0300)]
device: Implemented Push method
Push NDEF message to p2p device by providing dbus dictionary
of attributes.
Ravi kumar Veeramally [Thu, 3 May 2012 12:40:57 +0000 (15:40 +0300)]
snep: Implement initial part of snep push method
Implemented p2p push and snep push method. Right now sending
data and closing socket file descriptor immediately. Actually
this has to be done by attaching a listening event and push
data when socket is ready to take data in.
Samuel Ortiz [Wed, 2 May 2012 09:14:18 +0000 (11:14 +0200)]
snep-send: Fix Usage string
Samuel Ortiz [Thu, 26 Apr 2012 13:34:09 +0000 (15:34 +0200)]
tools: More verbose snep-send error paths
Samuel Ortiz [Thu, 26 Apr 2012 22:24:10 +0000 (00:24 +0200)]
mifare: Parse the complete tag buffer
This fixes a regression introduced with the tlv parsing API changes.
Samuel Ortiz [Thu, 26 Apr 2012 12:56:44 +0000 (14:56 +0200)]
nfctype1: Read UID before reading all when NFCID is not set
Samuel Ortiz [Thu, 26 Apr 2012 12:18:09 +0000 (14:18 +0200)]
tag: Add tag NFCID setter
Samuel Ortiz [Thu, 26 Apr 2012 12:17:07 +0000 (14:17 +0200)]
nfctype1: Append UID to type 1 commands
Samuel Ortiz [Wed, 25 Apr 2012 16:04:20 +0000 (18:04 +0200)]
netlink: Handle the target lost event
Samuel Ortiz [Tue, 24 Apr 2012 22:48:03 +0000 (00:48 +0200)]
TODO: Update
Samuel Ortiz [Tue, 24 Apr 2012 22:34:12 +0000 (00:34 +0200)]
tools: Add an SNEP sending testing program
It simply sends a Text NDEF over a polled LLCP peer.
Samuel Ortiz [Tue, 24 Apr 2012 15:40:44 +0000 (17:40 +0200)]
adapter: Restart polling when devices link goes down
No need for a check presence implementation as the MAC link status
will be updated over netlink.
Samuel Ortiz [Tue, 24 Apr 2012 13:04:19 +0000 (15:04 +0200)]
test: Add a tag writing script
Samuel Ortiz [Mon, 23 Apr 2012 08:40:55 +0000 (10:40 +0200)]
main.conf: Initial commit
Only constant polling is configurable for now.
Samuel Ortiz [Mon, 23 Apr 2012 08:07:09 +0000 (10:07 +0200)]
device: Export devices through the proper D-Bus interface
Samuel Ortiz [Mon, 23 Apr 2012 05:45:47 +0000 (07:45 +0200)]
test: dump-device should use the Device interfae
Marcel Holtmann [Sun, 22 Apr 2012 11:58:54 +0000 (13:58 +0200)]
build: Add neard.pc to ignore list
Samuel Ortiz [Sat, 21 Apr 2012 00:08:40 +0000 (02:08 +0200)]
build: Add all relevant test to test_scripts
Samuel Ortiz [Fri, 20 Apr 2012 18:07:53 +0000 (20:07 +0200)]
adapter: Remove the Publish method
NDEF queueing should be done by upper layers with a more accurate
application status knowledge.
NDEF are now written to tags with the Tag.Write method. A Device.Push
one will also be implemented.
Samuel Ortiz [Fri, 20 Apr 2012 18:02:35 +0000 (20:02 +0200)]
tag: Define and implement the Tag Write method
This is a synchronous NDEF writing routine, unlike the Adapter one that
is queueuing NDEF for writing.
Samuel Ortiz [Fri, 20 Apr 2012 16:37:56 +0000 (18:37 +0200)]
adapter: Call devices changes from the device reader callback
Samuel Ortiz [Fri, 20 Apr 2012 16:37:03 +0000 (18:37 +0200)]
adapter: Make adapter_set_dep_state private to neard core
Plugins don't need to call thsi routine.
Samuel Ortiz [Fri, 20 Apr 2012 16:26:20 +0000 (18:26 +0200)]
tag: Remove unused routines
Samuel Ortiz [Fri, 20 Apr 2012 14:35:39 +0000 (16:35 +0200)]
tag: Change tag driver ops naming
read and write sounds more like what those drivers do.
Samuel Ortiz [Fri, 20 Apr 2012 14:23:35 +0000 (16:23 +0200)]
snep: Parse TLVs and add records to the device structure
Samuel Ortiz [Fri, 20 Apr 2012 14:23:08 +0000 (16:23 +0200)]
npp: Parse TLVs and add records to the device structure
Samuel Ortiz [Fri, 20 Apr 2012 14:21:56 +0000 (16:21 +0200)]
device: Add data and records addition routines
Samuel Ortiz [Fri, 20 Apr 2012 13:47:19 +0000 (15:47 +0200)]
ndef: Remove NDEF and TLV parsing routines tag dependencies
The NDEF and TLV parsing routines no longer take tag pointers as an argument.
Instead they return a list of records that is added to the underlying
tag structure. Devices will also get their records list.
Samuel Ortiz [Thu, 19 Apr 2012 16:59:52 +0000 (18:59 +0200)]
device: Add device listening code path
Samuel Ortiz [Thu, 19 Apr 2012 16:28:34 +0000 (18:28 +0200)]
device: Add device driver definition
Samuel Ortiz [Thu, 19 Apr 2012 15:45:37 +0000 (17:45 +0200)]
device: Add D-Bus interface
Samuel Ortiz [Thu, 19 Apr 2012 13:58:09 +0000 (15:58 +0200)]
device: Initial commit
The device layer will define the NFC devices (in peer to peer mode at first)
structure and operations.
Samuel Ortiz [Thu, 19 Apr 2012 11:57:59 +0000 (13:57 +0200)]
test: Update monitor-near
Samuel Ortiz [Thu, 19 Apr 2012 11:57:38 +0000 (13:57 +0200)]
test: Update the python neard UI
Samuel Ortiz [Thu, 19 Apr 2012 11:46:36 +0000 (13:46 +0200)]
doc: Fix tag API
Remove all target mentions.
Samuel Ortiz [Thu, 19 Apr 2012 11:44:03 +0000 (13:44 +0200)]
ndef: Fix record path
Samuel Ortiz [Thu, 19 Apr 2012 11:29:43 +0000 (13:29 +0200)]
target: Remove target layer
Samuel Ortiz [Thu, 19 Apr 2012 11:06:03 +0000 (13:06 +0200)]
adapter: Bypass the target layer
Adapters talk to tags or device directly. The target vs initiator
idea will be removed from the code base.
This commit temporarily breaks p2p.
Samuel Ortiz [Wed, 18 Apr 2012 15:21:48 +0000 (17:21 +0200)]
tag: Add D-Bus interface
Preparing for moving the Target D-Bus interface to Tag.
Samuel Ortiz [Thu, 19 Apr 2012 10:20:53 +0000 (12:20 +0200)]
Release 0.2
Marcel Holtmann [Mon, 16 Apr 2012 15:57:08 +0000 (17:57 +0200)]
gdbus: Remove unneeded NEED_DBUS_WATCH_GET_UNIX_FD check
Marcel Holtmann [Mon, 16 Apr 2012 16:32:05 +0000 (18:32 +0200)]
build: Require D-Bus 1.2 or later
Olivier Guiter [Tue, 10 Apr 2012 08:30:28 +0000 (10:30 +0200)]
configure: Glib version check updated
g_list_free_full made it into Glib since 2.28, so configure.ac is
updated accordingly.
Samuel Ortiz [Fri, 6 Apr 2012 17:17:51 +0000 (19:17 +0200)]
p2p: Remove client watch when the listener goes down
Samuel Ortiz [Fri, 6 Apr 2012 17:17:16 +0000 (19:17 +0200)]
p2p: Do not report HUP as an IO error
Samuel Ortiz [Mon, 26 Mar 2012 10:57:55 +0000 (12:57 +0200)]
netlink: Fix double free error when NFC is not built in the kernel
Anderson Lizardo [Tue, 3 Apr 2012 16:14:58 +0000 (12:14 -0400)]
gdbus: Use destroy callback for service watch
Even though service watches accepted a "destroy" callback, they were
being ignored. This fix properly pass them along so they are called when
the watch is removed.
Syam Sidhardhan [Sun, 26 Jun 2011 21:56:04 +0000 (03:26 +0530)]
gdbus: Fix white space coding style issue
- corrected the space before '{'
Ravi kumar Veeramally [Fri, 16 Mar 2012 14:48:17 +0000 (15:48 +0100)]
nfctype4: Memory leak fix
Samuel Ortiz [Fri, 16 Mar 2012 14:42:37 +0000 (15:42 +0100)]
p2p: Use the glist API to free the connected client nodes
Olivier Guiter [Fri, 16 Mar 2012 13:48:58 +0000 (14:48 +0100)]
mifare: Add MIFARE read support to type2 plugin
Olivier Guiter [Fri, 16 Mar 2012 13:48:57 +0000 (14:48 +0100)]
mifare: Initial support for reading MIFARE 1k 2k and 4k tags
They're type 2 tags with specific commands for unlocking each and every
sector.
Samuel Ortiz [Thu, 15 Mar 2012 00:47:04 +0000 (01:47 +0100)]
ndef: Add some record header parsing verbosity
Samuel Ortiz [Thu, 15 Mar 2012 00:44:52 +0000 (01:44 +0100)]
snep: Adapt to the latest p2p changes
Besides the close routine, the snep code also now supports non blocking
reads and multiple clients connecting simultaneously.
Samuel Ortiz [Thu, 15 Mar 2012 00:02:24 +0000 (01:02 +0100)]
p2p: Poll on client file descriptor for reading
After accept returns, the client file descriptor needs to be polled in
order to run non blocking reads from the actual p2p protocols handlers.
A close hook is added to those, in order to let them know about e.g. a
client disconnection.
Samuel Ortiz [Tue, 13 Mar 2012 16:15:45 +0000 (17:15 +0100)]
doc: Fix adapter-api.txt default mode
The adapter default mode is initiator, not target.
Olivier Guiter [Thu, 1 Mar 2012 15:51:47 +0000 (16:51 +0100)]
target: Fix mifare tag type names
Ravi kumar Veeramally [Wed, 29 Feb 2012 21:26:53 +0000 (23:26 +0200)]
nfctype2: Memory leak fix
Ravi kumar Veeramally [Wed, 29 Feb 2012 21:26:52 +0000 (23:26 +0200)]
nfctype1: Memory leak fix
Ravi kumar Veeramally [Wed, 29 Feb 2012 21:26:54 +0000 (23:26 +0200)]
nfctype3: Memory leak fix
Samuel Ortiz [Tue, 28 Feb 2012 18:16:27 +0000 (19:16 +0100)]
p2p: Check presence hook implementation
The MAC layer state tell if the peer device is there or not.
Samuel Ortiz [Fri, 24 Feb 2012 16:49:37 +0000 (17:49 +0100)]
adapter: Get the constant polling setting from main.conf
Samuel Ortiz [Fri, 24 Feb 2012 16:49:10 +0000 (17:49 +0100)]
bootstrap-configure: Add sysconfdir setting
Samuel Ortiz [Fri, 24 Feb 2012 16:38:24 +0000 (17:38 +0100)]
main: Support for general settings
main.conf will be neard settings file.