Imported Upstream version 2.7
[ossec-hids.git] / src / config / agentlessd-config.h
1 /* @(#) $Id: ./src/config/agentlessd-config.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All rights reserved.
6  *
7  * This program is a free software; you can redistribute it
8  * and/or modify it under the terms of the GNU General Public
9  * License (version 2) as published by the FSF - Free Software
10  * Foundation
11  */
12
13
14 #ifndef _AGENTLESSDCONFIG_H
15 #define _AGENTLESSDCONFIG_H
16
17
18 /* Entry states. */
19 #define LESSD_STATE_CONNECTED       0x001
20 #define LESSD_STATE_PERIODIC        0x002
21 #define LESSD_STATE_DIFF            0x004
22 #define LESSD_USE_SU                0x010
23 #define LESSD_USE_SUDO              0x020
24
25
26 /* Structure for each entry. */
27 typedef struct _agentlessd_entries
28 {
29     short int state;
30
31     int frequency;
32     int current_state;
33     int port;
34     int error_flag;
35
36     char *type;
37     char **server;
38     char *options;
39     char *command;
40
41 }agentlessd_entries;
42
43
44 /* Configuration structure. */
45 typedef struct _agentlessd_config
46 {
47     int queue;
48     agentlessd_entries **entries;
49
50 }agentlessd_config;
51
52
53 #endif