[07/13] celix git commit: CELIX-230: Refactored shell command for remote service calculator example. Added missing include in command.h

2015-11-03 Thread pnoltes
CELIX-230: Refactored shell command for remote service calculator example. 
Added missing include in command.h


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/b63c0d9f
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/b63c0d9f
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/b63c0d9f

Branch: refs/heads/feature/CELIX-269_depman
Commit: b63c0d9fc96ec198437f5360e4cfb6f1152a056b
Parents: 3bf493e
Author: Pepijn Noltes 
Authored: Tue Oct 27 16:54:44 2015 +0100
Committer: Pepijn Noltes 
Committed: Tue Oct 27 16:54:44 2015 +0100

--
 .../examples/calculator_shell/CMakeLists.txt|  1 -
 .../private/include/add_command.h   |  5 +-
 .../private/include/sqrt_command.h  |  5 +-
 .../private/include/sub_command.h   |  5 +-
 .../calculator_shell/private/src/add_command.c  | 46 +---
 .../private/src/calculator_shell_activator.c| 55 +---
 .../calculator_shell/private/src/sqrt_command.c | 42 ---
 .../calculator_shell/private/src/sub_command.c  | 46 +---
 shell/CMakeLists.txt|  6 +--
 shell/public/include/command.h  |  1 +
 10 files changed, 71 insertions(+), 141 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/CMakeLists.txt
