Bluetooth: l2cap: add l2cap_user sub-modules
[deliverable/linux.git] / include / net / bluetooth / l2cap.h
index 7b4cc5b98535c241689cc362a7823d5a8cebbae3..fb94cf13c777109e5d9c43b55758ec1ab275aa2e 100644 (file)
@@ -584,6 +584,13 @@ struct l2cap_conn {
        struct list_head        chan_l;
        struct mutex            chan_lock;
        struct kref             ref;
+       struct list_head        users;
+};
+
+struct l2cap_user {
+       struct list_head list;
+       int (*probe) (struct l2cap_conn *conn, struct l2cap_user *user);
+       void (*remove) (struct l2cap_conn *conn, struct l2cap_user *user);
 };
 
 #define L2CAP_INFO_CL_MTU_REQ_SENT     0x01
@@ -817,4 +824,7 @@ void __l2cap_physical_cfm(struct l2cap_chan *chan, int result);
 void l2cap_conn_get(struct l2cap_conn *conn);
 void l2cap_conn_put(struct l2cap_conn *conn);
 
+int l2cap_register_user(struct l2cap_conn *conn, struct l2cap_user *user);
+void l2cap_unregister_user(struct l2cap_conn *conn, struct l2cap_user *user);
+
 #endif /* __L2CAP_H */
This page took 0.032079 seconds and 5 git commands to generate.