COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
cf3
Tools
Prowl
prowl
main.c
Go to the documentation of this file.
1
/*
2
* ----------------------------------------------------------------------------
3
* "THE BEER-WARE LICENSE" (Revision 42):
4
* <abort@digitalise.net> wrote this file. As long as you retain this notice you
5
* can do whatever you want with this stuff. If we meet some day, and you think
6
* this stuff is worth it, you can buy me a beer in return J. Dijkstra (04/29/2010)
7
* ----------------------------------------------------------------------------
8
*/
9
#include "
prowl.h
"
10
#include <stdio.h>
11
#include <stdlib.h>
12
13
#define APP_NAME "ProwlExample"
14
15
int
main
(
int
argc,
char
** argv) {
16
if
(argc < 4)
17
{
18
printf(
"Usage: prowl <api_key> <priority-number> <event> <description>\n"
);
19
return
1;
20
}
21
22
printf(
"Return code: %d\n"
,
prowl_push_msg
(argv[1], atoi(argv[2]),
APP_NAME
, argv[3], argv[4]));
23
24
return
0;
25
}
prowl.h
APP_NAME
#define APP_NAME
Definition:
main.c:13
prowl_push_msg
int prowl_push_msg(char *api_key, int priority, char *application_name, char *event_name, char *description)
Definition:
prowl.c:20
main
int main(int argc, char **argv)
Definition:
main.c:15
Generated on Sun Jun 14 2015 21:20:15 for COOLFluiD by
1.8.9.1
Send comments to:
COOLFluiD Web Admin