/* CMTP implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2002-2003 Marcel Holtmann <[email protected]> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS SOFTWARE IS DISCLAIMED. */ #ifndef __CMTP_H #define __CMTP_H #include <linux/types.h> #include <net/bluetooth/bluetooth.h> #define BTNAMSIZ … /* CMTP ioctl defines */ #define CMTPCONNADD … #define CMTPCONNDEL … #define CMTPGETCONNLIST … #define CMTPGETCONNINFO … #define CMTP_LOOPBACK … struct cmtp_connadd_req { … }; struct cmtp_conndel_req { … }; struct cmtp_conninfo { … }; struct cmtp_connlist_req { … }; int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock); int cmtp_del_connection(struct cmtp_conndel_req *req); int cmtp_get_connlist(struct cmtp_connlist_req *req); int cmtp_get_conninfo(struct cmtp_conninfo *ci); /* CMTP session defines */ #define CMTP_INTEROP_TIMEOUT … #define CMTP_INITIAL_MSGNUM … struct cmtp_session { … }; struct cmtp_application { … }; struct cmtp_scb { … }; int cmtp_attach_device(struct cmtp_session *session); void cmtp_detach_device(struct cmtp_session *session); void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb); /* CMTP init defines */ int cmtp_init_sockets(void); void cmtp_cleanup_sockets(void); #endif /* __CMTP_H */