Architectures

Architectures — CPU architectures and ABIs

Synopsis

#include <steam-runtime-tools/steam-runtime-tools.h>

gboolean            srt_architecture_can_run_i386       (void);
gboolean            srt_architecture_can_run_x86_64     (void);

Description

On a typical x86 PC, it might be possible to run 32-bit and/or 64-bit executables, depending on the capabilities of the CPU, OS kernel and operating system.

Details

srt_architecture_can_run_i386 ()

gboolean            srt_architecture_can_run_i386       (void);

Check whether we can run an i386 executable.

For this check to work as intended, the contents of the `libsteam-runtime-tools-0-helpers:i386` package must be available in the same directory hierarchy as the `libsteam-runtime-tools-0` shared library, something like this:

any directory/
     lib/
         x86_64-linux-gnu/
             libsteam-runtime-tools-0.so.0
     libexec/
         steam-runtime-tools-0/
             i386-linux-gnu-*
             x86_64-linux-gnu-*

Returns :

TRUE if we can run an i386 executable.

srt_architecture_can_run_x86_64 ()

gboolean            srt_architecture_can_run_x86_64     (void);

Check whether we can run an x86_64 executable.

For this check to work as intended, the contents of the `libsteam-runtime-tools-0-helpers:amd64` package must be available in the same directory hierarchy as the `libsteam-runtime-tools-0` shared library. See srt_architecture_can_run_i386() for details.

Returns :

TRUE if we can run an x86_64 executable.