X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fconfig%2Fagentlessd-config.h;h=8583f551b50bcd99eceb9fd6cede750fff02b85e;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=9d522b3ad5b7804a3f3584c739df01ec15878ffe;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;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 9d522b3..8583f55 --- a/src/config/agentlessd-config.h +++ b/src/config/agentlessd-config.h @@ -1,5 +1,3 @@ -/* @(#) $Id$ */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * @@ -9,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