public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* BlueZ Header Files
@ 2020-12-12  9:17 Abe Kohandel
  2020-12-12 19:19 ` Abe Kohandel
  0 siblings, 1 reply; 2+ messages in thread
From: Abe Kohandel @ 2020-12-12  9:17 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

I would like to preface this question by saying that I am very new to both BlueZ and linux application development.

I have a question regarding the differences between the BlueZ header files and bluetooth subsystem header files in the linux kernel. I have been specifically looking at the case of establishing a L2CAP LE connection for the Object Transfer Service and I can see that the linux kernel bluetooth header files have the definitions for L2CAP_LE_CONN_REQ (0x14) and the associated l2cap_le_conn_req structure but the BlueZ header files do not. I have been able to establish my connection by manually introducing these definitions in my application but I would like to compile my application against the BlueZ library and I cannot do that without these definitions. I would be happy to submit a patch to add the definitions but first wanted to understand if there was a reason for their absence.

Thanks,
Abe

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BlueZ Header Files
  2020-12-12  9:17 BlueZ Header Files Abe Kohandel
@ 2020-12-12 19:19 ` Abe Kohandel
  0 siblings, 0 replies; 2+ messages in thread
From: Abe Kohandel @ 2020-12-12 19:19 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

I realized what I wanted to achieve is well encapsulated under a
BTPROTO_L2CAP socket and there is no need to expose these commands to
the user space.

Sorry for the premature question, I had confused myself with some
addressing issues and was unable to get the L2CAP socket to work
previously.

Thanks,
Abe

On Sat, Dec 12, 2020 at 09:17:47AM +0000, Abe Kohandel wrote:
> Hello,
> 
> I would like to preface this question by saying that I am very new to both BlueZ and linux application development.
> 
> I have a question regarding the differences between the BlueZ header files and bluetooth subsystem header files in the linux kernel. I have been specifically looking at the case of establishing a L2CAP LE connection for the Object Transfer Service and I can see that the linux kernel bluetooth header files have the definitions for L2CAP_LE_CONN_REQ (0x14) and the associated l2cap_le_conn_req structure but the BlueZ header files do not. I have been able to establish my connection by manually introducing these definitions in my application but I would like to compile my application against the BlueZ library and I cannot do that without these definitions. I would be happy to submit a patch to add the definitions but first wanted to understand if there was a reason for their absence.
> 
> Thanks,
> Abe

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-12 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-12  9:17 BlueZ Header Files Abe Kohandel
2020-12-12 19:19 ` Abe Kohandel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox