void Growl::Notify( const char *const notification, const char *const title, const char* const message, const char *const url, const char *const icon) { if (protocol == GROWL_TCP) { growl_tcp_notify( server, application, notification, title, message, password, url, icon); } else if (protocol == GROWL_UDP) { growl_udp_notify( server, application, notification, title, message, password); } }
void Growl::Notify( const char *const notification, const char *const title, const char* const message, const char *const url, const unsigned char *const icon_data, const long icon_size) { if (protocol == GROWL_TCP) { growl_tcp_notify_with_data( server, application, notification, title, message, password, url, icon_data, icon_size); } else if (protocol == GROWL_UDP) { growl_udp_notify( server, application, notification, title, message, password); } }
int growl_udp( const char *const server,const char *const appname,const char *const notify,const char *const title, const char *const message , const char *const icon , const char *const password , const char *url ) { int rc = growl_udp_register( server , appname , (const char **const)¬ify , 1 , password ); if( rc == 0 ) { rc = growl_udp_notify( server, appname, notify, title, message , password ); } return rc; }