blob: 2cdf7f3513cba70e6e3b8b343f0be6706f5fcf33 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*******************************************************************************
* Copyright (c) 2008 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Wind River Systems - initial API and implementation
*******************************************************************************/
/*
* This file contains "define" statements that control agent configuration.
* SERVICE_* definitions control which service implementations are included into the agent.
*
* This is example agent configuration. It includes only few standard services,
* and one example service: Day Time.
*/
#ifndef D_config
#define D_config
#if defined(WIN32) || defined(__CYGWIN__)
# define TARGET_UNIX 0
#elif defined(_WRS_KERNEL)
# define TARGET_UNIX 0
#else
# define TARGET_UNIX 1
#endif
#define SERVICE_FileSystem 1
#define SERVICE_SysMonitor TARGET_UNIX
#define ENABLE_Trace 1
#ifdef CONFIG_MAIN
/*
* This part of config.h contains services initialization code,
* which is executed during agent startup.
*/
#include "filesystem.h"
#include "sysmon.h"
#include "diagnostics.h"
#include "daytime.h"
static void ini_services(Protocol * proto, TCFBroadcastGroup * bcg, TCFSuspendGroup * spg) {
#if SERVICE_FileSystem
ini_file_system_service(proto);
#endif
#if SERVICE_SysMonitor
ini_sys_mon_service(proto);
#endif
ini_diagnostics_service(proto);
ini_daytime_service(proto);
}
#endif /* CONFIG_MAIN */
#endif /* D_config */
|