Top | ![]() |
![]() |
![]() |
![]() |
EGL graphics driver enumerationEGL graphics driver enumeration — Get information about the system's EGL drivers |
GObject ╰── SrtBaseGraphicsModule ╰── SrtBaseJsonGraphicsModule ├── SrtEglExternalPlatform ╰── SrtEglIcd
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()
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
.