diff options
Diffstat (limited to 'net/nfc/nfc.h')
-rw-r--r-- | net/nfc/nfc.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/nfc/nfc.h b/net/nfc/nfc.h index 2b31e808e6fb..8335f4de8f4f 100644 --- a/net/nfc/nfc.h +++ b/net/nfc/nfc.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #define __LOCAL_NFC_H | 25 | #define __LOCAL_NFC_H |
26 | 26 | ||
27 | #include <net/nfc.h> | 27 | #include <net/nfc.h> |
28 | #include <net/sock.h> | ||
28 | 29 | ||
29 | __attribute__((format (printf, 2, 3))) | 30 | __attribute__((format (printf, 2, 3))) |
30 | int nfc_printk(const char *level, const char *fmt, ...); | 31 | int nfc_printk(const char *level, const char *fmt, ...); |
@@ -33,6 +34,19 @@ int nfc_printk(const char *level, const char *fmt, ...); | |||
33 | #define nfc_err(fmt, arg...) nfc_printk(KERN_ERR, fmt, ##arg) | 34 | #define nfc_err(fmt, arg...) nfc_printk(KERN_ERR, fmt, ##arg) |
34 | #define nfc_dbg(fmt, arg...) pr_debug(fmt "\n", ##arg) | 35 | #define nfc_dbg(fmt, arg...) pr_debug(fmt "\n", ##arg) |
35 | 36 | ||
37 | struct nfc_protocol { | ||
38 | int id; | ||
39 | struct proto *proto; | ||
40 | struct module *owner; | ||
41 | int (*create)(struct net *net, struct socket *sock, | ||
42 | const struct nfc_protocol *nfc_proto); | ||
43 | }; | ||
44 | |||
45 | int __init af_nfc_init(void); | ||
46 | void af_nfc_exit(void); | ||
47 | int nfc_proto_register(const struct nfc_protocol *nfc_proto); | ||
48 | void nfc_proto_unregister(const struct nfc_protocol *nfc_proto); | ||
49 | |||
36 | extern int nfc_devlist_generation; | 50 | extern int nfc_devlist_generation; |
37 | extern struct mutex nfc_devlist_mutex; | 51 | extern struct mutex nfc_devlist_mutex; |
38 | 52 | ||