~ubuntu-branches/ubuntu/vivid/keepalived/vivid

« back to all changes in this revision

Viewing changes to keepalived/include/global_data.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2011-10-25 16:10:58 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20111025161058-bgqn5elt0xo1tq0a
Tags: 1:1.2.2-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - debian/rules: DEB_UPDATE_RCD_PARAMS := explicit init start/stop
    parameters (don't stop at 0 and 6)
  - debian/init.d: init script header adapted to stop rule
  - debian/keepalived.postinst: Remove shutdown and reboot links
* Build with libnl3, thanks to a patch from Marc - A. Dahlhaus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *              as published by the Free Software Foundation; either version
18
18
 *              2 of the License, or (at your option) any later version.
19
19
 *
20
 
 * Copyright (C) 2001-2010 Alexandre Cassen, <acassen@freebox.fr>
 
20
 * Copyright (C) 2001-2011 Alexandre Cassen, <acassen@linux-vs.org>
21
21
 */
22
22
 
23
23
#ifndef _GLOBAL_DATA_H
48
48
        char *router_id;
49
49
        char *plugin_dir;
50
50
        char *email_from;
51
 
        uint32_t smtp_server;
 
51
        struct sockaddr_storage smtp_server;
52
52
        long smtp_connection_to;
53
53
        list email;
54
 
} conf_data;
 
54
} conf_data_t;
55
55
 
56
56
/* Global vars exported */
57
 
extern conf_data *data;         /* Global configuration data */
 
57
extern conf_data_t *data;       /* Global configuration data */
58
58
 
59
59
/* Prototypes */
60
 
extern void alloc_email(char *addr);
61
 
extern conf_data *alloc_global_data(void);
62
 
extern void free_global_data(conf_data *global_data);
63
 
extern void dump_global_data(conf_data *global_data);
 
60
extern void alloc_email(char *);
 
61
extern conf_data_t *alloc_global_data(void);
 
62
extern void free_global_data(conf_data_t *);
 
63
extern void dump_global_data(conf_data_t *);
64
64
 
65
65
#endif