diff options
author | eutarass | 2008-02-26 21:19:36 +0000 |
---|---|---|
committer | eutarass | 2008-02-26 21:19:36 +0000 |
commit | c2e0a80cda20ac9322121f0a05e65f85964fcfa1 (patch) | |
tree | 4d1bbb7dfc297a14d77270d1fb3d53dc2615330e /examples | |
parent | 94fbe6cda0f6ddb394b08594e49ffa6de7d87d33 (diff) | |
download | org.eclipse.tcf-c2e0a80cda20ac9322121f0a05e65f85964fcfa1.tar.gz org.eclipse.tcf-c2e0a80cda20ac9322121f0a05e65f85964fcfa1.tar.xz org.eclipse.tcf-c2e0a80cda20ac9322121f0a05e65f85964fcfa1.zip |
Example projects: added readme files, added copyright notices, did some cosmetic changes.
Diffstat (limited to 'examples')
8 files changed, 69 insertions, 9 deletions
diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/config.h b/examples/org.eclipse.tm.tcf.examples.daytime.agent/config.h index eff8d739e..c2b1a5cb3 100644 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/config.h +++ b/examples/org.eclipse.tm.tcf.examples.daytime.agent/config.h @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others. + * 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 @@ -21,16 +21,10 @@ #define D_config #if defined(WIN32) || defined(__CYGWIN__) -# define TARGET_WINDOWS 1 -# define TARGET_VXWORKS 0 # define TARGET_UNIX 0 #elif defined(_WRS_KERNEL) -# define TARGET_WINDOWS 0 -# define TARGET_VXWORKS 1 # define TARGET_UNIX 0 #else -# define TARGET_WINDOWS 0 -# define TARGET_VXWORKS 0 # define TARGET_UNIX 1 #endif diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.c b/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.c index 73f672a5d..1faf9af9c 100644 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.c +++ b/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others. + * 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 diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.h b/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.h index c65fd1339..327600ef9 100644 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.h +++ b/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.h @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others. + * 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 diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/readme.txt b/examples/org.eclipse.tm.tcf.examples.daytime.agent/readme.txt new file mode 100644 index 000000000..3b6ac9fe2 --- /dev/null +++ b/examples/org.eclipse.tm.tcf.examples.daytime.agent/readme.txt @@ -0,0 +1,17 @@ +Readme for TCF Agent Daytime Example
+------------------------------
+
+The Agent Daytime Example shows how TCF agent can be customized and extended with user defined service.
+The example provides code to build the agent with custom set of services, including user defined DayTime service.
+The example is mainly meant for developer's educational use,
+DayTime service does not meant to be of any other value.
+
+See "org.eclipse.tm.tcf.examples.daytime" for details on extending TCF Java binding for DayTime service.
+
+The example includes:
+1. Makefile to build the customized agent.
+2. Implementation of DayTime service: daytime.h daytime.c
+3. Agent configuration header file: config.h
+
+CDT can be used to edit and build the example project.
+Supported agent execution environments: CygWin, Linux.
diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/readme.txt b/examples/org.eclipse.tm.tcf.examples.daytime/readme.txt new file mode 100644 index 000000000..ef5ea285a --- /dev/null +++ b/examples/org.eclipse.tm.tcf.examples.daytime/readme.txt @@ -0,0 +1,16 @@ +Readme for TCF Daytime Example
+------------------------------
+
+The Daytime Example shows how TCF/Java binding can be extended for a new, user defined service.
+The example provides Java binding for DayTime service.
+The example is mainly meant for developer's educational use,
+DayTime service does not meant to be of any other value.
+
+See "org.eclipse.tm.tcf.examples.daytime.agent" for details on extending TCF agent
+with DayTime service implementation.
+
+The example includes:
+1. Definition of the service interface in Java: IDaytimeService.java
+2. Implementation of IDaytimeService interface that translates
+ interface method calls to TCF messages: DaytimeServiceProxy.java
+3. Registration of the service using "org.eclipse.tm.tcf.startup" extension point, see plugin.xml
\ No newline at end of file diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/Activator.java b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/Activator.java index 6dd916def..8ccb572b3 100644 --- a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/Activator.java +++ b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/Activator.java @@ -1,3 +1,14 @@ +/******************************************************************************* + * 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 + *******************************************************************************/ + package org.eclipse.tm.internal.tcf.examples.daytime; import org.eclipse.core.runtime.Plugin; diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/DaytimeServiceProxy.java b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/DaytimeServiceProxy.java index 246f832ca..c1d62dea8 100644 --- a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/DaytimeServiceProxy.java +++ b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/DaytimeServiceProxy.java @@ -1,3 +1,14 @@ +/******************************************************************************* + * 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 + *******************************************************************************/ + package org.eclipse.tm.internal.tcf.examples.daytime; import org.eclipse.tm.tcf.core.Command; diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java index cc13f60d9..ba873c832 100644 --- a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java +++ b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java @@ -1,3 +1,14 @@ +/******************************************************************************* + * 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 + *******************************************************************************/ + package org.eclipse.tm.internal.tcf.examples.daytime; import org.eclipse.tm.tcf.protocol.IService; |