mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
22 lines
634 B
C
22 lines
634 B
C
#ifndef DATAUTILS_H
|
|
#define DATAUTILS_H
|
|
|
|
#include <string.h>
|
|
#include "InjectParameters.h"
|
|
#include "tomlc17.h"
|
|
#include "log.h"
|
|
|
|
typedef struct _InjectionInfo {
|
|
char BootstrapAPIPath[INJECT_PATH_MAX];
|
|
char JuiceLoaderJarPath[INJECT_PATH_MAX];
|
|
char JuiceLoaderLibPath[INJECT_PATH_MAX];
|
|
char EntryJarPath[INJECT_PATH_MAX];
|
|
char EntryClass[INJECT_PATH_MAX];
|
|
char EntryMethod[INJECT_PATH_MAX];
|
|
} InjectionInfoType;
|
|
extern InjectionInfoType InjectionInfo;
|
|
|
|
void safe_copy(char *dest, const char *src, size_t dest_size);
|
|
bool ReadInjectionInfo(toml_result_t result, InjectParameters* params);
|
|
|
|
#endif // DATAUTILS_H
|