home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d09xx / d0995.lha / WhatIs / include / clib / whatis_protos.h
C/C++ Source or Header  |  1994-04-05  |  2KB  |  45 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 READONLY C string you can use for diplaying */
  22. char *GetIconName(FileType Type);                                /* Get default icon file name, READONLY String */
  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. APTR MakeTypeInfos( ULONG SizeOfInfo);                    /* return a Handle on private type info, you pass size of your info data for one FileType */
  31. void *GetTypeInfo( APTR Handle, FileType Type);                /* return ptr on your data for this FileType */
  32. void FreeTypeInfos( APTR Handle);
  33. /*
  34.  *    if AskReparse() returns 0, file was successfully parsed.
  35.  *    if InstallTypes() failed, return <0
  36.  *    if Now is not possible, return >0;
  37.  */
  38.  
  39. 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 */
  40.  
  41. FileType WhatIsTags(char *Name, Tag FirstTag, ...);
  42.  
  43. #endif
  44.  
  45.