GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gx_system_string_get.c Lines: 5 5 100.0 %
Date: 2026-03-06 19:21:09 Branches: 2 2 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
/**   System Management (System)                                          */
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
32
/**************************************************************************/
33
/*                                                                        */
34
/*  FUNCTION                                               RELEASE        */
35
/*                                                                        */
36
/*    _gx_system_string_get                               PORTABLE C      */
37
/*                                                           6.1          */
38
/*  AUTHOR                                                                */
39
/*                                                                        */
40
/*    Kenneth Maxwell, Microsoft Corporation                              */
41
/*                                                                        */
42
/*  DESCRIPTION                                                           */
43
/*                                                                        */
44
/*    This service gets the string for the specified resource ID.         */
45
/*    This function has been deprecated.                                  */
46
/*                                                                        */
47
/*  INPUT                                                                 */
48
/*                                                                        */
49
/*    string_id                             String resource ID            */
50
/*    return_string                         Pointer to return string      */
51
/*                                            pointer                     */
52
/*                                                                        */
53
/*  OUTPUT                                                                */
54
/*                                                                        */
55
/*    status                                Completion status             */
56
/*                                                                        */
57
/*  CALLS                                                                 */
58
/*                                                                        */
59
/*    _gx_display_string_get                                              */
60
/*                                                                        */
61
/*  CALLED BY                                                             */
62
/*                                                                        */
63
/*    Application Code                                                    */
64
/*    _gx_multi_line_text_view_create       Create multi line text view   */
65
/*                                            widget                      */
66
/*    _gx_multi_line_text_view_text_id_set  Assign text string to the     */
67
/*                                            multi line text view widget */
68
/*    _gx_prompt_text_get                   Get text string for the       */
69
/*                                            prompt widget               */
70
/*    _gx_text_button_text_get              Get text string for the       */
71
/*                                            button widget               */
72
/*    _gx_widget_text_id_draw               Drew the text onto the wdiget */
73
/*                                                                        */
74
/**************************************************************************/
75
#if defined(GX_ENABLE_DEPRECATED_STRING_API)
76
2
UINT  _gx_system_string_get(GX_RESOURCE_ID string_id, GX_CONST GX_CHAR **return_string)
77
{
78
2
UINT status = GX_FAILURE;
79
80
2
    if (_gx_system_display_created_list)
81
    {
82
1
        status = _gx_display_string_get(_gx_system_display_created_list,
83
                                        string_id, return_string);
84
    }
85
2
    return status;
86
}
87
#endif
88