GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gxe_window_root_event_process.c Lines: 6 6 100.0 %
Date: 2026-03-06 19:21:09 Branches: 10 10 100.0 %

Line Branch Exec Source
1
/***************************************************************************
2
 * Copyright (c) 2024 Microsoft Corporation
3
 * Copyright (c) 2026-present Eclipse ThreadX contributors
4
 *
5
 * This program and the accompanying materials are made available under the
6
 * terms of the MIT License which is available at
7
 * https://opensource.org/licenses/MIT.
8
 *
9
 * SPDX-License-Identifier: MIT
10
 **************************************************************************/
11
12
13
/**************************************************************************/
14
/**************************************************************************/
15
/**                                                                       */
16
/** GUIX Component                                                        */
17
/**                                                                       */
18
/**   Window Management (Window)                                          */
19
/**                                                                       */
20
/**************************************************************************/
21
22
#define GX_SOURCE_CODE
23
24
25
/* Include necessary system files.  */
26
27
#include "gx_api.h"
28
#include "gx_system.h"
29
#include "gx_window.h"
30
31
32
33
34
/* Bring in externs for caller checking code.  */
35
GX_CALLER_CHECKING_EXTERNS
36
/**************************************************************************/
37
/*                                                                        */
38
/*  FUNCTION                                               RELEASE        */
39
/*                                                                        */
40
/*    _gxe_window_root_event_process                      PORTABLE C      */
41
/*                                                           6.1          */
42
/*  AUTHOR                                                                */
43
/*                                                                        */
44
/*    Kenneth Maxwell, Microsoft Corporation                              */
45
/*                                                                        */
46
/*  DESCRIPTION                                                           */
47
/*                                                                        */
48
/*    This function checks for errors in the window root event process    */
49
/*    function call.                                                      */
50
/*                                                                        */
51
/*  INPUT                                                                 */
52
/*                                                                        */
53
/*    root_window                           Root window control blcok     */
54
/*    event_ptr                             Incoming event to process     */
55
/*                                                                        */
56
/*  OUTPUT                                                                */
57
/*                                                                        */
58
/*    status                                Completion status             */
59
/*                                                                        */
60
/*  CALLS                                                                 */
61
/*                                                                        */
62
/*    _gx_window_root_event_process         Actual window root event      */
63
/*                                            process function            */
64
/*                                                                        */
65
/*  CALLED BY                                                             */
66
/*                                                                        */
67
/*    Application Code                                                    */
68
/*                                                                        */
69
/**************************************************************************/
70
6
UINT  _gxe_window_root_event_process(GX_WINDOW_ROOT *root_window, GX_EVENT *event_ptr)
71
{
72
UINT status;
73
74
    /* Check for appropriate caller.  */
75

6
    GX_INIT_AND_THREADS_CALLER_CHECKING
76
77

4
    if ((!root_window) || (!event_ptr))
78
    {
79
2
        return(GX_PTR_ERROR);
80
    }
81
82
    /* Call actual window root event process function */
83
2
    status = _gx_window_root_event_process(root_window, event_ptr);
84
85
2
    return(status);
86
}
87