KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
banner.h
Go to the documentation of this file.
1/* KallistiOS ##version##
2
3 kos/banner.h
4 Copyright (C) 2013 Lawrence Sebald
5 Copyright (C) 2025 Eric Fradella
6*/
7
8#ifndef __KOS_BANNER_H
9#define __KOS_BANNER_H
10
11#include <kos/cdefs.h>
12__BEGIN_DECLS
13
14/** \file kos/banner.h
15 \defgroup attribution Attribution
16 \brief KOS banner, license, and authors
17
18 This API can be used to query for and display information
19 on KOS, its license, and its authors at runtime.
20
21 \remark
22 The authors list can be used for credits screens in games
23 and applications to acknowledge KOS and its contributors. :)
24*/
25
26/** \brief Retrieve the banner printed at program initialization.
27 \ingroup attribution
28
29 This function retrieves the banner string that is printed at initialization
30 time by the kernel. This contains the version of KOS in use and basic
31 information about the environment in which it was compiled.
32
33 \return A pointer to the banner string.
34*/
35const char * __pure2 kos_get_banner(void);
36
37/** \brief Retrieve the license information for the compiled copy of KOS.
38 \ingroup attribution
39
40 This function retrieves a string containing the license terms that the
41 version of KOS in use is distributed under. This can be used to easily add
42 information to your program to be displayed at runtime.
43
44 \return A pointer to the license terms.
45*/
46const char * __pure2 kos_get_license(void);
47
48/** \brief Retrieve a list of authors and the dates of their contributions.
49 \ingroup attribution
50
51 This function retrieves the copyright information for the version of KOS in
52 use. This function can be used to add such information to the credits of
53 programs using KOS to give the appropriate credit to those that have worked
54 on KOS.
55
56 \remark
57 Remember, you do need to give credit where credit is due, and this is an
58 easy way to do so. ;-)
59
60 \return A pointer to the authors' copyright information.
61*/
62const char *__pure2 kos_get_authors(void);
63
64__END_DECLS
65
66#endif /* !__KOS_BANNER_H */
Various common macros used throughout the codebase.
const char *__pure2 kos_get_banner(void)
Retrieve the banner printed at program initialization.
const char *__pure2 kos_get_authors(void)
Retrieve a list of authors and the dates of their contributions.
const char *__pure2 kos_get_license(void)
Retrieve the license information for the compiled copy of KOS.