Constructor

PurpleRequestFieldIntnew

Declaration [src]

PurpleRequestField*
purple_request_field_int_new (
  const char* id,
  const char* text,
  int default_value,
  int lower_bound,
  int upper_bound
)

Description [src]

Creates an integer field.

Parameters

id

Type: const char*

The field ID.

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

Type: const char*

The text label of the field.

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

Type: int

The default value.

lower_bound

Type: int

The lower bound.

upper_bound

Type: int

The upper bound.

Return value

Type: PurpleRequestField

The new field.

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