Imported Upstream version 2.7
[ossec-hids.git] / src / headers / rc.h
1 /* @(#) $Id: ./src/headers/rc.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All right 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 /* Remote Control shared headers */
14
15 #ifndef __RC_H
16
17 #define __RC_H
18
19
20 /* Global headers */
21 #define CONTROL_HEADER      "#!-"
22
23 #define IsValidHeader(str)  ((str[0] == '#') && \
24                              (str[1] == '!') && \
25                              (str[2] == '-') && \
26                              (str+=3) )
27
28
29 /* Exec message */
30 #define EXECD_HEADER        "execd "
31
32 /* File update message */
33 #define FILE_UPDATE_HEADER  "up file "
34
35 /* File closing message */
36 #define FILE_CLOSE_HEADER   "close file "
37
38 /* Agent startup */
39 #define HC_STARTUP          "agent startup "
40
41 /* Agent startup ack */
42 #define HC_ACK              "agent ack "
43
44 /* Syscheck database completed */
45 #define HC_SK_DB_COMPLETED  "syscheck-db-completed"
46
47 /* Syscheck restart msg. */
48 #define HC_SK_RESTART       "syscheck restart"
49
50
51 #endif
52
53 /* EOF */