aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/nfc.h
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@openbossa.org>2011-07-01 18:31:34 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-05 15:26:57 -0400
commit4d12b8b129f170d0fc3188de1e51a2a1b0f87730 (patch)
treee37bbec5da917fee80706516c56fb41fcd03a1b5 /net/nfc/nfc.h
parent3e256b8f8dfa309a80b5dece388d85d9a9801a29 (diff)
NFC: add nfc generic netlink interface
The NFC generic netlink interface exports the NFC control operations to the user space. Signed-off-by: Lauro Ramos Venancio <lauro.venancio@openbossa.org> Signed-off-by: Aloisio Almeida Jr <aloisio.almeida@openbossa.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc/nfc.h')
-rw-r--r--net/nfc/nfc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/nfc/nfc.h b/net/nfc/nfc.h
index 55f83f86fe2c..2b31e808e6fb 100644
--- a/net/nfc/nfc.h
+++ b/net/nfc/nfc.h
@@ -36,6 +36,17 @@ int nfc_printk(const char *level, const char *fmt, ...);
36extern int nfc_devlist_generation; 36extern int nfc_devlist_generation;
37extern struct mutex nfc_devlist_mutex; 37extern struct mutex nfc_devlist_mutex;
38 38
39int __init nfc_genl_init(void);
40void nfc_genl_exit(void);
41
42void nfc_genl_data_init(struct nfc_genl_data *genl_data);
43void nfc_genl_data_exit(struct nfc_genl_data *genl_data);
44
45int nfc_genl_targets_found(struct nfc_dev *dev);
46
47int nfc_genl_device_added(struct nfc_dev *dev);
48int nfc_genl_device_removed(struct nfc_dev *dev);
49
39struct nfc_dev *nfc_get_device(unsigned idx); 50struct nfc_dev *nfc_get_device(unsigned idx);
40 51
41static inline void nfc_put_device(struct nfc_dev *dev) 52static inline void nfc_put_device(struct nfc_dev *dev)