Chromium Embedded Framework (CEF) 148.0.4+ga59e378+chromium-148.0.7778.40
cef_version_info.h File Reference
#include <stddef.h>
#include <string.h>
#include "include/cef_api_hash.h"
#include "include/internal/cef_export.h"
#include "include/cef_version.h"

Classes

struct  cef_version_info_t
 Structure representing all CEF version information. More...
 

Macros

#define CEF_VERSION_INFO_SIZE_WITH_SANDBOX_HASH
 Minimum struct size required to contain the sandbox_compat_hash field.
 
#define _CEF_POPULATE_SANDBOX_HASH(info)
 
#define CEF_POPULATE_VERSION_INFO(info)
 Populate CEF version information for the client library.
 

Functions

CEF_EXPORT int cef_version_info (int entry)
 Returns CEF version information for the libcef library.
 
CEF_EXPORT void cef_version_info_all (cef_version_info_t *info)
 Return all CEF version information for the libcef library.
 

Macro Definition Documentation

◆ _CEF_POPULATE_SANDBOX_HASH

#define _CEF_POPULATE_SANDBOX_HASH (   info)
Value:
strncpy((info)->sandbox_compat_hash, CEF_SANDBOX_COMPAT_HASH, \
sizeof((info)->sandbox_compat_hash) - 1); \
(info)->sandbox_compat_hash[sizeof((info)->sandbox_compat_hash) - 1] = '\0'
#define CEF_SANDBOX_COMPAT_HASH
Definition cef_version.h:51

◆ CEF_POPULATE_VERSION_INFO

#define CEF_POPULATE_VERSION_INFO (   info)
Value:
(info)->size = sizeof(cef_version_info_t); \
(info)->cef_version_major = CEF_VERSION_MAJOR; \
(info)->cef_version_minor = CEF_VERSION_MINOR; \
(info)->cef_version_patch = CEF_VERSION_PATCH; \
(info)->cef_commit_number = CEF_COMMIT_NUMBER; \
(info)->chrome_version_major = CHROME_VERSION_MAJOR; \
(info)->chrome_version_minor = CHROME_VERSION_MINOR; \
(info)->chrome_version_build = CHROME_VERSION_BUILD; \
(info)->chrome_version_patch = CHROME_VERSION_PATCH; \
_CEF_POPULATE_SANDBOX_HASH(info)
#define CHROME_VERSION_BUILD
Definition cef_version.h:48
#define CEF_VERSION_PATCH
Definition cef_version.h:41
#define CEF_VERSION_MINOR
Definition cef_version.h:40
#define CEF_VERSION_MAJOR
Definition cef_version.h:39
#define CHROME_VERSION_PATCH
Definition cef_version.h:49
#define CHROME_VERSION_MINOR
Definition cef_version.h:47
#define CEF_COMMIT_NUMBER
Definition cef_version.h:42
#define CHROME_VERSION_MAJOR
Definition cef_version.h:46
Structure representing all CEF version information.
Definition cef_version_info.h:67

Populate CEF version information for the client library.

◆ CEF_VERSION_INFO_SIZE_WITH_SANDBOX_HASH

#define CEF_VERSION_INFO_SIZE_WITH_SANDBOX_HASH
Value:
(offsetof(cef_version_info_t, sandbox_compat_hash) + \
sizeof(((cef_version_info_t*)0)->sandbox_compat_hash))

Minimum struct size required to contain the sandbox_compat_hash field.

Used for version compatibility checks.

Function Documentation

◆ cef_version_info()

CEF_EXPORT int cef_version_info ( int  entry)

Returns CEF version information for the libcef library.

The |entry| parameter describes which version component will be returned:

0 - CEF_VERSION_MAJOR 1 - CEF_VERSION_MINOR 2 - CEF_VERSION_PATCH 3 - CEF_COMMIT_NUMBER 4 - CHROME_VERSION_MAJOR 5 - CHROME_VERSION_MINOR 6 - CHROME_VERSION_BUILD 7 - CHROME_VERSION_PATCH

◆ cef_version_info_all()

CEF_EXPORT void cef_version_info_all ( cef_version_info_t info)

Return all CEF version information for the libcef library.