Lines Matching refs:allowed_vals

887             LIBMTP_filetype_t const filetype, LIBMTP_allowed_values_t *allowed_vals)  in LIBMTP_Get_Allowed_Property_Values()  argument
901 allowed_vals->is_range = 0; in LIBMTP_Get_Allowed_Property_Values()
902 allowed_vals->num_entries = opd.FORM.Enum.NumberOfValues; in LIBMTP_Get_Allowed_Property_Values()
907 allowed_vals->i8vals = malloc(sizeof(int8_t) * opd.FORM.Enum.NumberOfValues); in LIBMTP_Get_Allowed_Property_Values()
908 allowed_vals->datatype = LIBMTP_DATATYPE_INT8; in LIBMTP_Get_Allowed_Property_Values()
911 allowed_vals->u8vals = malloc(sizeof(uint8_t) * opd.FORM.Enum.NumberOfValues); in LIBMTP_Get_Allowed_Property_Values()
912 allowed_vals->datatype = LIBMTP_DATATYPE_UINT8; in LIBMTP_Get_Allowed_Property_Values()
915 allowed_vals->i16vals = malloc(sizeof(int16_t) * opd.FORM.Enum.NumberOfValues); in LIBMTP_Get_Allowed_Property_Values()
916 allowed_vals->datatype = LIBMTP_DATATYPE_INT16; in LIBMTP_Get_Allowed_Property_Values()
919 allowed_vals->u16vals = malloc(sizeof(uint16_t) * opd.FORM.Enum.NumberOfValues); in LIBMTP_Get_Allowed_Property_Values()
920 allowed_vals->datatype = LIBMTP_DATATYPE_UINT16; in LIBMTP_Get_Allowed_Property_Values()
923 allowed_vals->i32vals = malloc(sizeof(int32_t) * opd.FORM.Enum.NumberOfValues); in LIBMTP_Get_Allowed_Property_Values()
924 allowed_vals->datatype = LIBMTP_DATATYPE_INT32; in LIBMTP_Get_Allowed_Property_Values()
927 allowed_vals->u32vals = malloc(sizeof(uint32_t) * opd.FORM.Enum.NumberOfValues); in LIBMTP_Get_Allowed_Property_Values()
928 allowed_vals->datatype = LIBMTP_DATATYPE_UINT32; in LIBMTP_Get_Allowed_Property_Values()
931 allowed_vals->i64vals = malloc(sizeof(int64_t) * opd.FORM.Enum.NumberOfValues); in LIBMTP_Get_Allowed_Property_Values()
932 allowed_vals->datatype = LIBMTP_DATATYPE_INT64; in LIBMTP_Get_Allowed_Property_Values()
935 allowed_vals->u64vals = malloc(sizeof(uint64_t) * opd.FORM.Enum.NumberOfValues); in LIBMTP_Get_Allowed_Property_Values()
936 allowed_vals->datatype = LIBMTP_DATATYPE_UINT64; in LIBMTP_Get_Allowed_Property_Values()
944 allowed_vals->i8vals[i] = opd.FORM.Enum.SupportedValue[i].i8; in LIBMTP_Get_Allowed_Property_Values()
947 allowed_vals->u8vals[i] = opd.FORM.Enum.SupportedValue[i].u8; in LIBMTP_Get_Allowed_Property_Values()
950 allowed_vals->i16vals[i] = opd.FORM.Enum.SupportedValue[i].i16; in LIBMTP_Get_Allowed_Property_Values()
953 allowed_vals->u16vals[i] = opd.FORM.Enum.SupportedValue[i].u16; in LIBMTP_Get_Allowed_Property_Values()
956 allowed_vals->i32vals[i] = opd.FORM.Enum.SupportedValue[i].i32; in LIBMTP_Get_Allowed_Property_Values()
959 allowed_vals->u32vals[i] = opd.FORM.Enum.SupportedValue[i].u32; in LIBMTP_Get_Allowed_Property_Values()
962 allowed_vals->i64vals[i] = opd.FORM.Enum.SupportedValue[i].i64; in LIBMTP_Get_Allowed_Property_Values()
965 allowed_vals->u64vals[i] = opd.FORM.Enum.SupportedValue[i].u64; in LIBMTP_Get_Allowed_Property_Values()
972 allowed_vals->is_range = 1; in LIBMTP_Get_Allowed_Property_Values()
977 allowed_vals->i8min = opd.FORM.Range.MinimumValue.i8; in LIBMTP_Get_Allowed_Property_Values()
978 allowed_vals->i8max = opd.FORM.Range.MaximumValue.i8; in LIBMTP_Get_Allowed_Property_Values()
979 allowed_vals->i8step = opd.FORM.Range.StepSize.i8; in LIBMTP_Get_Allowed_Property_Values()
980 allowed_vals->datatype = LIBMTP_DATATYPE_INT8; in LIBMTP_Get_Allowed_Property_Values()
983 allowed_vals->u8min = opd.FORM.Range.MinimumValue.u8; in LIBMTP_Get_Allowed_Property_Values()
984 allowed_vals->u8max = opd.FORM.Range.MaximumValue.u8; in LIBMTP_Get_Allowed_Property_Values()
985 allowed_vals->u8step = opd.FORM.Range.StepSize.u8; in LIBMTP_Get_Allowed_Property_Values()
986 allowed_vals->datatype = LIBMTP_DATATYPE_UINT8; in LIBMTP_Get_Allowed_Property_Values()
989 allowed_vals->i16min = opd.FORM.Range.MinimumValue.i16; in LIBMTP_Get_Allowed_Property_Values()
990 allowed_vals->i16max = opd.FORM.Range.MaximumValue.i16; in LIBMTP_Get_Allowed_Property_Values()
991 allowed_vals->i16step = opd.FORM.Range.StepSize.i16; in LIBMTP_Get_Allowed_Property_Values()
992 allowed_vals->datatype = LIBMTP_DATATYPE_INT16; in LIBMTP_Get_Allowed_Property_Values()
995 allowed_vals->u16min = opd.FORM.Range.MinimumValue.u16; in LIBMTP_Get_Allowed_Property_Values()
996 allowed_vals->u16max = opd.FORM.Range.MaximumValue.u16; in LIBMTP_Get_Allowed_Property_Values()
997 allowed_vals->u16step = opd.FORM.Range.StepSize.u16; in LIBMTP_Get_Allowed_Property_Values()
998 allowed_vals->datatype = LIBMTP_DATATYPE_UINT16; in LIBMTP_Get_Allowed_Property_Values()
1001 allowed_vals->i32min = opd.FORM.Range.MinimumValue.i32; in LIBMTP_Get_Allowed_Property_Values()
1002 allowed_vals->i32max = opd.FORM.Range.MaximumValue.i32; in LIBMTP_Get_Allowed_Property_Values()
1003 allowed_vals->i32step = opd.FORM.Range.StepSize.i32; in LIBMTP_Get_Allowed_Property_Values()
1004 allowed_vals->datatype = LIBMTP_DATATYPE_INT32; in LIBMTP_Get_Allowed_Property_Values()
1007 allowed_vals->u32min = opd.FORM.Range.MinimumValue.u32; in LIBMTP_Get_Allowed_Property_Values()
1008 allowed_vals->u32max = opd.FORM.Range.MaximumValue.u32; in LIBMTP_Get_Allowed_Property_Values()
1009 allowed_vals->u32step = opd.FORM.Range.StepSize.u32; in LIBMTP_Get_Allowed_Property_Values()
1010 allowed_vals->datatype = LIBMTP_DATATYPE_UINT32; in LIBMTP_Get_Allowed_Property_Values()
1013 allowed_vals->i64min = opd.FORM.Range.MinimumValue.i64; in LIBMTP_Get_Allowed_Property_Values()
1014 allowed_vals->i64max = opd.FORM.Range.MaximumValue.i64; in LIBMTP_Get_Allowed_Property_Values()
1015 allowed_vals->i64step = opd.FORM.Range.StepSize.i64; in LIBMTP_Get_Allowed_Property_Values()
1016 allowed_vals->datatype = LIBMTP_DATATYPE_INT64; in LIBMTP_Get_Allowed_Property_Values()
1019 allowed_vals->u64min = opd.FORM.Range.MinimumValue.u64; in LIBMTP_Get_Allowed_Property_Values()
1020 allowed_vals->u64max = opd.FORM.Range.MaximumValue.u64; in LIBMTP_Get_Allowed_Property_Values()
1021 allowed_vals->u64step = opd.FORM.Range.StepSize.u64; in LIBMTP_Get_Allowed_Property_Values()
1022 allowed_vals->datatype = LIBMTP_DATATYPE_UINT64; in LIBMTP_Get_Allowed_Property_Values()
1034 void LIBMTP_destroy_allowed_values_t(LIBMTP_allowed_values_t *allowed_vals) in LIBMTP_destroy_allowed_values_t() argument
1036 if (!allowed_vals->is_range) in LIBMTP_destroy_allowed_values_t()
1038 switch (allowed_vals->datatype) in LIBMTP_destroy_allowed_values_t()
1041 if (allowed_vals->i8vals) in LIBMTP_destroy_allowed_values_t()
1042 free(allowed_vals->i8vals); in LIBMTP_destroy_allowed_values_t()
1045 if (allowed_vals->u8vals) in LIBMTP_destroy_allowed_values_t()
1046 free(allowed_vals->u8vals); in LIBMTP_destroy_allowed_values_t()
1049 if (allowed_vals->i16vals) in LIBMTP_destroy_allowed_values_t()
1050 free(allowed_vals->i16vals); in LIBMTP_destroy_allowed_values_t()
1053 if (allowed_vals->u16vals) in LIBMTP_destroy_allowed_values_t()
1054 free(allowed_vals->u16vals); in LIBMTP_destroy_allowed_values_t()
1057 if (allowed_vals->i32vals) in LIBMTP_destroy_allowed_values_t()
1058 free(allowed_vals->i32vals); in LIBMTP_destroy_allowed_values_t()
1061 if (allowed_vals->u32vals) in LIBMTP_destroy_allowed_values_t()
1062 free(allowed_vals->u32vals); in LIBMTP_destroy_allowed_values_t()
1065 if (allowed_vals->i64vals) in LIBMTP_destroy_allowed_values_t()
1066 free(allowed_vals->i64vals); in LIBMTP_destroy_allowed_values_t()
1069 if (allowed_vals->u64vals) in LIBMTP_destroy_allowed_values_t()
1070 free(allowed_vals->u64vals); in LIBMTP_destroy_allowed_values_t()