aboutsummaryrefslogtreecommitdiff
path: root/net/nfc/nfc.h
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-05-10 15:47:37 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-14 13:44:59 +0200
commit2757c3723c3d2b13e3a8bfaa034826f64e9cca43 (patch)
tree05a2c978fc9edbc973f1f6b55afbddf6ccb79f55 /net/nfc/nfc.h
parentfed7c25ec0d4894edfc36bbe5c5231e52f45483a (diff)
NFC: Send netlink events for secure elements additions and removals
When an NFC driver or host controller stack discovers a secure element, it will call nfc_add_se(). In order for userspace applications to use these secure elements, a netlink event will then be sent with the SE index and its type. With that information userspace applications can decide wether or not to enable SEs, through their indexes. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/nfc.h')
-rw-r--r--net/nfc/nfc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/nfc/nfc.h b/net/nfc/nfc.h
index cf0c4816599..a6aeee094aa 100644
--- a/net/nfc/nfc.h
+++ b/net/nfc/nfc.h
@@ -94,6 +94,9 @@ int nfc_genl_tm_deactivated(struct nfc_dev *dev);
int nfc_genl_llc_send_sdres(struct nfc_dev *dev, struct hlist_head *sdres_list);
+int nfc_genl_se_added(struct nfc_dev *dev, u32 se_idx, u16 type);
+int nfc_genl_se_removed(struct nfc_dev *dev, u32 se_idx);
+
struct nfc_dev *nfc_get_device(unsigned int idx);
static inline void nfc_put_device(struct nfc_dev *dev)