Files
u-boot/examples/ulib/demo_helper.h
Simon Glass 4c32ae1087 ulib: Expand the ulib example to have two files
It is possible to have some files that build in the system environment
and some in the U-Boot environment. To build for the system, the system
headers must be used, or at least have priority. For a U-Boot file, its
headers must be used exclusively.

Expand the Makefile example to have two files, one of which is built
using U-Boot headers. This shows how a program can be built which
straddles both domains.

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-09-08 13:10:53 -06:00

32 lines
610 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Helper functions for U-Boot library demo
*
* Copyright 2025 Canonical Ltd.
* Written by Simon Glass <simon.glass@canonical.com>
*/
#ifndef __DEMO_HELPER_H
#define __DEMO_HELPER_H
/**
* demo_show_banner() - Show the demo banner
*/
void demo_show_banner(void);
/**
* demo_show_footer() - Show the demo footer
*/
void demo_show_footer(void);
/**
* demo_add_numbers() - Add two numbers and print the result
*
* @a: First number
* @b: Second number
* Return: Sum of the two numbers
*/
int demo_add_numbers(int a, int b);
#endif /* __DEMO_HELPER_H */