COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Functions | Variables
growl.c File Reference
#include <arpa/inet.h>
#include <stdint.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.

Functions

static char * string_to_hex_alloc (const char *str, int len)
 
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

static const char hex_table [] = "0123456789ABCDEF"
 
int growl_init_ = 0
 

Function Documentation

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

Definition at line 68 of file growl.c.

char* gen_salt_alloc ( int  count)

Definition at line 60 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 201 of file growl.c.

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

Definition at line 213 of file growl.c.

char* growl_generate_authheader_alloc ( const char *const  password)

Definition at line 87 of file growl.c.

int growl_init ( void  )

Definition at line 30 of file growl.c.

void growl_shutdown ( void  )

Definition at line 49 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 157 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 109 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 350 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 295 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 231 of file growl.c.

static char* string_to_hex_alloc ( const char *  str,
int  len 
)
static

Definition at line 17 of file growl.c.

Variable Documentation

int growl_init_ = 0

Definition at line 28 of file growl.c.

const char hex_table[] = "0123456789ABCDEF"
static

Definition at line 16 of file growl.c.

Send comments to:
COOLFluiD Web Admin