Hi Michal, > Could you explain why Linux kernel do not provide any header files for > its sockets? because we have Bluetooth support since 2.4.6 kernel and that is over 10 years old. Back in the days the kernel headers were done differently and including kernel headers was not as clean as it is today. > For example: "socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI)" > I do not need a userspace (BlueZ [and do not want it]) to communicate > with kernel, but no Linux headers is a problem. Add dependency to > BlueZ is ugly, because I do not depend on BlueZ, but Linux kernel. > Also BlueZ is not used in project like "libpcap". > > I see that BlueZ have those headers in "lib" directory (sources). > Linux have them in "include/net/bluetooth" but they are not installed > (by "make headers_install"). > > I think Linux should provide Bluetooth headers files. I see that CAN > (#include <linux/can.h>) do that. In the long term we should provide uapi header for Bluetooth. We just have not gotten there yet. Some of the current kernel headers are not clean. They can not be easily exported. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html