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

This commit is contained in:
Will Xyen
2021-03-16 22:06:21 +00:00
committed by Will Xyen
parent c3ed8990aa
commit 3cc0f18bfc
4 changed files with 16 additions and 9 deletions
+1 -1
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)
{
+8
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
+5 -1
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"
+2 -7
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