diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2012-06-26 18:01:02 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-06-26 18:01:02 +0200 |
commit | 8bc105bee6c641c03edf13bb0865d03f1716650b (patch) | |
tree | 3cbf4a5a519639e80ce8eeb3dac8f4009f25f807 /include | |
parent | 8a41f1a2e8b52e07c7c606c8cc902a44d6743f5f (diff) | |
download | neard-8bc105bee6c641c03edf13bb0865d03f1716650b.tar.gz neard-8bc105bee6c641c03edf13bb0865d03f1716650b.tar.bz2 neard-8bc105bee6c641c03edf13bb0865d03f1716650b.zip |
device: Specify service name when pushing NDEFs
Depending on the NDEF type, the service name will be different. In
particular, Handover NDEFs should be sent to the handover service, not
the SNEP one.
Diffstat (limited to 'include')
-rw-r--r-- | include/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h index 5785572..15df8a9 100644 --- a/include/device.h +++ b/include/device.h @@ -37,12 +37,17 @@ struct near_ndef_message; #define NEAR_DEVICE_PRIORITY_DEFAULT 0 #define NEAR_DEVICE_PRIORITY_HIGH 100 +#define NEAR_DEVICE_SN_NPP "com.android.npp" +#define NEAR_DEVICE_SN_SNEP "urn:nfc:sn:snep" +#define NEAR_DEVICE_SN_HANDOVER "urn:nfc:sn:handover" + struct near_device_driver { int priority; int (*listen)(uint32_t adapter_idx, near_device_io_cb cb); int (*push)(uint32_t adapter_idx, uint32_t target_idx, struct near_ndef_message *ndef, + char *service_name, near_device_io_cb cb); }; |