#defines



GROWL_PREFPANE_BUNDLE_IDENTIFIER


The CFBundleIdentifier of the Growl preference pane bundle.

#define GROWL_PREFPANE_BUNDLE_IDENTIFIER CFSTR(
    "com.growl.prefpanel") 
Discussion

GrowlApplicationBridge uses this to determine whether Growl is currently installed, by searching for the Growl preference pane. Your application probably does not need to use this macro itself.


InitGrowlDelegate


Callable macro. Initializes a Growl delegate structure to defaults.

#define InitGrowlDelegate(
    delegate) \ do {
    \ if (
    delegate) {
    \ (
    delegate)->size = sizeof(
    struct Growl_Delegate); \ (
    delegate)->applicationName = NULL; \ (
    delegate)->registrationDictionary = NULL; \ (
    delegate)->applicationIconData = NULL; \ (
    delegate)->growlInstallationWindowTitle = NULL; \ (
    delegate)->growlInstallationInformation = NULL; \ (
    delegate)->growlUpdateWindowTitle = NULL; \ (
    delegate)->growlUpdateInformation = NULL; \ (
    delegate)->referenceCount = 1U; \ (
    delegate)->retain = NULL; \ (
    delegate)->release = NULL; \ (
    delegate)->growlIsReady = NULL; \ (
    delegate)->growlNotificationWasClicked = NULL; \ (
    delegate)->growlNotificationTimedOut = NULL; \ 
} \ 
} while(
    0) 
Discussion

Call with a pointer to a struct Growl_Delegate. All of the members of the structure will be set to 0 or NULL, except for size (which will be set to sizeof(struct Growl_Delegate)) and referenceCount (which will be set to 1).


InitGrowlNotification


Callable macro. Initializes a Growl notification structure to defaults.

#define InitGrowlNotification(
    notification) \ do {
    \ if (
    notification) {
    \ (
    notification)->size = sizeof(
    struct Growl_Notification); \ (
    notification)->name = NULL; \ (
    notification)->title = NULL; \ (
    notification)->description = NULL; \ (
    notification)->iconData = NULL; \ (
    notification)->priority = 0; \ (
    notification)->reserved = 0U; \ (
    notification)->isSticky = false; \ (
    notification)->clickContext = NULL; \ 
} \ 
} while(
    0) 
Discussion

Call with a pointer to a struct Growl_Notification. All of the members of the structure will be set to 0 or NULL, except for size (which will be set to sizeof(struct Growl_Notification)).

© The Growl Project (Last Updated May 14, 2005)