1 /*
2 
3    Ming, an SWF output library
4    Copyright (C) 2002  Opaque Industries - http://www.opaque.net/
5 
6    3.3.2007 Klaus Rechert
7 
8    This library is free software; you can redistribute it and/or
9    modify it under the terms of the GNU Lesser General Public
10    License as published by the Free Software Foundation; either
11    version 2.1 of the License, or (at your option) any later version.
12 
13    This library is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    Lesser General Public License for more details.
17 
18    You should have received a copy of the GNU Lesser General Public
19    License along with this library; if not, write to the Free Software
20    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21 
22 */
23 
24 
25 #ifndef _SCRIPTLIMITS_H_
26 #define _SCRIPTLIMITS_H_
27 
28 struct SWFScriptLimits_s
29 {
30         struct SWFBlock_s block;
31         int maxRecursion;
32         int timeout;
33 };
34 
35 typedef struct SWFScriptLimits_s* SWFScriptLimits;
36 
37 SWFScriptLimits newSWFScriptLimits();
38 void destroySWFScriptLimits(SWFScriptLimits sl);
39 void SWFScriptLimits_maxRecursion(SWFScriptLimits sl, int count);
40 void SWFScriptLimits_setTimeout(SWFScriptLimits sl, int timeout);
41 #endif
42 
43