[FFmpeg-devel] [PATCH] lavu/attributes: add ff_ prefix to attribute_deprecated

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Tue Mar 12 11:21:52 EET 2024


Anton Khirnov:
> Quoting Andreas Rheinhardt (2024-03-12 09:56:46)
>> Anton Khirnov:
>>> Otherwise it might conflict with caller-defined identifiers.
>>>
>>> ff because it is not supposed to be used by external callers.
>>> ---
>>
>> This is public, so it should be av_attribute_deprecated.
> 
> As the commit message says, this is not supposed to be used by external
> callers. Or do you see any reason why it should be public?
> 

It is public given that it is declared in a public header. That is what
matters.
Furthermore, we have used the FF_ and AV_ prefixes for public macros and
the av_ prefix for public symbols, but IIRC we do not use the ff_ prefix
for public symbols at all, therefore I'd like us not to reserve another
namespace.

>> For the same reason it is actually an API break to no longer provide the
>> un-prefixed version.
> 
> I am still providing the unprefixed version under a deprecation guard.
> 

I overlooked that.

>> Is this just a general precaution or did you run into an actual conflict?
> 
> The former.
> 



More information about the ffmpeg-devel mailing list