Method

HsCoreDescriptorget_platforms

Declaration [src]

HsPlatform*
hs_core_descriptor_get_platforms (
  HsCoreDescriptor* self,
  gsize* n_platforms
)

Description [src]

Gets the supported platforms.

Parameters

n_platforms

Type: gsize*

Location to return the number of platforms.

The argument will be set by the function.

Return value

Type: An array of HsPlatform

The supported platforms.

The length of the array is in the n_platforms argument.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.