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 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

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