diff --git a/core/cog-platform.c b/core/cog-platform.c index b66992df..9deb4017 100644 --- a/core/cog-platform.c +++ b/core/cog-platform.c @@ -11,6 +11,7 @@ G_DEFINE_QUARK (COG_PLATFORM_EGL_ERROR, cog_platform_egl_error) +G_DEFINE_QUARK (COG_PLATFORM_WPE_ERROR, cog_platform_wpe_error) /* @FIXME: Move this implementation to use a GIO extension point. */ diff --git a/core/cog-platform.h b/core/cog-platform.h index 52232d10..624550e6 100644 --- a/core/cog-platform.h +++ b/core/cog-platform.h @@ -21,6 +21,14 @@ G_BEGIN_DECLS #define COG_PLATFORM_EGL_ERROR (cog_platform_egl_error_quark ()) GQuark cog_platform_egl_error_quark (void); +#define COG_PLATFORM_WPE_ERROR (cog_platform_wpe_error_quark ()) +GQuark cog_platform_wpe_error_quark (void); + + +typedef enum { + COG_PLATFORM_WPE_ERROR_INIT, +} CogPlatformWpeError; + /* @FIXME: Eventually move this interface to GObject. */ typedef struct _CogPlatform CogPlatform; diff --git a/platform/cog-platform-fdo.c b/platform/cog-platform-fdo.c index 52dbe283..dde04970 100644 --- a/platform/cog-platform-fdo.c +++ b/platform/cog-platform-fdo.c @@ -1357,6 +1357,14 @@ cog_platform_setup (CogPlatform *platform, g_assert_nonnull (platform); g_return_val_if_fail (COG_IS_SHELL (shell), FALSE); + if (!wpe_loader_init ("libWPEBackend-fdo-0.1.so")) { + g_set_error_literal (error, + COG_PLATFORM_WPE_ERROR, + COG_PLATFORM_WPE_ERROR_INIT, + "Failed to set backend library name"); + return FALSE; + } + if (!init_wayland (error)) return FALSE;