Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htsys.h

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      htsys.h (DJGPP implementation)
00004  *
00005  *      Copyright (C) 1999-2002 Stefan Weyergraf (stefan@weyergraf.de)
00006  *
00007  *      This program is free software; you can redistribute it and/or modify
00008  *      it under the terms of the GNU General Public License version 2 as
00009  *      published by the Free Software Foundation.
00010  *
00011  *      This program is distributed in the hope that it will be useful,
00012  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *      GNU General Public License for more details.
00015  *
00016  *      You should have received a copy of the GNU General Public License
00017  *      along with this program; if not, write to the Free Software
00018  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #ifndef __HTSYS_H__
00022 #define __HTSYS_H__
00023 
00024 #include "htio.h"
00025 #include "global.h"
00026 
00027 #define HT_SYS_NAME                     "DJGPP"
00028 
00029 #define SYS_SUPPORT_NATIVE_CLIPBOARD
00030 #define SYS_NATIVE_CLIPBOARD_NAME "Windows Clipboard"
00031 
00032 int sys_canonicalize(char *result, const char *filename);
00033 int sys_findclose(pfind_t *pfind);
00034 int sys_findfirst(const char *dirname, pfind_t *pfind);
00035 int sys_findnext(pfind_t *pfind);
00036 int sys_pstat(pstat_t *s, const char *filename);
00037 void sys_suspend();
00038 int sys_get_free_mem();
00039 int sys_truncate(const char *filename, FILEOFS ofs);
00040 int sys_deletefile(const char *filename);
00041 bool sys_is_path_delim(char c);
00042 int sys_filename_cmp(const char *a, const char *b);
00043 
00044 bool sys_write_data_to_native_clipboard(const void *data, int size);
00045 int sys_get_native_clipboard_data_size();
00046 bool sys_read_data_from_native_clipboard(void *data, int max_size);
00047 
00048 #include "stream.h"     // FIXME: ARGH
00049 int sys_ipc_exec(ht_streamfile **in, ht_streamfile **out, ht_streamfile **err, int *handle, const char *cmd, int options);
00050 bool sys_ipc_is_valid(int handle);
00051 int sys_ipc_terminate(int handle);
00052 
00053 int sys_get_caps();
00054 
00055 /*
00056  *      INIT
00057  */
00058 
00059 bool init_system();
00060 
00061 /*
00062  *      DONE
00063  */
00064 
00065 void done_system();
00066 
00067 #endif /* __HTSYS_H__ */
00068 

Generated on Fri May 7 21:15:37 2004 by doxygen 1.3.5