Process Hacker
growl.c File Reference
#include <phdk.h>
#include <winsock2.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "md5.h"
#include "tcp.h"
#include "growl.h"

Go to the source code of this file.

Macros

#define _CRT_RAND_S
 

Functions

int growl_init ()
 
void growl_shutdown ()
 
char * gen_salt_alloc (int count)
 
char * gen_password_hash_alloc (const char *password, const char *salt)
 
char * growl_generate_authheader_alloc (const char *const password)
 
int growl_tcp_register (const char *const server, const char *const appname, const char **const notifications, const int notifications_count, const char *const password, const char *const icon)
 
int growl_tcp_notify (const char *const server, const char *const appname, const char *const notify, const char *const title, const char *const message, const char *const password, const char *const url, const char *const icon)
 
int growl (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)
 
void growl_append_md5 (unsigned char *const data, const int data_length, const char *const password)
 
int growl_udp_register (const char *const server, const char *const appname, const char **const notifications, const int notifications_count, const char *const password)
 
int growl_udp_notify (const char *const server, const char *const appname, const char *const notify, const char *const title, const char *const message, const char *const 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)
 

Variables

int growl_init_ = 0
 
char * gntp_send_license_text
 

Macro Definition Documentation

#define _CRT_RAND_S

Definition at line 1 of file growl.c.

Function Documentation

char* gen_password_hash_alloc ( const char *  password,
const char *  salt 
)

Definition at line 79 of file growl.c.

char* gen_salt_alloc ( int  count)

Definition at line 59 of file growl.c.

int growl ( 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 
)

Definition at line 354 of file growl.c.

void growl_append_md5 ( unsigned char *const  data,
const int  data_length,
const char *const  password 
)

Definition at line 366 of file growl.c.

char* growl_generate_authheader_alloc ( const char *const  password)

Definition at line 98 of file growl.c.

int growl_init ( void  )

Definition at line 30 of file growl.c.

void growl_shutdown ( void  )

Definition at line 48 of file growl.c.

int growl_tcp_notify ( const char *const  server,
const char *const  appname,
const char *const  notify,
const char *const  title,
const char *const  message,
const char *const  password,
const char *const  url,
const char *const  icon 
)

Definition at line 246 of file growl.c.

int growl_tcp_register ( const char *const  server,
const char *const  appname,
const char **const  notifications,
const int  notifications_count,
const char *const  password,
const char *const  icon 
)

Definition at line 128 of file growl.c.

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 
)

Definition at line 506 of file growl.c.

int growl_udp_notify ( const char *const  server,
const char *const  appname,
const char *const  notify,
const char *const  title,
const char *const  message,
const char *const  password 
)

Definition at line 449 of file growl.c.

int growl_udp_register ( const char *const  server,
const char *const  appname,
const char **const  notifications,
const int  notifications_count,
const char *const  password 
)

Definition at line 384 of file growl.c.

Variable Documentation

char* gntp_send_license_text
Initial value:
=
"[The \"BSD licence\"]\r\n"
"Copyright (c) 2009-2010 Yasuhiro Matsumoto\r\n"
"All rights reserved.\r\n"
"\r\n"
"Redistribution and use in source and binary forms, with or without\r\n"
"modification, are permitted provided that the following conditions\r\n"
"are met:\r\n"
"\r\n"
" 1. Redistributions of source code must retain the above copyright\r\n"
" notice, this list of conditions and the following disclaimer.\r\n"
" 2. Redistributions in binary form must reproduce the above copyright\r\n"
" notice, this list of conditions and the following disclaimer in the\r\n"
" documentation and/or other materials provided with the distribution.\r\n"
" 3. The name of the author may not be used to endorse or promote products\r\n"
" derived from this software without specific prior written permission.\r\n"
"\r\n"
"THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r\n"
"IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r\n"
"OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r\n"
"IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r\n"
"INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r\n"
"NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r\n"
"DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r\n"
"THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r\n"
"(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r\n"
"THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n"

Definition at line 517 of file growl.c.

int growl_init_ = 0

Definition at line 27 of file growl.c.