summaryrefslogtreecommitdiffstats
path: root/modules/about/inc/about.h
blob: 711857765a78050abe15b1e632e429358501d680 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/******************************************************************************
 *	Copyright (C) 2015	Alejandro Colomar Andrés		      *
 ******************************************************************************/


/******************************************************************************
 ******* include guard ********************************************************
 ******************************************************************************/
# ifndef		MSW_ABOUT_H
	# define	MSW_ABOUT_H


/******************************************************************************
 ******* headers **************************************************************
 ******************************************************************************/
		/* FILENAME_MAX */
	#include <stdio.h>


/******************************************************************************
 ******* macros ***************************************************************
 ******************************************************************************/
	# define	PROG_NAME	"mine-sweeper"
	# define	PROG_YEAR	"2015"


/******************************************************************************
 ******* enums ****************************************************************
 ******************************************************************************/
	enum	Share_File {
		SHARE_COPYRIGHT,
		SHARE_DISCLAIMER,
		SHARE_HELP,
		SHARE_LICENSE,
		SHARE_USAGE
	};


/******************************************************************************
 ******* variables ************************************************************
 ******************************************************************************/
	extern	char	share_path [FILENAME_MAX];


/******************************************************************************
 ******* functions ************************************************************
 ******************************************************************************/
	void	about_init		(void);
	void	snprint_share_file	(char *dest, int destsize, int share_file);
	void	print_share_file	(int share_file);
	void	print_version		(void);


/******************************************************************************
 ******* include guard ********************************************************
 ******************************************************************************/
# endif			/* about.h */


/******************************************************************************
 ******* end of file **********************************************************
 ******************************************************************************/