Go to the FreeLists Home Page Home Signup Help Login
 



[openbeos] || [Date Prev] [05-2002 Date Index] [Date Next] || [Thread Prev] [05-2002 Thread Index] [Thread Next]

[openbeos] Re: MIME type definition

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Wed, 01 May 2002 23:56:02 CEST (+0200)
> As many of you know each attribute type is defined by a 32-bit 
> constant. 
> Those values are defined in /boot/develop/headers/be/support/
> TypeConstants.h
> When testing my versions of these utilites I noticed that while 
> B_MIME_TYPE 
> in this file is defined as 'MIME' (and therefore my utilities use 
> that 
> value) Be's original versions (and the rest of the OS, I'm afraid) 
> define 
> it as 'MIMS'.
> 
> Of course the new versions won't work if compiled against incorrect 
> values.
> 
> What should I/we do about it? I guess changing the value in the 
> header file 
> is the right thing to do, but I wanted to know your opinions about 
> this.
> Regards,

1) if such a situation really arises, stay compatible with the original
2) you're wrong :-)
B_MIME_TYPE is indeed defined as 'MIME', but the attribute just stores 
the mime string type, also defined as (in Mime.h):
static const uint32 B_MIME_STRING_TYPE  = 'MIMS';

Hope this clears it :)

Adios...
   Axel.







[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.