Chromium Embedded Framework (CEF)  135.0.1+gd336310+chromium-135.0.7049.3
cef_api_hash.h File Reference

Macros

#define CEF_API_VERSION_EXPERIMENTAL   999999
 
#define CEF_API_VERSION_NEXT   999998
 
#define CEF_NEXT   CEF_API_VERSION_NEXT
 
#define CEF_EXPERIMENTAL   CEF_API_VERSION_EXPERIMENTAL
 
#define CEF_API_VERSION   CEF_API_VERSION_EXPERIMENTAL
 
#define _CEF_AH_PASTE(a, b)   a##_##b
 
#define _CEF_AH_EVAL(a, b)   _CEF_AH_PASTE(a, b)
 
#define _CEF_AH_DECLARE(version)   _CEF_AH_EVAL(CEF_API_HASH, version)
 
#define CEF_API_HASH_PLATFORM   _CEF_AH_DECLARE(CEF_API_VERSION)
 
#define _CEF_AV_CMP(v, op)   (CEF_API_VERSION op v)
 
#define _CEF_AV_LT(v)   _CEF_AV_CMP(v, <)
 
#define _CEF_AV_GE(v)   _CEF_AV_CMP(v, >=)
 
#define CEF_API_ADDED(v)   _CEF_AV_GE(v)
 API was added in the specified version. More...
 
#define CEF_API_REMOVED(v)   _CEF_AV_LT(v)
 API was removed in the specified version. More...
 
#define CEF_API_RANGE(va, vr)   (_CEF_AV_GE(va) && _CEF_AV_LT(vr))
 API exists only in the specified version range. More...
 

Functions

CEF_EXPORT const char * cef_api_hash (int version, int entry)
 Configures the CEF API version and returns API hashes for the libcef library. More...
 
CEF_EXPORT int cef_api_version ()
 Returns the CEF API version that was configured by the first call to cef_api_hash(). More...
 

Macro Definition Documentation

◆ _CEF_AH_DECLARE

#define _CEF_AH_DECLARE (   version)    _CEF_AH_EVAL(CEF_API_HASH, version)

◆ _CEF_AH_EVAL

#define _CEF_AH_EVAL (   a,
 
)    _CEF_AH_PASTE(a, b)

◆ _CEF_AH_PASTE

#define _CEF_AH_PASTE (   a,
 
)    a##_##b

◆ _CEF_AV_CMP

#define _CEF_AV_CMP (   v,
  op 
)    (CEF_API_VERSION op v)

◆ _CEF_AV_GE

#define _CEF_AV_GE (   v)    _CEF_AV_CMP(v, >=)

◆ _CEF_AV_LT

#define _CEF_AV_LT (   v)    _CEF_AV_CMP(v, <)

◆ CEF_API_ADDED

#define CEF_API_ADDED (   v)    _CEF_AV_GE(v)

API was added in the specified version.

◆ CEF_API_HASH_PLATFORM

#define CEF_API_HASH_PLATFORM   _CEF_AH_DECLARE(CEF_API_VERSION)

◆ CEF_API_RANGE

#define CEF_API_RANGE (   va,
  vr 
)    (_CEF_AV_GE(va) && _CEF_AV_LT(vr))

API exists only in the specified version range.

◆ CEF_API_REMOVED

#define CEF_API_REMOVED (   v)    _CEF_AV_LT(v)

API was removed in the specified version.

◆ CEF_API_VERSION

#define CEF_API_VERSION   CEF_API_VERSION_EXPERIMENTAL

◆ CEF_API_VERSION_EXPERIMENTAL

#define CEF_API_VERSION_EXPERIMENTAL   999999

◆ CEF_API_VERSION_NEXT

#define CEF_API_VERSION_NEXT   999998

◆ CEF_EXPERIMENTAL

#define CEF_EXPERIMENTAL   CEF_API_VERSION_EXPERIMENTAL

◆ CEF_NEXT

#define CEF_NEXT   CEF_API_VERSION_NEXT

Function Documentation

◆ cef_api_hash()

CEF_EXPORT const char* cef_api_hash ( int  version,
int  entry 
)

Configures the CEF API version and returns API hashes for the libcef library.

The returned string is owned by the library and should not be freed. The |version| parameter should be CEF_API_VERSION and any changes to this value will be ignored after the first call to this method. The |entry| parameter describes which hash value will be returned:

0 - CEF_API_HASH_PLATFORM 1 - CEF_API_HASH_UNIVERSAL (deprecated, same as CEF_API_HASH_PLATFORM) 2 - CEF_COMMIT_HASH (from cef_version.h)

◆ cef_api_version()

CEF_EXPORT int cef_api_version ( )

Returns the CEF API version that was configured by the first call to cef_api_hash().