00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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"
00049 int sys_ipc_exec(ht_streamfile **in, ht_streamfile **out, ht_streamfile **err, int *handle, const char *cmd);
00050 bool sys_ipc_is_valid(int handle);
00051 int sys_ipc_terminate(int handle);
00052
00053
00054
00055
00056
00057 bool init_system();
00058
00059
00060
00061
00062
00063 void done_system();
00064
00065 #endif