Files
djhackersdev_bemanitools/src/main/iidxhook-util/config-eamuse.h
T
icex2 5531726fc2 feat(iidxhook1): Use sdk-hook and support config api
Summary:

Test Plan:
Read any configuration values through bemanitools's
configuration API abstraction. This still had to be
hooked up when a hook dll is being loaded. The
current implementation relies on an environment
variable providing the path to the original inject
configuration file, then it extracts the relevant hook
configuration section for the currently loaded hook
library.

This adheres to the limitations of not having any
other entry points than DllMain for a hook library
(as of now).
2024-08-15 13:24:47 +02:00

28 lines
689 B
C

#ifndef IIDXHOOK_UTIL_CONFIG_EAMUSE_H
#define IIDXHOOK_UTIL_CONFIG_EAMUSE_H
#include "cconfig/cconfig.h"
#include "iface-core/config.h"
#include "security/id.h"
#include "util/net.h"
typedef struct iidxhook_util_config_eamuse {
char card_type[4];
struct net_addr server;
struct security_id pcbid;
struct security_id eamid;
} iidxhook_util_config_eamuse_t;
void iidxhook_util_config_eamuse_init(struct cconfig *config);
void iidxhook_util_config_eamuse_get(
iidxhook_util_config_eamuse_t *config_eamuse, struct cconfig *config);
void iidxhook_util_config_eamuse_get2(
const bt_core_config_t *config,
iidxhook_util_config_eamuse_t *config_eamuse);
#endif