Ideally the don't-trust-TI-headers-to-do-the-right-thing workaround
won't be necessary.  If it is, please report any issues so we can fix
them.

Speaking just for Codec Engine and related headers, I know of a few
customers that have called the APIs from C++ code, and we have a few
internal tests to verify this.  We did fix a defect in CE 1.00 where a
fxn pointer was named "delete"; fix was in CE 1.02, we changed the name
to "destroy".  So, if you're using CE 1.02 or newer, you should be okay
- but again, please report any issues so we can fix them.

Thanks.

Chris 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> ] On Behalf Of Joshua Hintze
> Sent: Monday, January 28, 2008 8:37 AM
> To: 'David A Kondrad'
> Cc: [email protected]
> Subject: RE: C++ Apps and Codec Engine
> 
> I'm going to give it a try this week. Hopefully by the end of 
> this week I
> can let you know how it went.
> 
> Josh
> 
> -----Original Message-----
> From: David A Kondrad [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 28, 2008 7:15 AM
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Subject: RE: C++ Apps and Codec Engine
> 
> Hello,
> 
> The standard rules should apply when using a C module in C++.
> One thing I wouldn't count on is having extern "C" wrappers 
> inside the TI
> headers... it's probably safer to do something like:
> 
> // C++ includes here....
> 
> // C-linkage includes here
> 
> #ifdef __cplusplus
> extern "C"  {
> #endif
> 
> // TI codec engine includes + any codec header files
> 
> #ifdef __cplusplus
> }
> #endif
> 
> As you said, you're not compiling the codecs in C++ so there 
> shouldn't be a
> problem as long as you tell the compiler to look for C style 
> linkage not
> C++ linkage.
> Give it a shot and don't be afraid to experiment... oh and 
> report back the
> results so others can benefit.
> 
> 
> DAVID A. KONDRAD
> Software Design Engineer
> On-Q/Legrand
> www.onqlegrand.com
> 
> 
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to