| LIO_CTX | Type (Structure)

link.h

typedef struct {
| unsigned short hVar; /* File handle (or 0 if no handles associated) */
| union {
| const void *pVar; /* Pointer to the file, used only if hVar is 0 */
| struct {
| unsigned short FindFlags;
| unsigned short NameSym;
| } DirVars; /* Used only if hVar is non-zero */
| } extra;
| const char *VarName; /* Pointer to the var name (ordinary C string) */
| unsigned long VarSize; /* Size of the variable */
| unsigned short Index; /* Only for CBL access - data sent as float array */
| unsigned short Unknown; /* Sent after index */
| unsigned char VarType; /* See below */
| unsigned char VarCompat; /* See info about SYM_ENTRY in vat.h */
} LIO_CTX;

A file context structure used in some high-level link commands.

LIO_CTX is a file context structure used in some high-level link commands. Some fields of this structure are not so clear for me. However, in many applications not all fields need to be set properly, so limited use of this structure is possible.
The field VarType may contain the following values (I don't know much more than I wrote in this table, so don't ask me about details):

0 | Expression
4 | List
6 | Matrix
10 | Data
11 | Text
12 | String
13 | GDB variable
14 | Geometry figure
16 | Picture
17 | Picture (???)
18 | TI-Basic program
19 | TI-Basic function
20 | Geometry macro
21 | In link protocol, cause execution of assembly block
25 | Directory list (used recursively, unless VarType 26 follows)
26 | List the folder table entries
27 | List contents of a given folder (VarType 26 should follow)
28 | Other (OTH) file
29 | Backup file
31 | Folder entry symbol in group files
32 | Used for getting a certificate
33 | ASM program
34 | ID List
35 | Product code (AMS)
36 | FLASH application
37 | Certificate