1 #ifndef LIBRARIES_SYSDEBUG_H
    2 #define LIBRARIES_SYSDEBUG_H
    3 
    4 /*
    5  * sysdebug.library include
    6  *
    7  * Copyright © 2019-2020 The MorphOS Development Team, All Rights Reserved.
    8  */
    9 
   10 #ifndef UTILITY_TAGITEM_H
   11 #include <utility/tagitem.h>
   12 #endif
   13 
   14 /* Tags for SysDebugFindSegTagList() */
   15 
   16 /* NOTE: In order to use the results safely you must lock the data in
   17  * memory while you're working with them. This ensures that the the
   18  * memory pointed by SYSDEBUG_SegListArrayPtr and
   19  * SYSDEBUG_SegNameArrayPtr arrays remains valid.
   20  *
   21  * To lock the data you can use SysDebugLock() and SysDebugUnLock()
   22  * functions, or you can obtain the SEG_SEM ("SegTracker") semaphore.
   23  *
   24  * Do not hold the lock for too long as it will block loading/unloading
   25  * segments.
   26  */
   27 
   28 #define SYSDEBUG_Name             (TAG_USER + 0)   /*  IN: STRPTR    - Find modules matching the name */
   29 #define SYSDEBUG_CaseSensitive    (TAG_USER + 1)   /*  IN: Boolean   - Is SYSDEBUG_Name case sensitive? (default TRUE) */
   30 #define SYSDEBUG_NumResultsPtr    (TAG_USER + 2)   /* OUT: LONG *    - Pointer to number of results */
   31 #define SYSDEBUG_SegListArrayPtr  (TAG_USER + 3)   /* OUT: BPTR **   - Pointer to array of result seglist pointers */
   32 #define SYSDEBUG_SegNameArrayPtr  (TAG_USER + 4)   /* OUT: STRPTR ** - Pointer to array of result seglist name pointer */
   33 
   34 #endif /* LIBRARIES_SYSDEBUG_H */
   35