Back to index

lightning-sunbird  0.9+nobinonly
Functions
MetroNubUtils.h File Reference
#include <Types.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Boolean IsMetroNubInstalled ()
Boolean IsMWDebuggerRunning ()
Boolean AmIBeingMWDebugged ()

Function Documentation

Definition at line 66 of file MetroNubUtils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 30 of file MetroNubUtils.c.

{
       static Boolean lookedForMetroNub = false;
       
       if (! lookedForMetroNub)
       {
              long   result;
              
              // look for MetroNub's Gestalt selector
              if (Gestalt(kMetroNubUserSignature, &result) == noErr)
              {
                     MetroNubUserEntryBlock* block = (MetroNubUserEntryBlock *)result;
                     
                     // make sure the version of the API is compatible
                     if (block->apiLowVersion <= kMetroNubUserAPIVersion &&
                            kMetroNubUserAPIVersion <= block->apiHiVersion)
                            gMetroNubEntry = block;            // success!
              }
              
              lookedForMetroNub = true;
       }

       return (gMetroNubEntry != NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 56 of file MetroNubUtils.c.

Here is the call graph for this function: