[openbeosstorage] Re: BMimeType

On Sat, 8 Jun 2002, Tyler Dauwalder wrote:

> > > CheckSnifferRule(), GuessMimeType())
> > 
> > Oh yes, right, the aren't documented, are they? I've never used any of
> > these functions. Do you know how the sniffer rules are supposed to look
> > like?
> 
> It took some digging, but I found that they're documented under the "Release 
> Notes" section of the Be Book. Release Notes -> The Storage Kit. Should be
> quite helpful.

I see. They must have forgot to include it in the BMimeType documentation.

> On an unrelated note, have you ever visited the Annotated Be Book at:
> 
> http://bang.dhs.org/be/bebook/

Not yet, at least not seriously. I had only a quick glance at it when you
mentioned it the other day. Thanks for reminding.

> ? At the end of each page, there is a place for readers to post comments, 
> many of which might be useful for us to take note of. For example, from the 
> BMimeType page:
> 
> When there is no preferred app, you're supposed to get a NULL char *. That 
> seems broken.The function does however return B_ENTRY_NOT_FOUND.
> --Jonas Sundstrom on May 11, 2002

Nice. Comments like this should be quite helpful when writing the tests.

CU, Ingo


Other related posts: