UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
getfile.h
1 #if !defined(__N_GETFILE_H_)
2 #define __N_GETFILE_H_
3 
4 #include <sds_dir.h>
5 #if 0
6 #if COMP_MODE == 1
7 typedef struct {
8  long d_ino; /* "inode number" of entry */
9  unsigned short d_off; /* offset of disk directory entry */
10  unsigned short d_reclen; /* length of this record */
11  char d_name[1]; /* name of file */
12 } DIR_ENT;
13 #else
14 typedef struct dirent DIR_ENT;
15 #endif
16 #endif /* 0 */
17 
18 typedef struct {
19  short code;
20  char* name;
21  } CODE_NAME;
22 
23 typedef struct {
24  short nn,code;
25  char root[256];
26  CODE_NAME* CodeName;
27  char* buf;
28  } FILE_LIST;
29 
30 #define LIST_NAME_LEN 4000
31 #define LIST_CODE_N 256
32 void set_fltr();
33 void set_file();
34 void set_select();
35 int FileCB();
36 
37 #define DIR_BEG "/home/Alex/"
38 int list_file();
39 int add_list();
40 int list_dir();
41 void set_null_list();
42 
43 
44 typedef int (*GetFileCB)();
45 #ifdef _NO_PROTO_
46 typedef int (*If_Mask)();
47 #else
48 typedef int (*If_Mask)(char* dName,char* fName);
49 #endif
50 typedef struct {
51  YType* par;
52  int place; /* dLeft dDown ... */
53  char* Name; /* Name of Window */
54  char* FName; /* Init File Name */
55  char* FTitle; /* Title Files List */
56  char* DName; /* Init Directory Name */
57  char* DTitle; /* Title Directory List */
58  short FLen,DLen; /* Length of F-s and Dr-s */
59  short F_Text,D_Text; /* 0 or 1 for Text Fields */
60  short lLen, /* Number of Rows in Lists */
61  FSelect; /* File Select (Do not use) */
62  char* DefExt; /* Default Extention Name */
63  CallB cb; /* CallBack YApply,YHelp,YCancel*/
64  char* mask; /* Mask for Select Files */
65  If_Mask IfMask; /* User Select Files if(IfMask >= 0)
66  IfMask(char* dName,char* fName); */
67  char** types;
68  short code, /* return code */
69  NoApply;
71 
72 typedef struct {
73  YType* par;
74  int place; /* dLeft dDown ... */
75  char* WinName; /* Name of Window */
76  char* TitleName; /* Title */
77  char* Name; /* Init and Return name */
78  char* TempName; /* Output string for Modify key */
79  char* Message; /* Message String */
80  short len,maxlen; /* Name length */
81  CallB cb; /* YModify YApply,YHelp,YCancel */
82  short alfa,startPos,endPos;
83  /* Insert alfa cursor start-end */
84  char NoApply,NoOk;
86 
87 extern GET_FILE_STRUCT* G_F_S;
88 #ifdef _NO_PROTO_
89 int FileNameSelectCB();
90 int FileNameSelect();
91 #else
92 int FileNameSelectCB(int key);
93 int FileNameSelect(GET_FILE_STRUCT* G);
94 #endif
95 #endif
Definition: getfile.h:50
Definition: ymprog.h:1019
Definition: getfile.h:23
Definition: getfile.h:18
Definition: getfile.h:72