00001 /* 00002 * This file is part of scribble. 00003 * 00004 * scribble is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * scribble is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00023 /* 00024 * header : ScribSaveThread.h 00025 * 00026 * Description: 00027 * a indepent thread to execute the image save. 00028 * 00029 * Author: Jian Shen, (C) 2006 00030 * 00031 * Copyright: See COPYING file that comes with this distribution 00032 * 00033 */ 00034 00035 #ifndef __SCRIBBLESAVETHREAD_H__ 00036 #define __SCRIBBLESAVETHREAD_H__ 00037 00038 #include "ScribbleDefine.h" 00039 00040 #ifdef __cplusplus 00041 extern "C" 00042 { 00043 #endif /* __cplusplus */ 00044 00045 //return 0 if success. 00046 int initSaveThread(PScribbleUICtx pScribbleUICtx); 00047 00048 //for main thread, notify current page need save, 00049 void notifySave(PScribbleUICtx pScribbleUICtx); 00050 00051 //exit thread, for main thread. 00052 void exitSaveThread(); 00053 00054 00055 00056 #ifdef __cplusplus 00057 } 00058 #endif /* __cplusplus */ 00059 00060 #endif
1.5.6