home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 10 / amigaformatcd10.iso / -look_here_1st!- / handy_tools / toolalias / source / list.h < prev    next >
C/C++ Source or Header  |  1993-02-11  |  472b  |  21 lines

  1. /* list datatype for ToolAlias */
  2.  
  3. struct toollist {
  4.     struct toollist *prev, *next;
  5.     char *oldname;
  6.     char *newname;
  7. };
  8.  
  9. typedef struct toollist TOOL;
  10.  
  11. /* prototypes for functions defined in list.c */
  12. void free_tool(TOOL *tool);
  13. TOOL *get_head(void);
  14. TOOL *get_tail(void);
  15. TOOL *add_tool(TOOL *curtool);
  16. TOOL *rem_tool(TOOL *tool);
  17. BOOL set_oldname(TOOL *tool, char *oldname);
  18. BOOL set_newname(TOOL *tool, char *newname);
  19. char *find_tool(char *name);
  20. void free_list(void);
  21.