diff options
author | Lauro Ramos Venancio <lauro.venancio@openbossa.org> | 2011-07-01 18:31:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-05 15:26:57 -0400 |
commit | 4d12b8b129f170d0fc3188de1e51a2a1b0f87730 (patch) | |
tree | e37bbec5da917fee80706516c56fb41fcd03a1b5 /net/nfc/nfc.h | |
parent | 3e256b8f8dfa309a80b5dece388d85d9a9801a29 (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.h | 11 |
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, ...); | |||
36 | extern int nfc_devlist_generation; | 36 | extern int nfc_devlist_generation; |
37 | extern struct mutex nfc_devlist_mutex; | 37 | extern struct mutex nfc_devlist_mutex; |
38 | 38 | ||
39 | int __init nfc_genl_init(void); | ||
40 | void nfc_genl_exit(void); | ||
41 | |||
42 | void nfc_genl_data_init(struct nfc_genl_data *genl_data); | ||
43 | void nfc_genl_data_exit(struct nfc_genl_data *genl_data); | ||
44 | |||
45 | int nfc_genl_targets_found(struct nfc_dev *dev); | ||
46 | |||
47 | int nfc_genl_device_added(struct nfc_dev *dev); | ||
48 | int nfc_genl_device_removed(struct nfc_dev *dev); | ||
49 | |||
39 | struct nfc_dev *nfc_get_device(unsigned idx); | 50 | struct nfc_dev *nfc_get_device(unsigned idx); |
40 | 51 | ||
41 | static inline void nfc_put_device(struct nfc_dev *dev) | 52 | static inline void nfc_put_device(struct nfc_dev *dev) |