1 /*************************************************************************** 2 * Copyright (c) 2024 Microsoft Corporation 3 * 4 * This program and the accompanying materials are made available under the 5 * terms of the MIT License which is available at 6 * https://opensource.org/licenses/MIT. 7 * 8 * SPDX-License-Identifier: MIT 9 **************************************************************************/ 10 11 12 /**************************************************************************/ 13 /**************************************************************************/ 14 /** */ 15 /** USBX Component */ 16 /** */ 17 /** Pictbridge Application */ 18 /** */ 19 /**************************************************************************/ 20 /**************************************************************************/ 21 22 23 /* Include necessary system files. */ 24 25 #define UX_SOURCE_CODE 26 27 #include "ux_api.h" 28 #include "ux_pictbridge.h" 29 #include "ux_device_class_pima.h" 30 31 32 /**************************************************************************/ 33 /* */ 34 /* FUNCTION RELEASE */ 35 /* */ 36 /* _ux_pictbridge_dpsclient_object_number_get PORTABLE C */ 37 /* 6.1 */ 38 /* AUTHOR */ 39 /* */ 40 /* Chaoqiong Xiao, Microsoft Corporation */ 41 /* */ 42 /* DESCRIPTION */ 43 /* */ 44 /* This function returns the number of objects. */ 45 /* */ 46 /* INPUT */ 47 /* */ 48 /* pima Pima instance associated */ 49 /* */ 50 /* OUTPUT */ 51 /* */ 52 /* Completion Status */ 53 /* */ 54 /* CALLS */ 55 /* */ 56 /* */ 57 /* CALLED BY */ 58 /* */ 59 /* user application */ 60 /* */ 61 /* RELEASE HISTORY */ 62 /* */ 63 /* DATE NAME DESCRIPTION */ 64 /* */ 65 /* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 */ 66 /* 09-30-2020 Chaoqiong Xiao Modified comment(s), */ 67 /* resulting in version 6.1 */ 68 /* */ 69 /**************************************************************************/ _ux_pictbridge_dpsclient_object_number_get(UX_SLAVE_CLASS_PIMA * pima,ULONG object_format_code,ULONG object_association,ULONG * number_objects)70UINT _ux_pictbridge_dpsclient_object_number_get(UX_SLAVE_CLASS_PIMA *pima, 71 ULONG object_format_code, 72 ULONG object_association, 73 ULONG *number_objects) 74 { 75 76 UX_PARAMETER_NOT_USED(pima); 77 UX_PARAMETER_NOT_USED(object_format_code); 78 UX_PARAMETER_NOT_USED(object_association); 79 80 /* We force the number of objects to be 1 only here. This will be the xml scripts. */ 81 *number_objects = 1; 82 83 return(UX_SUCCESS); 84 } 85 86