/ src / emc / rs274ngc / tool_parse.h
tool_parse.h
 1  //    Copyright (C) 2009-2010 Jeff Epler <jepler@unpythonic.net>
 2  //
 3  //    This program is free software; you can redistribute it and/or modify
 4  //    it under the terms of the GNU General Public License as published by
 5  //    the Free Software Foundation; either version 2 of the License, or
 6  //    (at your option) any later version.
 7  //
 8  //    This program is distributed in the hope that it will be useful,
 9  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
10  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  //    GNU General Public License for more details.
12  //
13  //    You should have received a copy of the GNU General Public License
14  //    along with this program; if not, write to the Free Software
15  //    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16  #ifndef TOOL_PARSE_H
17  #define TOOL_PARSE_H
18  
19  #include "emctool.h"
20  #ifdef CPLUSPLUS
21  extern "C"  {
22  #endif
23  
24  int loadToolTable(const char *filename,
25  	struct CANON_TOOL_TABLE toolTable[CANON_POCKETS_MAX],
26  	char *ttcomments[CANON_POCKETS_MAX],
27  	int random_toolchanger
28  	);
29  
30  int saveToolTable(const char *filename,
31  	CANON_TOOL_TABLE toolTable[],
32  	char *ttcomments[CANON_POCKETS_MAX],
33  	int random_toolchanger
34  	);
35  
36  #ifdef CPLUSPLUS
37  }
38  #endif
39  
40  #endif