home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d09xx / d0908.lha / MegaView / source / source.lha / include / clib / whatis_protos.h
C/C++ Source or Header  |  1993-03-30  |  2KB  |  43 lines

  1. #ifndef    CLIB_WHATIS_PROTOS_H
  2. #define    CLIB_WHATIS_PROTOS_H    1
  3.  
  4. /*
  5. **    $Filename: libraries/whatisbase.h $
  6. **    $Release: 3
  7. **    $Revision: 2 $
  8. **    $Date: 92/12/13 $
  9. **
  10. **    (C) Copyright 1990,1992 S.R. & P.C.
  11. **        All Rights Reserved
  12. */
  13.  
  14. /*
  15.  *    Most function return a private FileType (ULONG), this FileType can change
  16.  *    of format at any time. Don't assume anything about it except
  17.  *    FileType == NULL means TYPE_UNSCANNED
  18.  */
  19.  
  20. FileType WhatIs(char *Name, struct TagItem *TagArray);
  21. char *GetIDString(FileType Type);                        /* return a C string you can use for diplaying */
  22. char *GetIconName(FileType Type);                        /* Get default icon file name */
  23. FileType GetIDType(char *IdString);                     /* used to search a particular Type, if not found return TYPE_UNKNOWNIDSTRING */
  24. WORD CmpFileType(FileType Type1, FileType Type2);        /* used for sorting the type, if (Type1 == Type2) return 0; if ( Type1 > Type2) return >0;  if ( Type1 < Type2) return <0; */
  25. ULONG GetIDStringMaxLen(void);                            /* Max strlen() of all file types */
  26. FileType FirstType(void);                                /* Get the first Type: used to get the list of type */
  27. FileType NextType(FileType Type);                        /* When NextType() == NULL you reach the end of the list */
  28. FileType ParentFileType(FileType Type);                    /* Return the parent type of the type you passed, return NULL if no parent exist */
  29. BOOL IsSubTypeOf(FileType Type, FileType ParentType);    /* Is the type 'Type' a subtype of the type 'ParentType', return TRUE if yes */
  30.  
  31. /*
  32.  *    if AskReparse() returns 0, file was successfully parsed.
  33.  *    if InstallTypes() failed, return <0
  34.  *    if Now is not possible, return >0;
  35.  */
  36.  
  37. long AskReparse(BOOL Now);    /* if Now = TRUE, you ask a reparse now, this can be done only if you are the only owner of the lib ( else reparse was deffered). After Reparse the Type you have are no longuer valid */
  38.  
  39. FileType WhatIsTags(char *Name, Tag FirstTag, ...);
  40.  
  41. #endif
  42.  
  43.