home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / ftp.vapor.com / voyager / v295 / search_plugin_src.lzx / v_plugin.h < prev   
Encoding:
C/C++ Source or Header  |  1997-04-11  |  1.3 KB  |  55 lines

  1. /*
  2. ** Voyager-NG Plugin definitions
  3. ** =============================
  4. **
  5. ** (C) 1997 Oliver Wagner <owagner@vapor.com>
  6. ** All Rights Reserved
  7. **
  8. */
  9.  
  10. #include <exec/types.h>
  11. #include <utility/tagitem.h>
  12.  
  13. #define VPLUG_TAGBASE (TAG_USER+0x87112)
  14.  
  15. /*
  16. ** VPLUG_Query() is supposed to return a static TagList
  17. ** which describes the ability and requirements of
  18. ** a plugin.
  19. */
  20.  
  21. #define VPLUG_QUERYBASE (VPLUG_TAGBASE+100)
  22.  
  23. #define VPLUG_Query_Version (VPLUG_QUERYBASE+0)                /* ULONG version */
  24. #define VPLUG_Query_Revision (VPLUG_QUERYBASE+1)            /* ULONG revision */
  25. #define VPLUG_Query_Copyright (VPLUG_QUERYBASE+2)            /* STRPTR copyright information */
  26. #define VPLUG_Query_Infostring (VPLUG_QUERYBASE+3)            /* STRPTR generic info string */
  27.  
  28. #define VPLUG_Query_RegisterURLMethod (VPLUG_QUERYBASE+4)     /* STRPTR register URL method */
  29.  
  30.  
  31. /*
  32. **
  33. */
  34.  
  35. #ifndef BUILDPLUGIN
  36.  
  37. #ifndef NO_PROTO
  38. #pragma libcall classlib VPLUG_Query 1e 0
  39. #pragma libcall classlib VPLUG_ProcessURLMethod 24 801
  40. #pragma libcall classlib VPLUG_GetURLData 2a 801
  41. #pragma libcall classlib VPLUG_GetURLMIMEType 30 801
  42. #pragma libcall classlib VPLUG_FreeURLData 36 801
  43. #endif
  44.  
  45. #ifndef NO_PRAGMAS
  46.  
  47. struct TagItem *VPLUG_Query( void );
  48. APTR VPLUG_ProcessURLMethod( STRPTR );
  49. APTR VPLUG_GetURLData( APTR );
  50. STRPTR VPLUG_GetURLMIMEType( APTR ); 
  51. void VPLUG_FreeURLData( APTR );
  52. #endif
  53.  
  54. #endif
  55.