summaryrefslogtreecommitdiff
path: root/config.h
blob: ad2bb4ae2b83fd0fcdf6adb6935d74051359ee61 (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
/*
	Copyright (C) 2020-2021 Reiko Asakura. All Rights Reserved.

	Moonshine
*/

#ifndef CONFIG_H_
#define CONFIG_H_

#include <cdefs.h>
#include <scetypes.h>

#define MOONSHINE_CONFIG_BLOCK_NONE			0
#define MOONSHINE_CONFIG_BLOCK_HOMEBREW		1
#define MOONSHINE_CONFIG_BLOCK_ALL			2

SCE_CDECL_BEGIN

typedef struct MoonshineConfig {
	SceDateTime time;
	int block_presence;
	int block_status;
} MoonshineConfig;

int config_init(MoonshineConfig *config);

int config_read(MoonshineConfig *config);

SCE_CDECL_END

#endif /* CONFIG_H_ */