/**************************************************************************/ /* */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* */ /* This software is licensed under the Microsoft Software License */ /* Terms for Microsoft Azure RTOS. Full text of the license can be */ /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */ /* and in the root directory of this software. */ /* */ /**************************************************************************/ /**************************************************************************/ /**************************************************************************/ /** */ /** GUIX Component */ /** */ /** System Management (System) */ /** */ /**************************************************************************/ #define GX_SOURCE_CODE /* Include necessary system files. */ #include "gx_api.h" #include "gx_system.h" /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _gxe_system_widget_find PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* Kenneth Maxwell, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This function checks for errors in system widget search call. */ /* */ /* INPUT */ /* */ /* widget_id Widget ID to search for */ /* search_level Specifies the depth of the */ /* search */ /* return_search_result Pointer to destination for */ /* widget found */ /* */ /* OUTPUT */ /* */ /* status Completion status */ /* */ /* CALLS */ /* */ /* _gx_system_widget_find Actual widget find function */ /* */ /* CALLED BY */ /* */ /* GUIX Application Code */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ /* resulting in version 6.1 */ /* */ /**************************************************************************/ UINT _gxe_system_widget_find(USHORT widget_id, INT search_level, GX_WIDGET **return_search_result) { UINT status; /* Check for invalid pointer. */ if (return_search_result == GX_NULL) { return(GX_PTR_ERROR); } /* Call actual system widget search. */ status = _gx_system_widget_find(widget_id, search_level, return_search_result); /* Return status. */ return status; }