X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Fconfig%2Fagentlessd-config.h;h=8583f551b50bcd99eceb9fd6cede750fff02b85e;hb=946517cefb8751a43a89bda4220221f065f4e5d1;hp=c69a6b82a49cb43664f3fed4ed411fe17ad6ce8f;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/config/agentlessd-config.h b/src/config/agentlessd-config.h old mode 100755 new mode 100644 index c69a6b8..8583f55 --- a/src/config/agentlessd-config.h +++ b/src/config/agentlessd-config.h @@ -1,6 +1,3 @@ -/* @(#) $Id: ./src/config/agentlessd-config.h, 2011/09/08 dcid Exp $ - */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * @@ -10,44 +7,38 @@ * Foundation */ - #ifndef _AGENTLESSDCONFIG_H #define _AGENTLESSDCONFIG_H - -/* Entry states. */ +/* Entry states */ #define LESSD_STATE_CONNECTED 0x001 #define LESSD_STATE_PERIODIC 0x002 #define LESSD_STATE_DIFF 0x004 #define LESSD_USE_SU 0x010 #define LESSD_USE_SUDO 0x020 - -/* Structure for each entry. */ -typedef struct _agentlessd_entries -{ +/* Structure for each entry */ +typedef struct _agentlessd_entries { short int state; int frequency; - int current_state; + time_t current_state; int port; int error_flag; char *type; char **server; - char *options; + const char *options; char *command; -}agentlessd_entries; - +} agentlessd_entries; -/* Configuration structure. */ -typedef struct _agentlessd_config -{ +/* Configuration structure */ +typedef struct _agentlessd_config { int queue; agentlessd_entries **entries; -}agentlessd_config; +} agentlessd_config; +#endif /* _AGENTLESSDCONFIG_H */ -#endif