~ubuntu-branches/ubuntu/precise/corosync/precise-proposed

« back to all changes in this revision

Viewing changes to exec/mainconfig.h

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2009-08-21 09:29:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090821092956-w9qxxxx3zeoh8dem
Tags: 1.0.0-4ubuntu2
* debian/control:
  - 'Ubuntu Developers' instead of 'Ubuntu Core Developers'
    as maintainer
  - Bump debhelper dependecy to 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Author: Steven Dake (sdake@redhat.com)
8
8
 *
9
9
 * This software licensed under BSD license, the text of which follows:
10
 
 * 
 
10
 *
11
11
 * Redistribution and use in source and binary forms, with or without
12
12
 * modification, are permitted provided that the following conditions are met:
13
13
 *
37
37
 
38
38
#include <corosync/engine/objdb.h>
39
39
#include <corosync/engine/logsys.h>
 
40
#include <corosync/list.h>
 
41
#include <corosync/engine/coroapi.h>
40
42
 
41
43
/*
42
44
 * All service handlers in the AIS
49
51
};
50
52
#define MAX_DYNAMIC_SERVICES 128
51
53
 
52
 
struct main_config {
53
 
        /*
54
 
         * logging configuration
55
 
         */
56
 
        char *logfile;
57
 
        unsigned int logmode;
58
 
        unsigned int syslog_facility;
59
 
        unsigned int minimum_priority;
60
 
 
61
 
        /*
62
 
         * user/group to run as
63
 
         */
64
 
        char *user;
65
 
        char *group;
 
54
/*
 
55
 * Structure describing cached uidgid item
 
56
 */
 
57
struct uidgid_item {
 
58
        struct list_head list;
 
59
        int uid;
 
60
        int gid;
66
61
};
67
62
 
 
63
extern struct list_head uidgid_list_head;
 
64
 
68
65
extern int corosync_main_config_read (
69
66
        struct objdb_iface_ver0 *objdb,
70
 
        char **error_string,
71
 
        struct main_config *main_config);
72
 
        
 
67
        const char **error_string);
 
68
 
 
69
extern int corosync_main_config_compatibility_read (
 
70
        struct objdb_iface_ver0 *objdb,
 
71
        enum cs_sync_mode *minimum_sync_mode,
 
72
        const char **error_string);
 
73
 
73
74
#endif /* MAINCONFIG_H_DEFINED */