1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-02-17 19:19:16 +01:00

aciomgr: move internal init stuff to manager-init.h

This commit is contained in:
Will Xyen 2021-03-16 15:04:49 -07:00 committed by b775d4b79856d2b538f34c4bd2ef68af9d144fff
parent 965df98093
commit 75b27d5992
4 changed files with 16 additions and 9 deletions

View File

@ -1,6 +1,6 @@
#include <windows.h>
#include "manager.h"
#include "manager-init.h"
BOOL WINAPI DllMain(HMODULE self, DWORD reason, void *ctx)
{

View File

@ -0,0 +1,8 @@
#ifndef ACIOMGR_MANAGER_INIT_H
#define ACIOMGR_MANAGER_INIT_H
// internal, used by DllMain
void _aciomgr_init();
void _aciomgr_fini();
#endif

View File

@ -4,7 +4,11 @@
#include <stdatomic.h>
#include "manager.h"
#include "aciomgr/manager-init.h"
#include "aciomgr/manager.h"
#include "acio/acio.h"
#include "aciodrv/device.h"
#include "util/array.h"

View File

@ -3,19 +3,14 @@
#include <stdbool.h>
#include "acio/acio.h"
#include "bemanitools/glue.h"
#define ACIOMGR_NODE_PRODUCT_CODE_LEN 4
struct ac_io_message;
struct aciodrv_device_ctx;
struct aciomgr_port_dispatcher;
// internal
void _aciomgr_init();
void _aciomgr_fini();
/**
* The first function that will be called on your DLL. You will be supplied
* with four function pointers that may be used to log messages to the game's
@ -88,4 +83,4 @@ aciomgr_port_checkout(struct aciomgr_port_dispatcher *dispatcher);
*/
void aciomgr_port_checkin(struct aciomgr_port_dispatcher *dispatcher);
#endif
#endif