Blender V4.3
wayland_dynload_client.c File Reference
#include <stdlib.h>
#include <string.h>
#include "wayland_dynload_API.h"
#include "wayland_dynload_utils.h"
#include "wayland_dynload_client.h"

Go to the source code of this file.

Macros

#define WAYLAND_DYNLOAD_IFACE(symbol)
 
#define WAYLAND_DYNLOAD_IFACE(symbol)
 
#define WAYLAND_DYNLOAD_FN(symbol)
 
#define WAYLAND_DYNLOAD_VALIDATE
 

Functions

bool wayland_dynload_client_init (const bool verbose)
 
void wayland_dynload_client_exit (void)
 

Variables

struct WaylandDynload_Client wayland_dynload_client = {NULL}
 
static DynamicLibrary lib = NULL
 

Detailed Description

Wrapper functions for <wayland-client.h>.

Definition in file wayland_dynload_client.c.

Macro Definition Documentation

◆ WAYLAND_DYNLOAD_FN

#define WAYLAND_DYNLOAD_FN ( symbol)
Value:
lib, #symbol, paths[path_found], verbose))) \
{ \
return false; \
}
static int verbose
Definition cineonlib.cc:31
static DynamicLibrary lib
struct WaylandDynload_Client wayland_dynload_client
void * dynamic_library_find_with_error(DynamicLibrary lib, const char *symbol, const char *path_lib, const bool verbose)

◆ WAYLAND_DYNLOAD_IFACE [1/2]

#define WAYLAND_DYNLOAD_IFACE ( symbol)
Value:
extern struct wl_interface symbol; \
struct wl_interface symbol;

Definition at line 24 of file wayland_dynload_client.c.

◆ WAYLAND_DYNLOAD_IFACE [2/2]

#define WAYLAND_DYNLOAD_IFACE ( symbol)
Value:
{ \
const void *symbol_val; \
if (!(symbol_val = dynamic_library_find_with_error( \
lib, #symbol, paths[path_found], verbose))) { \
return false; \
} \
memcpy(&symbol, symbol_val, sizeof(symbol)); \
}

Definition at line 24 of file wayland_dynload_client.c.

◆ WAYLAND_DYNLOAD_VALIDATE

#define WAYLAND_DYNLOAD_VALIDATE

Definition at line 81 of file wayland_dynload_client.c.

Function Documentation

◆ wayland_dynload_client_exit()

void wayland_dynload_client_exit ( void )

Definition at line 70 of file wayland_dynload_client.c.

References dynamic_library_close, lib, and NULL.

Referenced by wayland_dynload_client_init().

◆ wayland_dynload_client_init()

bool wayland_dynload_client_init ( const bool verbose)

Variable Documentation

◆ lib

DynamicLibrary lib = NULL
static

Definition at line 22 of file wayland_dynload_client.c.

Referenced by blender::bke::tests::add_id_in_library(), AS_asset_library_load(), blender::ed::asset::asset_bundle_install_exec(), blender::bke::asset_edit_id_delete(), blender::bke::asset_edit_id_is_editable(), blender::bke::asset_edit_id_save(), blender::bke::asset_edit_weak_reference_from_id(), BKE_blendfile_library_relocate(), BKE_blendfile_link(), BKE_id_new_name_validate(), BKE_libblock_find_name(), BKE_library_filepath_set(), BKE_library_make_local(), BKE_main_idmap_lookup_name(), BKE_modifiers_persistent_uid_init(), BKE_packedfile_pack_all_libraries(), BKE_packedfile_unpack_all_libraries(), blf_cache_face_requester(), BLI_dynlib_close(), BLI_dynlib_find_symbol(), BLI_dynlib_get_error_as_string(), BLI_dynlib_open(), blo_do_versions_pre250(), blo_find_main(), BLO_library_link_end(), blo_read_file_internal(), blo_split_main(), blender::ed::outliner::TreeDisplayLibraries::build_tree(), blender::ed::outliner::TreeDisplayOverrideLibraryHierarchies::build_tree(), blender::bke::tests::change_lib(), blender::bke::create_auto_smooth_modifier(), direct_link_library(), do_versions(), dynamic_library_find_with_error(), dynamic_library_open_array_with_error(), expand_doit_library(), fix_relpaths_library(), blender::asset_system::AssetLibraryService::get_asset_library_current_file(), blender::asset_system::AssetLibraryService::get_asset_library_on_disk(), blender::ed::asset::is_contained_in_selected_asset_library(), blender::ed::outliner::lib_relocate(), library_blend_read_data(), library_foreach_id(), library_foreach_path(), library_parent_filepath(), library_runtime_reset(), main_namemap_validate_and_fix(), blender::ed::outliner::namebutton_fn(), blender::ed::object::object_select_all_by_library(), blender::ed::object::object_select_all_by_library_obdata(), ptcache_path(), pyrna_prop_collection_subscript_str_lib_pair_ptr(), rebuild_hierarchy_best_parent_find(), reuse_bmain_move_id(), reuse_editable_asset_needed(), blender::ed::asset::selected_asset_library(), blender::ed::asset::set_filepath_for_asset_lib(), blender::asset_system::tests::TEST_F(), blender::asset_system::tests::TEST_F(), blender::asset_system::tests::TEST_F(), blender::asset_system::tests::TEST_F(), wayland_dynload_client_exit(), wayland_dynload_client_init(), WM_lib_reload(), wm_lib_relocate_exec_do(), and wm_lib_relocate_invoke().

◆ wayland_dynload_client

struct WaylandDynload_Client wayland_dynload_client = {NULL}

Definition at line 20 of file wayland_dynload_client.c.