--
diff --git a/remote_services/examples/calculator_shell/CMakeLists.txt 
b/remote_services/examples/calculator_shell/CMakeLists.txt
index dcb8c8f..b93afca 100644
--- a/remote_services/examples/calculator_shell/CMakeLists.txt
+++ b/remote_services/examples/calculator_shell/CMakeLists.txt
@@ -32,7 +32,6 @@ bundle(calculator_shell SOURCES
 private/include/add_command.h
 private/include/sqrt_command.h
 private/include/sub_command.h
-../../../shell/public/src/command.c
 
 
 FILES

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/add_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/add_command.h 
b/remote_services/examples/calculator_shell/private/include/add_command.h
index 1ff9d96..58a7bda 100644
--- a/remote_services/examples/calculator_shell/private/include/add_command.h
+++ b/remote_services/examples/calculator_shell/private/include/add_command.h
@@ -27,9 +27,6 @@
 #ifndef ADD_COMMAND_H_
 #define ADD_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt addCommand_create(bundle_context_pt context);
-void addCommand_destroy(command_pt command);
+void addCommand_execute(bundle_context_pt context, char *line, FILE *out, FILE 
*err);
 
 #endif /* ADD_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/sqrt_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/sqrt_command.h 
b/remote_services/examples/calculator_shell/private/include/sqrt_command.h
index 257abff..c9d07d2 100644
--- a/remote_services/examples/calculator_shell/private/include/sqrt_command.h
+++ b/remote_services/examples/calculator_shell/private/include/sqrt_command.h
@@ -27,9 +27,6 @@
 #ifndef SQRT_COMMAND_H_
 #define SQRT_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt sqrtCommand_create(bundle_context_pt context);
-void sqrtCommand_destroy(command_pt command);
+void sqrtCommand_execute(bundle_context_pt context, char *line, FILE *out, 
FILE *err);
 
 #endif /* SQRT_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/sub_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/sub_command.h 
b/remote_services/examples/calculator_shell/private/include/sub_command.h
index d584835..cf13616 100644
--- a/remote_services/examples/calculator_shell/private/include/sub_command.h
+++ b/remote_services/examples/calculator_shell/private/include/sub_command.h
@@ -27,9 +27,6 @@
 #ifndef SUB_COMMAND_H_
 #define SUB_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt subCommand_create(bundle_context_pt context);
-void subCommand_destroy(command_pt command);
+void subCommand_execute(bundle_context_pt context, char *line, FILE *out, FILE 
*err);
 
 #endif /* SUB_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/src/add_command.c
--

[07/11] celix git commit: CELIX-230: Refactored shell command for remote service calculator example. Added missing include in command.h

2015-11-03 Thread pnoltes
CELIX-230: Refactored shell command for remote service calculator example. 
Added missing include in command.h


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/b63c0d9f
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/b63c0d9f
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/b63c0d9f

Branch: refs/heads/develop
Commit: b63c0d9fc96ec198437f5360e4cfb6f1152a056b
Parents: 3bf493e
Author: Pepijn Noltes 
Authored: Tue Oct 27 16:54:44 2015 +0100
Committer: Pepijn Noltes 
Committed: Tue Oct 27 16:54:44 2015 +0100

--
 .../examples/calculator_shell/CMakeLists.txt|  1 -
 .../private/include/add_command.h   |  5 +-
 .../private/include/sqrt_command.h  |  5 +-
 .../private/include/sub_command.h   |  5 +-
 .../calculator_shell/private/src/add_command.c  | 46 +---
 .../private/src/calculator_shell_activator.c| 55 +---
 .../calculator_shell/private/src/sqrt_command.c | 42 ---
 .../calculator_shell/private/src/sub_command.c  | 46 +---
 shell/CMakeLists.txt|  6 +--
 shell/public/include/command.h  |  1 +
 10 files changed, 71 insertions(+), 141 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/CMakeLists.txt
--
diff --git a/remote_services/examples/calculator_shell/CMakeLists.txt 
b/remote_services/examples/calculator_shell/CMakeLists.txt
index dcb8c8f..b93afca 100644
--- a/remote_services/examples/calculator_shell/CMakeLists.txt
+++ b/remote_services/examples/calculator_shell/CMakeLists.txt
@@ -32,7 +32,6 @@ bundle(calculator_shell SOURCES
 private/include/add_command.h
 private/include/sqrt_command.h
 private/include/sub_command.h
-../../../shell/public/src/command.c
 
 
 FILES

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/add_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/add_command.h 
b/remote_services/examples/calculator_shell/private/include/add_command.h
index 1ff9d96..58a7bda 100644
--- a/remote_services/examples/calculator_shell/private/include/add_command.h
+++ b/remote_services/examples/calculator_shell/private/include/add_command.h
@@ -27,9 +27,6 @@
 #ifndef ADD_COMMAND_H_
 #define ADD_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt addCommand_create(bundle_context_pt context);
-void addCommand_destroy(command_pt command);
+void addCommand_execute(bundle_context_pt context, char *line, FILE *out, FILE 
*err);
 
 #endif /* ADD_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/sqrt_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/sqrt_command.h 
b/remote_services/examples/calculator_shell/private/include/sqrt_command.h
index 257abff..c9d07d2 100644
--- a/remote_services/examples/calculator_shell/private/include/sqrt_command.h
+++ b/remote_services/examples/calculator_shell/private/include/sqrt_command.h
@@ -27,9 +27,6 @@
 #ifndef SQRT_COMMAND_H_
 #define SQRT_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt sqrtCommand_create(bundle_context_pt context);
-void sqrtCommand_destroy(command_pt command);
+void sqrtCommand_execute(bundle_context_pt context, char *line, FILE *out, 
FILE *err);
 
 #endif /* SQRT_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/sub_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/sub_command.h 
b/remote_services/examples/calculator_shell/private/include/sub_command.h
index d584835..cf13616 100644
--- a/remote_services/examples/calculator_shell/private/include/sub_command.h
+++ b/remote_services/examples/calculator_shell/private/include/sub_command.h
@@ -27,9 +27,6 @@
 #ifndef SUB_COMMAND_H_
 #define SUB_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt subCommand_create(bundle_context_pt context);
-void subCommand_destroy(command_pt command);
+void subCommand_execute(bundle_context_pt context, char *line, FILE *out, FILE 
*err);
 
 #endif /* SUB_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/src/add_command.c
--
diff --git 

[25/50] [abbrv] celix git commit: CELIX-230: Refactored shell command for remote service calculator example. Added missing include in command.h

2015-11-03 Thread pnoltes
CELIX-230: Refactored shell command for remote service calculator example. 
Added missing include in command.h


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/b63c0d9f
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/b63c0d9f
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/b63c0d9f

Branch: refs/heads/master
Commit: b63c0d9fc96ec198437f5360e4cfb6f1152a056b
Parents: 3bf493e
Author: Pepijn Noltes 
Authored: Tue Oct 27 16:54:44 2015 +0100
Committer: Pepijn Noltes 
Committed: Tue Oct 27 16:54:44 2015 +0100

--
 .../examples/calculator_shell/CMakeLists.txt|  1 -
 .../private/include/add_command.h   |  5 +-
 .../private/include/sqrt_command.h  |  5 +-
 .../private/include/sub_command.h   |  5 +-
 .../calculator_shell/private/src/add_command.c  | 46 +---
 .../private/src/calculator_shell_activator.c| 55 +---
 .../calculator_shell/private/src/sqrt_command.c | 42 ---
 .../calculator_shell/private/src/sub_command.c  | 46 +---
 shell/CMakeLists.txt|  6 +--
 shell/public/include/command.h  |  1 +
 10 files changed, 71 insertions(+), 141 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/CMakeLists.txt
--
diff --git a/remote_services/examples/calculator_shell/CMakeLists.txt 
b/remote_services/examples/calculator_shell/CMakeLists.txt
index dcb8c8f..b93afca 100644
--- a/remote_services/examples/calculator_shell/CMakeLists.txt
+++ b/remote_services/examples/calculator_shell/CMakeLists.txt
@@ -32,7 +32,6 @@ bundle(calculator_shell SOURCES
 private/include/add_command.h
 private/include/sqrt_command.h
 private/include/sub_command.h
-../../../shell/public/src/command.c
 
 
 FILES

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/add_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/add_command.h 
b/remote_services/examples/calculator_shell/private/include/add_command.h
index 1ff9d96..58a7bda 100644
--- a/remote_services/examples/calculator_shell/private/include/add_command.h
+++ b/remote_services/examples/calculator_shell/private/include/add_command.h
@@ -27,9 +27,6 @@
 #ifndef ADD_COMMAND_H_
 #define ADD_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt addCommand_create(bundle_context_pt context);
-void addCommand_destroy(command_pt command);
+void addCommand_execute(bundle_context_pt context, char *line, FILE *out, FILE 
*err);
 
 #endif /* ADD_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/sqrt_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/sqrt_command.h 
b/remote_services/examples/calculator_shell/private/include/sqrt_command.h
index 257abff..c9d07d2 100644
--- a/remote_services/examples/calculator_shell/private/include/sqrt_command.h
+++ b/remote_services/examples/calculator_shell/private/include/sqrt_command.h
@@ -27,9 +27,6 @@
 #ifndef SQRT_COMMAND_H_
 #define SQRT_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt sqrtCommand_create(bundle_context_pt context);
-void sqrtCommand_destroy(command_pt command);
+void sqrtCommand_execute(bundle_context_pt context, char *line, FILE *out, 
FILE *err);
 
 #endif /* SQRT_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/sub_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/sub_command.h 
b/remote_services/examples/calculator_shell/private/include/sub_command.h
index d584835..cf13616 100644
--- a/remote_services/examples/calculator_shell/private/include/sub_command.h
+++ b/remote_services/examples/calculator_shell/private/include/sub_command.h
@@ -27,9 +27,6 @@
 #ifndef SUB_COMMAND_H_
 #define SUB_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt subCommand_create(bundle_context_pt context);
-void subCommand_destroy(command_pt command);
+void subCommand_execute(bundle_context_pt context, char *line, FILE *out, FILE 
*err);
 
 #endif /* SUB_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/src/add_command.c
--
diff --git 

celix git commit: CELIX-230: Refactored shell command for remote service calculator example. Added missing include in command.h

2015-10-27 Thread pnoltes
Repository: celix
Updated Branches:
  refs/heads/feature/CELIX-230_Refactoring_of_the_shell_command_service 
3bf493eb0 -> b63c0d9fc


CELIX-230: Refactored shell command for remote service calculator example. 
Added missing include in command.h


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/b63c0d9f
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/b63c0d9f
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/b63c0d9f

Branch: refs/heads/feature/CELIX-230_Refactoring_of_the_shell_command_service
Commit: b63c0d9fc96ec198437f5360e4cfb6f1152a056b
Parents: 3bf493e
Author: Pepijn Noltes 
Authored: Tue Oct 27 16:54:44 2015 +0100
Committer: Pepijn Noltes 
Committed: Tue Oct 27 16:54:44 2015 +0100

--
 .../examples/calculator_shell/CMakeLists.txt|  1 -
 .../private/include/add_command.h   |  5 +-
 .../private/include/sqrt_command.h  |  5 +-
 .../private/include/sub_command.h   |  5 +-
 .../calculator_shell/private/src/add_command.c  | 46 +---
 .../private/src/calculator_shell_activator.c| 55 +---
 .../calculator_shell/private/src/sqrt_command.c | 42 ---
 .../calculator_shell/private/src/sub_command.c  | 46 +---
 shell/CMakeLists.txt|  6 +--
 shell/public/include/command.h  |  1 +
 10 files changed, 71 insertions(+), 141 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/CMakeLists.txt
--
diff --git a/remote_services/examples/calculator_shell/CMakeLists.txt 
b/remote_services/examples/calculator_shell/CMakeLists.txt
index dcb8c8f..b93afca 100644
--- a/remote_services/examples/calculator_shell/CMakeLists.txt
+++ b/remote_services/examples/calculator_shell/CMakeLists.txt
@@ -32,7 +32,6 @@ bundle(calculator_shell SOURCES
 private/include/add_command.h
 private/include/sqrt_command.h
 private/include/sub_command.h
-../../../shell/public/src/command.c
 
 
 FILES

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/add_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/add_command.h 
b/remote_services/examples/calculator_shell/private/include/add_command.h
index 1ff9d96..58a7bda 100644
--- a/remote_services/examples/calculator_shell/private/include/add_command.h
+++ b/remote_services/examples/calculator_shell/private/include/add_command.h
@@ -27,9 +27,6 @@
 #ifndef ADD_COMMAND_H_
 #define ADD_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt addCommand_create(bundle_context_pt context);
-void addCommand_destroy(command_pt command);
+void addCommand_execute(bundle_context_pt context, char *line, FILE *out, FILE 
*err);
 
 #endif /* ADD_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/sqrt_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/sqrt_command.h 
b/remote_services/examples/calculator_shell/private/include/sqrt_command.h
index 257abff..c9d07d2 100644
--- a/remote_services/examples/calculator_shell/private/include/sqrt_command.h
+++ b/remote_services/examples/calculator_shell/private/include/sqrt_command.h
@@ -27,9 +27,6 @@
 #ifndef SQRT_COMMAND_H_
 #define SQRT_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt sqrtCommand_create(bundle_context_pt context);
-void sqrtCommand_destroy(command_pt command);
+void sqrtCommand_execute(bundle_context_pt context, char *line, FILE *out, 
FILE *err);
 
 #endif /* SQRT_COMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/celix/blob/b63c0d9f/remote_services/examples/calculator_shell/private/include/sub_command.h
--
diff --git 
a/remote_services/examples/calculator_shell/private/include/sub_command.h 
b/remote_services/examples/calculator_shell/private/include/sub_command.h
index d584835..cf13616 100644
--- a/remote_services/examples/calculator_shell/private/include/sub_command.h
+++ b/remote_services/examples/calculator_shell/private/include/sub_command.h
@@ -27,9 +27,6 @@
 #ifndef SUB_COMMAND_H_
 #define SUB_COMMAND_H_
 
-#include "command_impl.h"
-
-command_pt subCommand_create(bundle_context_pt context);
-void subCommand_destroy(command_pt command);
+void subCommand_execute(bundle_context_pt context, char *line, FILE *out, FILE 
*err);
 
 #endif /* SUB_COMMAND_H_ */