LIBMTP_all...ues_struct(3)
πΈ LIBMTP_all...ues_struct(3) πΈ
okay so bestie, welcome to the tea on this lil struct π
it lives in the Library Functions Manual, it's a C thing from libmtp, and honestly? she's giving "grocery list of every possible value you're allowed to pick." slay.
π NAME π
libmtp β that's it, that's the name, no cap π (yes the original is literally just the library name, don't come for me)
β¨ SYNOPSIS β¨
#include <libmtp.h>
π Data Fields π
not me listing every single one of these, because we do NOT skip fields in this house π here's the whole squad, in order:
uint8_t u8maxuint8_t u8minuint8_t u8stepuint8_t * u8valsint8_t i8maxint8_t i8minint8_t i8stepint8_t * i8valsuint16_t u16maxuint16_t u16minuint16_t u16stepuint16_t * u16valsint16_t i16maxint16_t i16minint16_t i16stepint16_t * i16valsuint32_t u32maxuint32_t u32minuint32_t u32stepuint32_t * u32valsint32_t i32maxint32_t i32minint32_t i32stepint32_t * i32valsuint64_t u64maxuint64_t u64minuint64_t u64stepuint64_t * u64valsint64_t i64maxint64_t i64minint64_t i64stepint64_t * i64valsuint16_t num_entriesLIBMTP_datatype_t datatypeint is_range
likeβ¦ it's a whole alphabet of max/min/step/vals for every integer size, plus three lil friends at the end. iconic behavior honestly π¦
π DETAILED DESCRIPTION π
A data structure to hold allowed ranges of values π
that's the whole vibe. she's the struct that says "okay these are the values you're legally allowed to use, bestie, pick one." vibe check passed β
π₯ FIELD DOCUMENTATION π₯
β LIBMTP_datatype_t LIBMTP_allowed_values_struct::datatype
The datatype specifying which of the above is used π (like, which of those bajillion fields actually matters here)
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 π§ (so like, is this a sliding scale or a lil pick-from-the-list situation)
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. (not a human, just a robot doing her thing, and honestly? she ate π€π )
and that's the whole page bestie, mwah π«Ά this one came from libmtp Version 1.1.23 β see you in the next manpage, no cap β¨ππ
π¦ where this page comes from
- ubuntu stonking: libmtp-doc 1.1.23-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms