Chromium Embedded Framework (CEF)  145.0.1+g472e75d+chromium-145.0.7632.5
cef_library_loader.h File Reference
#include "include/base/cef_build.h"
#include <string>

Classes

class  CefScopedLibraryLoader
 Scoped helper for loading and unloading the CEF framework library at runtime from the expected location in the app bundle. More...
 

Functions

int cef_load_library (const char *path)
 Load the CEF library at the specified |path|. More...
 
int cef_unload_library (void)
 Unload the CEF library that was previously loaded. More...
 
void * cef_scoped_library_loader_create (int helper)
 Load the CEF library from the expected app bundle location relative to the executable. More...
 
void cef_scoped_library_loader_free (void *loader)
 Destroy the specified library loader handle created by cef_scoped_library_loader_create(). More...
 

Function Documentation

◆ cef_load_library()

int cef_load_library ( const char *  path)

Load the CEF library at the specified |path|.

Returns true (1) on success and false (0) on failure.

◆ cef_scoped_library_loader_create()

void* cef_scoped_library_loader_create ( int  helper)

Load the CEF library from the expected app bundle location relative to the executable.

Pass |helper| as 1 for helper processes or 0 for the main process. Returns an opaque handle on success or NULL on failure. The returned handle should be passed to cef_scoped_library_loader_free() immediately before process termination. This is a wrapper around CefScopedLibraryLoader for C API users.

◆ cef_scoped_library_loader_free()

void cef_scoped_library_loader_free ( void *  loader)

Destroy the specified library loader handle created by cef_scoped_library_loader_create().

◆ cef_unload_library()

int cef_unload_library ( void  )

Unload the CEF library that was previously loaded.

Returns true (1) on success and false (0) on failure.