6302790cbb0c38b9286260fd8af42af98e6eb415
[supertux.git] / src / squirrel / sqdbg / sqrdbg.h
1 /*
2 Copyright (c) 2003-2005 Alberto Demichelis
3
4 This software is provided 'as-is', without any
5 express or implied warranty. In no event will the
6 authors be held liable for any damages arising from
7 the use of this software.
8
9 Permission is granted to anyone to use this software
10 for any purpose, including commercial applications,
11 and to alter it and redistribute it freely, subject
12 to the following restrictions:
13
14                 1. The origin of this software must not be
15                 misrepresented; you must not claim that
16                 you wrote the original software. If you
17                 use this software in a product, an
18                 acknowledgment in the product
19                 documentation would be appreciated but is
20                 not required.
21
22                 2. Altered source versions must be plainly
23                 marked as such, and must not be
24                 misrepresented as being the original
25                 software.
26
27                 3. This notice may not be removed or
28                 altered from any source distribution.
29
30 */
31 #ifndef _SQ_RDBG_H_
32 #define _SQ_RDBG_H_
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 struct SQDbgServer;
39 typedef SQDbgServer* HSQREMOTEDBG;
40
41 HSQREMOTEDBG sq_rdbg_init(HSQUIRRELVM v,unsigned short port,SQBool autoupdate);
42 SQRESULT sq_rdbg_waitforconnections(HSQREMOTEDBG rdbg);
43 SQRESULT sq_rdbg_shutdown(HSQREMOTEDBG rdbg);
44 SQRESULT sq_rdbg_update(HSQREMOTEDBG rdbg);
45
46 #ifdef __cplusplus
47 } /*extern "C"*/
48 #endif
49
50 #endif //_SQ_RDBG_H_