Top | ![]() |
![]() |
![]() |
![]() |
EGL graphics driver enumerationEGL graphics driver enumeration — Get information about the system's EGL drivers |
GError * | error | Read / Write / Construct Only |
SrtLoadableIssues | issues | Read / Write / Construct Only |
gchar * | json-path | Read / Write / Construct Only |
gchar * | library-path | Read / Write / Construct Only |
gchar * | resolved-library-path | Read |
GError * | error | Read / Write / Construct Only |
SrtLoadableIssues | issues | Read / Write / Construct Only |
gchar * | json-path | Read / Write / Construct Only |
gchar * | library-path | Read / Write / Construct Only |
gchar * | resolved-library-path | Read |
SrtEglIcd is an opaque object representing the metadata describing
an EGL ICD.
This is a reference-counted object: use g_object_ref()
and
g_object_unref()
to manage its lifecycle.
Similarly, SrtEglExternalPlatform is an opaque object representing an EGL external platform module, as used with the NVIDIA proprietary driver.
gboolean srt_egl_external_platform_check_error (SrtEglExternalPlatform *self
,GError **error
);
Check whether we failed to load the JSON describing this EGL external
platform module.
Note that this does not actually
the module itself.dlopen()
self |
The module |
|
error |
Used to return “error” if the module description could not be loaded |
const gchar *
srt_egl_external_platform_get_json_path
(SrtEglExternalPlatform *self
);
Return the absolute path to the JSON file representing this module.
const gchar *
srt_egl_external_platform_get_library_path
(SrtEglExternalPlatform *self
);
Return the library path for this module. It is either an absolute path,
a path relative to srt_egl_external_platform_get_json_path()
containing at least one
directory separator (slash), or a basename to be loaded from the
shared library search path.
If the JSON description for this module could not be loaded, return NULL
instead.
SrtLoadableIssues
srt_egl_external_platform_get_issues (SrtEglExternalPlatform *self
);
Return the problems found when parsing and loading self
.
gchar *
srt_egl_external_platform_resolve_library_path
(SrtEglExternalPlatform *self
);
Return the path that can be passed to
for this module.dlopen()
If srt_egl_external_platform_get_library_path()
is a relative path, return the
absolute path that is the result of interpreting it relative to
an appropriate location (the exact interpretation is subject to change,
depending on upstream decisions).
Otherwise return a copy of srt_egl_external_platform_get_library_path()
.
The result is either the basename of a shared library (to be found
relative to some directory listed in $LD_LIBRARY_PATH
, /etc/ld.so.conf
,
/etc/ld.so.conf.d
or the hard-coded library search path), or an
absolute path.
A copy
of “resolved-library-path”. Free with g_free()
.
[transfer full][type filename][nullable]
SrtEglExternalPlatform * srt_egl_external_platform_new_replace_library_path (SrtEglExternalPlatform *self
,const char *path
);
Return a copy of self
with the srt_egl_external_platform_get_library_path()
changed to path
. For example, this is useful when setting up a
container where the underlying shared object will be made available
at a different absolute path.
If self
is in an error state, this returns a new reference to self
.
gboolean srt_egl_external_platform_write_to_file (SrtEglExternalPlatform *self
,const char *path
,GError **error
);
Serialize self
to the given JSON file.
gboolean srt_egl_icd_check_error (SrtEglIcd *self
,GError **error
);
Check whether we failed to load the JSON describing this EGL ICD.
Note that this does not actually
the ICD itself.dlopen()
const gchar *
srt_egl_icd_get_json_path (SrtEglIcd *self
);
Return the absolute path to the JSON file representing this ICD.
const gchar *
srt_egl_icd_get_library_path (SrtEglIcd *self
);
Return the library path for this ICD. It is either an absolute path,
a path relative to srt_egl_icd_get_json_path()
containing at least one
directory separator (slash), or a basename to be loaded from the
shared library search path.
If the JSON description for this ICD could not be loaded, return NULL
instead.
SrtLoadableIssues
srt_egl_icd_get_issues (SrtEglIcd *self
);
Return the problems found when parsing and loading self
.
gchar *
srt_egl_icd_resolve_library_path (SrtEglIcd *self
);
Return the path that can be passed to
for this ICD.dlopen()
If srt_egl_icd_get_library_path()
is a relative path, return the
absolute path that is the result of interpreting it relative to
an appropriate location (the exact interpretation is subject to change,
depending on upstream decisions).
Otherwise return a copy of srt_egl_icd_get_library_path()
.
The result is either the basename of a shared library (to be found
relative to some directory listed in $LD_LIBRARY_PATH
, /etc/ld.so.conf
,
/etc/ld.so.conf.d
or the hard-coded library search path), or an
absolute path.
A copy
of “resolved-library-path”. Free with g_free()
.
[transfer full][type filename][nullable]
SrtEglIcd * srt_egl_icd_new_replace_library_path (SrtEglIcd *self
,const char *path
);
Return a copy of self
with the srt_egl_icd_get_library_path()
changed to path
. For example, this is useful when setting up a
container where the underlying shared object will be made available
at a different absolute path.
If self
is in an error state, this returns a new reference to self
.
“error”
property“error” GError *
GError describing how this module failed to load, or NULL.
Flags: Read / Write / Construct Only
“issues”
property“issues” SrtLoadableIssues
Problems with this module.
Flags: Read / Write / Construct Only
“json-path”
property“json-path” gchar *
Absolute path to JSON file describing this module. If examining a sysroot, this path is set as though the sysroot was the root directory. When constructing the object, a relative path can be given: it will be converted to an absolute path.
Flags: Read / Write / Construct Only
Default value: NULL
“library-path”
property“library-path” gchar *
Library implementing this module, expressed as a basename to be searched for in the default library search path (e.g. libnvidia-egl-wayland.so.1), a relative path containing '/' to be resolved relative to #SrtEglExternalPlatform:json-path (e.g. ./libnvidia-egl-wayland.so.1), or an absolute path as though the sysroot (if any) was the root (e.g. /opt/EGL/libnvidia-egl-wayland.so.1).
Flags: Read / Write / Construct Only
Default value: NULL
“resolved-library-path”
property“resolved-library-path” gchar *
Library implementing this module, expressed as a basename to be searched for in the default library search path (e.g. libnvidia-egl-wayland.so.1) or an absolute path as though the sysroot (if any) was the root (e.g. /opt/EGL/libnvidia-egl-wayland.so.1).
Flags: Read
Default value: NULL
“error”
property“error” GError *
GError describing how this ICD failed to load, or NULL.
Flags: Read / Write / Construct Only
“issues”
property“issues” SrtLoadableIssues
Problems with this ICD.
Flags: Read / Write / Construct Only
“json-path”
property“json-path” gchar *
Absolute path to JSON file describing this ICD. If examining a sysroot, this path is set as though the sysroot was the root directory. When constructing the object, a relative path can be given: it will be converted to an absolute path.
Flags: Read / Write / Construct Only
Default value: NULL
“library-path”
property“library-path” gchar *
Library implementing this ICD, expressed as a basename to be searched for in the default library search path (e.g. libEGL_mesa.so.0), a relative path containing '/' to be resolved relative to #SrtEglIcd:json-path (e.g. ./libEGL_myvendor.so), or an absolute path as though the sysroot (if any) was the root (e.g. /opt/EGL/libEGL_myvendor.so).
Flags: Read / Write / Construct Only
Default value: NULL
“resolved-library-path”
property“resolved-library-path” gchar *
Library implementing this ICD, expressed as a basename to be searched for in the default library search path (e.g. libEGL_mesa.so.0) or an absolute path as though the sysroot (if any) was the root (e.g. /opt/EGL/libEGL_myvendor.so).
Flags: Read
Default value: NULL