-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCFunctions.h
More file actions
48 lines (41 loc) · 1.25 KB
/
CFunctions.h
File metadata and controls
48 lines (41 loc) · 1.25 KB
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
43
44
45
46
47
48
/*********************************************************
*
* Multi Theft Auto: San Andreas - Deathmatch
*
* ml_base, External lua add-on module
*
* Copyright � 2003-2008 MTA. All Rights Reserved.
*
* Grand Theft Auto is � 2002-2003 Rockstar North
*
* THE FOLLOWING SOURCES ARE PART OF THE MULTI THEFT
* AUTO SOFTWARE DEVELOPMENT KIT AND ARE RELEASED AS
* OPEN SOURCE FILES. THESE FILES MAY BE USED AS LONG
* AS THE DEVELOPER AGREES TO THE LICENSE THAT IS
* PROVIDED WITH THIS PACKAGE.
*
*********************************************************/
class CFunctions;
#ifndef __CFUNCTIONS_H
#define __CFUNCTIONS_H
#include <stdio.h>
#include <libpq-fe.h>
#include "ml_pgsql.h"
#include "include/ILuaModuleManager.h"
#pragma comment(lib, "./lib/x64/libpq.lib")
extern ILuaModuleManager10 *pModuleManager;
class CFunctions
{
public:
// transaction functions
static int pg_tx_begin(lua_State* luaVM);
static int pg_tx_rollback(lua_State* luaVM);
static int pg_tx_commit(lua_State* luaVM);
static int pg_conn(lua_State* luaVM);
static int pg_query(lua_State* luaVM);
static int pg_poll(lua_State* luaVM);
static int pg_free(lua_State* luaVM);
static int pg_exec(lua_State* luaVM);
static int pg_close(lua_State* luaVM);
};
#endif