GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gxe_display_theme_install.c Lines: 8 8 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
/**   Dispaly Management (Dispaly)                                        */
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_display.h"
30
31
/* Bring in externs for caller checking code.  */
32
GX_CALLER_CHECKING_EXTERNS
33
34
/**************************************************************************/
35
/*                                                                        */
36
/*  FUNCTION                                               RELEASE        */
37
/*                                                                        */
38
/*    _gxe_display_theme_install                          PORTABLE C      */
39
/*                                                           6.1          */
40
/*  AUTHOR                                                                */
41
/*                                                                        */
42
/*    Kenneth Maxwell, Microsoft Corporation                              */
43
/*                                                                        */
44
/*  DESCRIPTION                                                           */
45
/*                                                                        */
46
/*    This function checks for errors in display theme install call.      */
47
/*                                                                        */
48
/*  INPUT                                                                 */
49
/*                                                                        */
50
/*    display                               Display control block         */
51
/*    theme_table                           Theme table to be installed   */
52
/*                                                                        */
53
/*  OUTPUT                                                                */
54
/*                                                                        */
55
/*    status                                Completion status             */
56
/*                                                                        */
57
/*  CALLS                                                                 */
58
/*                                                                        */
59
/*    _gx_display_theme_install             Actual theme install call     */
60
/*                                                                        */
61
/*  CALLED BY                                                             */
62
/*                                                                        */
63
/*    Application Code                                                    */
64
/*    GUIX default draw funtions                                          */
65
/*                                                                        */
66
/**************************************************************************/
67
64
UINT  _gxe_display_theme_install(GX_DISPLAY *display, GX_CONST GX_THEME *theme_ptr)
68
{
69
UINT status;
70
71
    /* Check for invalid caller.  */
72

64
    GX_INIT_AND_THREADS_CALLER_CHECKING
73
74
62
    if (display == GX_NULL)
75
    {
76
2
        return GX_INVALID_DISPLAY;
77
    }
78
79
60
    if (theme_ptr == GX_NULL)
80
    {
81
1
        return GX_PTR_ERROR;
82
    }
83
84
59
    status = _gx_display_theme_install(display, theme_ptr);
85
86
    /* Return status.  */
87
59
    return(status);
88
}
89