1
0
mirror of synced 2024-11-13 17:31:01 +01:00
bananatools/platform/platform.h

46 lines
983 B
C
Raw Normal View History

2023-01-03 05:35:53 +01:00
#pragma once
#include "platform/netenv.h"
#include "platform/locale.h"
#include "platform/clock.h"
#include "platform/dns.h"
#include "platform/jvs.h"
#include "platform/misc.h"
#include "platform/vfs.h"
#include "platform/es3sec.h"
2023-12-08 19:29:37 +01:00
#include "platform/epay.h"
2023-01-03 05:35:53 +01:00
2023-01-26 03:09:38 +01:00
struct dongle_info {
USHORT pid;
USHORT vid;
2023-03-10 08:46:37 +01:00
wchar_t manufacturer[MAX_PATH];
wchar_t product[MAX_PATH];
2023-01-26 03:09:38 +01:00
};
2023-01-03 05:35:53 +01:00
struct platform_config {
struct clock_config clock;
struct netenv_config netenv;
struct locale_config locale;
struct dns_config dns;
struct jvs_config jvs;
struct misc_config misc;
struct vfs_config vfs;
struct es3sec_config dongle;
2023-12-08 19:29:37 +01:00
struct epay_config epay;
2023-01-03 05:35:53 +01:00
};
enum platform_type {
PLATFORM_ES1_A2,
PLATFORM_ES2_PLUS,
2023-01-03 05:35:53 +01:00
PLATFORM_ES3,
PLATFORM_ES4,
2023-01-03 05:35:53 +01:00
PLATFORM_BNA1,
};
HRESULT platform_hook_init(
const struct platform_config *cfg,
enum platform_type type,
jvs_provider_t jvs,
2023-01-26 03:09:38 +01:00
HMODULE redir_mod,
struct dongle_info d_info
2023-01-03 05:35:53 +01:00
);