OSDN Git Service

progress bar の更新頻度を定量化, front end -> script 実行形の構造体を統合
[unagi/old-svn-converted.git] / client / trunk / anago / script_flash.h
1 #ifndef _SCRIPT_PROGRAM_H_
2 #define _SCRIPT_PROGRAM_H_
3 enum{
4         PROGRAM_SCRIPT_STR_LENGTH = 20,
5         PROGRAM_TARGET_STR_LENGTH = 80
6 };
7 struct program_config{
8         char script[PROGRAM_SCRIPT_STR_LENGTH];
9         char target[PROGRAM_TARGET_STR_LENGTH];
10         struct reader_handle handle;
11         const struct reader_control *control;
12         struct flash_memory_driver{
13                 const struct reader_memory_access *access;
14                 struct flash_device flash;
15                 struct memory memory;
16                 struct {
17                         long address, length, count, offset;
18                 }programming, compare;
19                 bool command_change;
20                 long c000x, c2aaa, c5555;
21                 struct gauge gauge;
22         }cpu, ppu;
23         long mappernum;
24         bool compare, testrun;
25         struct textcontrol log;
26 };
27 void script_program_execute(struct program_config *c);
28 #endif