From: Brad Midgley <bmidgley@xmission.com>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] btsco: help with autoconf cleanup
Date: Thu, 11 Nov 2004 16:14:32 -0700 [thread overview]
Message-ID: <4193F258.3000003@xmission.com> (raw)
In-Reply-To: <1100207774.12168.26.camel@pegasus>
Marcel
>>what do you suggest for packing bits together in a portable way before
>>putting them on the wire? is there some code somewhere that you can
>>point to that works in userspace?
>
>
> actually I don't understand this question. Please explain to me what do
> you wanna know.
Yeah, I guess I just needed to read up more.
I'm going to be assembling parts of frames like the media packet header.
I started looking at l2cap_build_cmd to see how you do it in kernel
space. I see htobs() is the equivalent of __cpu_to_le16 for 16-bit
values and I see the __attribute__ ((packed)) directives that result in
a packed struct that can be copied byte for byte into the buffer. I
think I'm good to go.
I'll probably be running the naming for some of the structures and
members by you to see if they're ok to eventually go into the bluetooth
headers.
Brad
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel
next prev parent reply other threads:[~2004-11-11 23:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-11 18:49 [Bluez-devel] btsco: help with autoconf cleanup Brad Midgley
2004-11-11 18:56 ` Marcel Holtmann
2004-11-11 21:04 ` Brad Midgley
2004-11-11 21:16 ` Marcel Holtmann
2004-11-11 23:14 ` Brad Midgley [this message]
2004-11-12 1:02 ` Marcel Holtmann
2004-11-15 17:31 ` David Woodhouse
2004-11-15 21:29 ` Brad Midgley
2004-11-16 6:39 ` Simon Vogl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4193F258.3000003@xmission.com \
--to=bmidgley@xmission.com \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox