LIBMTP_all...ues_struct(3)
πΈ NAME
LIBMTP_allowed_values_struct β meet the struct, bestie. This whole page is the LIBMTP_all...ues_struct(3) entry in the libmtp Library Functions Manual, and it's lowkey iconic. π
β¨ SYNOPSIS
First things first, you bring in the header like this:
#include <libmtp.h>
π Data Fields
Here's the entire field roster, copied exactly, no edits, no "I'll just leave one out" behavior:
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
That's every single field, all 35 of them, and not one is getting ghosted. π
π¦ Detailed Description
Official description, hand-delivered: A data structure to hold allowed ranges of values. That's it. That's the whole vibe. π
π Field Documentation
Only datatype, is_range, and num_entries get their own documentation moment here β and we're giving them their full spotlight. β
π LIBMTP_datatype_t LIBMTP_allowed_values_struct::datatype
This one is The datatype specifying which of the above is used. It's referenced by LIBMTP_destroy_allowed_values_t(), and LIBMTP_Get_Allowed_Property_Values(). Slay. β¨
π int LIBMTP_allowed_values_struct::is_range
Quick translation: Non zero for range, 0 for enum. It's referenced by LIBMTP_destroy_allowed_values_t(), and LIBMTP_Get_Allowed_Property_Values(). Periodt. π
π¦ uint16_t LIBMTP_allowed_values_struct::num_entries
This one means Number of entries in the vals array. It's referenced by LIBMTP_Get_Allowed_Property_Values(). Cute. π«Ά
π Author
Generated automatically by Doxygen for libmtp from the source code. No cap.
Footer check, bestie: this came from libmtp, Version 1.1.23, and the page title is LIBMTP_all...ues_struct(3). That's the whole footer, and it ate. π
β¨
π¦ where this page comes from
- arch rolling: libmtp 1.1.23-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms