Constructor

FoundryAcpPermissionOptionnew

unstable since: 1.2

Declaration [src]

FoundryAcpPermissionOption*
foundry_acp_permission_option_new (
  const char* id,
  const char* label,
  const char* description,
  gboolean destructive
)

Description [src]

Creates a permission option.

Available since: 1.2

Parameters

id

Type: const char*

The option identifier to send in the response.

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

Type: const char*

A human-facing option label.

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

Type: const char*

Additional option detail.

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

Type: gboolean

Whether the option is marked destructive.

Return value

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