Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
MetroNubUtils.c File Reference
#include "MetroNubUtils.h"
#include "MetroNubUserInterface.h"
#include <Gestalt.h>

Go to the source code of this file.

Defines

#define true   1
#define false   0

Functions

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

Variables

static MetroNubUserEntryBlockgMetroNubEntry = NULL

Define Documentation

#define false   0

Definition at line 22 of file MetroNubUtils.c.

#define true   1

Definition at line 18 of file MetroNubUtils.c.


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:


Variable Documentation

Definition at line 26 of file MetroNubUtils.c.