---
name: "mtp_LIBMTP_allowed_values_struct"
section: "3"
platform: "linux"
package: "libmtp-doc"
version: "1.1.22-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mtp_LIBMTP_allowed_values_struct"
---

# mtp\_LIBMTP\_allowed\_values\_struct(3)

## NAME

libmtp -

## SYNOPSIS

`#include <libmtp.h>`

### Data Fields

uint8\_t **u8max**\
 uint8\_t **u8min**\
 uint8\_t **u8step**\
 uint8\_t \* **u8vals**\
 int8\_t **i8max**\
 int8\_t **i8min**\
 int8\_t **i8step**\
 int8\_t \* **i8vals**\
 uint16\_t **u16max**\
 uint16\_t **u16min**\
 uint16\_t **u16step**\
 uint16\_t \* **u16vals**\
 int16\_t **i16max**\
 int16\_t **i16min**\
 int16\_t **i16step**\
 int16\_t \* **i16vals**\
 uint32\_t **u32max**\
 uint32\_t **u32min**\
 uint32\_t **u32step**\
 uint32\_t \* **u32vals**\
 int32\_t **i32max**\
 int32\_t **i32min**\
 int32\_t **i32step**\
 int32\_t \* **i32vals**\
 uint64\_t **u64max**\
 uint64\_t **u64min**\
 uint64\_t **u64step**\
 uint64\_t \* **u64vals**\
 int64\_t **i64max**\
 int64\_t **i64min**\
 int64\_t **i64step**\
 int64\_t \* **i64vals**\
 uint16\_t **num\_entries**\
 **LIBMTP\_datatype\_t** **datatype**\
 int **is\_range**\

## Detailed Description

A data structure to hold allowed ranges of values

## Field Documentation

### LIBMTP\_datatype\_t LIBMTP\_allowed\_values\_struct::datatype

The datatype specifying which of the above is used

Referenced by **LIBMTP\_destroy\_allowed\_values\_t()**, and **LIBMTP\_Get\_Allowed\_Property\_Values()**.

### int LIBMTP\_allowed\_values\_struct::is\_range

Non zero for range, 0 for enum

Referenced by **LIBMTP\_destroy\_allowed\_values\_t()**, and **LIBMTP\_Get\_Allowed\_Property\_Values()**.

### uint16\_t LIBMTP\_allowed\_values\_struct::num\_entries

Number of entries in the vals array

Referenced by **LIBMTP\_Get\_Allowed\_Property\_Values()**.

## Author

Generated automatically by Doxygen for libmtp from the source code.
