/*************************************************************************** * Copyright (c) 2024 Microsoft Corporation * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ /**************************************************************************/ /** */ /** GUIX Component */ /** */ /** Screen Stack Management (Screen Stack) */ /** */ /**************************************************************************/ #define GX_SOURCE_CODE /* Include necessary system files. */ #include "gx_api.h" #include "gx_screen_stack.h" /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _gxe_screen_stack_create PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* Kenneth Maxwell, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This function checks errors in the screen stack create function. */ /* */ /* INPUT */ /* */ /* control Screen stack control block. */ /* memory Memory address at which to */ /* create screen stack. */ /* size Memory size in bytes. */ /* */ /* OUTPUT */ /* */ /* status Completion status */ /* */ /* CALLS */ /* */ /* _gx_screen_stack_create The actual screen stack */ /* create routine */ /* */ /* CALLED BY */ /* */ /* 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_screen_stack_create(GX_SCREEN_STACK_CONTROL *control, GX_WIDGET **memory, INT size) { UINT status; /* Check for invalid input pointers. */ if ((control == GX_NULL) || (memory == GX_NULL)) { return(GX_PTR_ERROR); } /* Check for invalid value. */ if (size <= 0) { return(GX_INVALID_VALUE); } /* Call actual screen stack create function. */ status = _gx_screen_stack_create(control, memory, size); /* Return the error status from screen stack create. */ return(status); }