OpenMPI  0.1.1
notifier_smtp.h
1 /* -*- C -*-
2  *
3  * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
4  * University Research and Technology
5  * Corporation. All rights reserved.
6  * Copyright (c) 2004-2006 The University of Tennessee and The University
7  * of Tennessee Research Foundation. All rights
8  * reserved.
9  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10  * University of Stuttgart. All rights reserved.
11  * Copyright (c) 2004-2005 The Regents of the University of California.
12  * All rights reserved.
13  * Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
14  * $COPYRIGHT$
15  *
16  * Additional copyrights may follow
17  *
18  * $HEADER$
19  *
20  */
21 #ifndef NOTIFIER_SMTP_H
22 #define NOTIFIER_SMTP_H
23 
24 #include "orte_config.h"
25 
26 #include <netdb.h>
27 
28 #include "libesmtp.h"
29 
31 
32 BEGIN_C_DECLS
33 
34 typedef struct {
36 
37  /* SMTP server name and port */
38  char *server;
39  int port;
40 
41  /* To, From, Subject */
42  char *to, **to_argv, *from_name, *from_addr, *subject;
43 
44  /* Mail body prefix and suffix */
45  char *body_prefix, *body_suffix;
46 
47  /* struct hostent from resolved SMTP server name */
48  struct hostent *server_hostent;
49 
50  /* Priority of this component */
51  int priority;
53 
54 
55 /*
56  * Notifier interfaces
57  */
58 ORTE_MODULE_DECLSPEC extern orte_notifier_smtp_component_t
59  mca_notifier_smtp_component;
60 extern orte_notifier_base_module_t orte_notifier_smtp_module;
61 
62 END_C_DECLS
63 
64 #endif
Definition: notifier.h:98
Definition: notifier_smtp.h:34
Definition: notifier.h:138
The OpenRTE Notifier Framework.