celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-230) Refactoring of the shell command service
Date Fri, 27 Mar 2015 16:34:52 GMT
Pepijn Noltes created CELIX-230:

             Summary: Refactoring of the shell command service
                 Key: CELIX-230
                 URL: https://issues.apache.org/jira/browse/CELIX-230
             Project: Celix
          Issue Type: Improvement
            Reporter: Pepijn Noltes
            Assignee: Pepijn Noltes
            Priority: Minor

The shell command service is one of the first services developed and has some issues.

Most importantly:

1) the interface:
 void (*executeCommand)(command_pt command, char * commandLine, void (*out)(char *), void
(*error)(char *));
Here  out and error stream does not take a handle. resulting in the need for global vars or
complex wrapper.
This will change to FILE *. Which can be easily used to wrap fd or use in memory streams.

2) For one command for function have to made. Only one will remain (executeCommand). the rest
will be osgi properties.

This message was sent by Atlassian JIRA

View raw message