1 #ifndef CLIB_AMIGAGUIDE_PROTOS_H
    2 #define CLIB_AMIGAGUIDE_PROTOS_H
    3 
    4 /*
    5  *	amigaguide.library C prototypes
    6  *
    7  *	Copyright © 2002-2011 The MorphOS Development Team, All Rights Reserved.
    8  */
    9 
   10 #ifndef EXEC_TYPES_H
   11 # include <exec/types.h>
   12 #endif
   13 
   14 #ifndef EXEC_PORTS_H
   15 # include <exec/ports.h>
   16 #endif
   17 
   18 #ifndef DOS_DOS_H
   19 # include <dos/dos.h>
   20 #endif
   21 
   22 #ifndef LIBRARIES_AMIGAGUIDE_H
   23 # include <libraries/amigaguide.h>
   24 #endif
   25 
   26 #ifndef UTILITY_TAGITEM_H
   27 # include <utility/tagitem.h>
   28 #endif
   29 
   30 #ifndef UTILITY_HOOKS_H
   31 # include <utility/hooks.h>
   32 #endif
   33 
   34 #ifndef REXX_STORAGE_H
   35 # include <rexx/storage.h>
   36 #endif
   37 
   38 
   39 #ifdef __cplusplus
   40 extern "C" {
   41 #endif /* __cplusplus */
   42 
   43 LONG LockAmigaGuideBase( APTR handle );
   44 VOID UnlockAmigaGuideBase( LONG key );
   45 APTR OpenAmigaGuideA( struct NewAmigaGuide *nag, struct TagItem *tags );
   46 #if !defined(USE_INLINE_STDARG)
   47 APTR OpenAmigaGuide( struct NewAmigaGuide *nag, Tag tag1, ... );
   48 #endif
   49 APTR OpenAmigaGuideAsyncA( struct NewAmigaGuide *nag, struct TagItem *attrs );
   50 #if !defined(USE_INLINE_STDARG)
   51 APTR OpenAmigaGuideAsync( struct NewAmigaGuide *nag, Tag tag1, ... );
   52 #endif
   53 VOID CloseAmigaGuide( APTR cl );
   54 ULONG AmigaGuideSignal( APTR cl );
   55 struct AmigaGuideMsg *GetAmigaGuideMsg( APTR cl );
   56 VOID ReplyAmigaGuideMsg( struct AmigaGuideMsg *amsg );
   57 LONG SetAmigaGuideContextA( APTR cl, ULONG id, struct TagItem *attrs );
   58 #if !defined(USE_INLINE_STDARG)
   59 LONG SetAmigaGuideContext( APTR cl, ULONG id, Tag tag1, ... );
   60 #endif
   61 LONG SendAmigaGuideContextA( APTR cl, struct TagItem *attrs );
   62 #if !defined(USE_INLINE_STDARG)
   63 LONG SendAmigaGuideContext( APTR cl, Tag tag1, ... );
   64 #endif
   65 LONG SendAmigaGuideCmdA( APTR cl, STRPTR cmd, struct TagItem *attrs );
   66 #if !defined(USE_INLINE_STDARG)
   67 LONG SendAmigaGuideCmd( APTR cl, STRPTR cmd, Tag tag1, ... );
   68 #endif
   69 LONG SetAmigaGuideAttrsA( APTR cl, struct TagItem *attrs );
   70 #if !defined(USE_INLINE_STDARG)
   71 LONG SetAmigaGuideAttrs( APTR cl, Tag tag1, ... );
   72 #endif
   73 LONG GetAmigaGuideAttr( Tag tag, APTR cl, ULONG *storage );
   74 LONG LoadXRef( BPTR lock, STRPTR name );
   75 VOID ExpungeXRef( VOID );
   76 APTR AddAmigaGuideHostA( struct Hook *h, STRPTR name, struct TagItem *attrs );
   77 #if !defined(USE_INLINE_STDARG)
   78 APTR AddAmigaGuideHost( struct Hook *h, STRPTR name, Tag tag1, ... );
   79 #endif
   80 LONG RemoveAmigaGuideHostA( APTR hh, struct TagItem *attrs );
   81 #if !defined(USE_INLINE_STDARG)
   82 LONG RemoveAmigaGuideHost( APTR hh, Tag tag1, ... );
   83 #endif
   84 STRPTR GetAmigaGuideString( LONG id );
   85 
   86 /* Added in V52 (MorphOS 3.0) */
   87 VOID AG_UpdateLink(CONST_STRPTR link);
   88 BOOL AG_LinkExists(CONST_STRPTR link);
   89 
   90 #ifdef __cplusplus
   91 }
   92 #endif /* __cplusplus */
   93 
   94 
   95 #endif /* CLIB_AMIGAGUIDE_PROTOS_H */