-
Notifications
You must be signed in to change notification settings - Fork 6
/
user.h
42 lines (39 loc) · 1.61 KB
/
user.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
//******************************************************************************
//
// This file is part of the OpenHoldem project
// Source code: https://github.com/OpenHoldem/openholdembot/
// Forums: https://www.maxinmontreal.com/forums/index.php
// Licensed under GPL v3: https://www.gnu.org/licenses/gpl.html
//
//******************************************************************************
//
// Purpose: Very simple user-DLL as a starting-point
//
// DO NOT CHANGE ANYTHING IN THIS FILE!
//
// This Header defines an interface
// Functions and data-types must exactly match.
//
//******************************************************************************
// Import and export directives
// for use by this DLL and by OpenHoldem
#ifdef USER_DLL
#define DLL_IMPLEMENTS extern "C" __declspec(dllexport)
#define EXE_IMPLEMENTS extern "C" __declspec(dllimport)
#else
#define DLL_IMPLEMENTS extern "C" __declspec(dllimport)
#define EXE_IMPLEMENTS extern "C" __declspec(dllexport)
#endif
// Functions implemented and exported by the DLL,
// imported by OpenHoldem
DLL_IMPLEMENTS double __stdcall ProcessQuery(const char* pquery);
DLL_IMPLEMENTS void __stdcall DLLUpdateOnNewFormula();
DLL_IMPLEMENTS void __stdcall DLLUpdateOnConnection();
DLL_IMPLEMENTS void __stdcall DLLUpdateOnHandreset();
DLL_IMPLEMENTS void __stdcall DLLUpdateOnNewRound();
DLL_IMPLEMENTS void __stdcall DLLUpdateOnMyTurn();
DLL_IMPLEMENTS void __stdcall DLLUpdateOnHeartbeat();
// Please refer to the file OpenHoldemFunctions.h
// for functios that get exported by OpenHoldem
// and are available at the DLL-level.