61e67d03a966da3f0c72e7a9e5bad63737e62d53
[ossec-hids.git] / src / headers / rc.h
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All right reserved.
5  *
6  * This program is a free software; you can redistribute it
7  * and/or modify it under the terms of the GNU General Public
8  * License (version 2) as published by the FSF - Free Software
9  * Foundation
10  */
11
12 /* Remote Control shared headers */
13
14 #ifndef __RC_H
15
16 #define __RC_H
17
18
19 /* Global headers */
20 #define CONTROL_HEADER      "#!-"
21
22 #define IsValidHeader(str)  ((str[0] == '#') && \
23                              (str[1] == '!') && \
24                              (str[2] == '-') && \
25                              (str+=3) )       
26
27
28 /* Exec message */
29 #define EXECD_HEADER        "execd "
30
31 /* File update message */
32 #define FILE_UPDATE_HEADER  "up file "
33
34 /* File closing message */
35 #define FILE_CLOSE_HEADER   "close file "
36
37 /* Agent startup */
38 #define HC_STARTUP          "agent startup "
39
40 /* Agent startup ack */
41 #define HC_ACK              "agent ack "
42
43 /* Syscheck database completed */
44 #define HC_SK_DB_COMPLETED  "syscheck-db-completed"
45
46 /* Syscheck restart msg. */
47 #define HC_SK_RESTART       "syscheck restart"
48
49
50 #endif
51
52 /* EOF */