This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/query_command
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/feature/query_command by this 
push:
     new 6a49edb  gh-144: Adds missing file
6a49edb is described below

commit 6a49edb559cec31aee1165cfc42e0d2857f4348a
Author: Pepijn Noltes <[email protected]>
AuthorDate: Mon Feb 3 21:33:59 2020 +0100

    gh-144: Adds missing file
---
 .../shell/{include/shell.h => api/celix_shell.h}   | 35 +++++++++++-----------
 1 file changed, 18 insertions(+), 17 deletions(-)

diff --git a/bundles/shell/shell/include/shell.h 
b/bundles/shell/shell/api/celix_shell.h
similarity index 74%
rename from bundles/shell/shell/include/shell.h
rename to bundles/shell/shell/api/celix_shell.h
index 306c881..5718690 100644
--- a/bundles/shell/shell/include/shell.h
+++ b/bundles/shell/shell/api/celix_shell.h
@@ -16,24 +16,22 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-/**
- * shell.h
- *
- *  \date       Aug 12, 2010
- *  \author            <a href="mailto:[email protected]";>Apache Celix 
Project Team</a>
- *  \copyright Apache License, Version 2.0
- */
 
-#ifndef SHELL_H_
-#define SHELL_H_
 
-#include "array_list.h"
-#include "service_reference.h"
+#ifndef CELIX_SHELL_H_
+#define CELIX_SHELL_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-static const char * const OSGI_SHELL_SERVICE_NAME = "shellService";
-static const char * const OSGI_SHELL_SERVICE_VERSION = "2.0.0";
+#include <stdio.h>
+#include "celix_array_list.h"
 
-struct shellService {
+#define CELIX_SHELL_SERVICE_NAME        "celix_shell"
+#define CELIX_SHELL_SERVICE_VERSION     "2.0.0"
+
+struct celix_shell {
        void *handle;
 
        /**
@@ -58,7 +56,10 @@ struct shellService {
        celix_status_t (*executeCommand)(void *handle, const char *commandLine, 
FILE *out, FILE *err);
 };
 
-typedef struct shellService shell_service_t;
-typedef shell_service_t* shell_service_pt;
+typedef struct celix_shell celix_shell_t;
+
+#ifdef __cplusplus
+}
+#endif
 
-#endif /* SHELL_H_ */
+#endif /* CELIX_SHELL_H_ */

Reply via email to