Function

FoundryTripletnew_with_quadruplet

Declaration [src]

FoundryTriplet*
foundry_triplet_new_with_quadruplet (
  const char* arch,
  const char* vendor,
  const char* kernel,
  const char* operating_system
)

Description [src]

Creates a new FoundryTriplet from a given quadruplet of “arch-vendor-kernel-os” (like “i686-pc-linux-gnu”).

Parameters

arch

Type: const char*

The name of the architecture of the machine (like “x86_64”).

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
vendor

Type: const char*

The name of the vendor of the machine (like “pc”).

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
kernel

Type: const char*

The name of the kernel of the machine (like “linux”).

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
operating_system

Type: const char*

The name of the os of the machine (like “gnuabi64”).

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: FoundryTriplet

An FoundryTriplet.

The caller of the function takes ownership of the data, and is responsible for freeing it.