Initial version
This commit is contained in:
commit
04b878f078
28 changed files with 1771 additions and 0 deletions
22
example/include/process/service_wrapper.hpp
Normal file
22
example/include/process/service_wrapper.hpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef PROCESS_SERVICE_WRAPPER_HPP
|
||||
#define PROCESS_SERVICE_WRAPPER_HPP
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace process::servicewrapper {
|
||||
|
||||
class ServiceWrapper {
|
||||
public:
|
||||
/**
|
||||
* Tells the wrapper to run the service for execution.
|
||||
* This will start the service run and will block until
|
||||
* the service is done or died
|
||||
* @returns exit code of service implementation; return value for service main
|
||||
*/
|
||||
virtual uint32_t run() const = 0;
|
||||
virtual ~ServiceWrapper() = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif //!< PROCESS_SERVICE_WRAPPER_HPP
|
||||
Loading…
Add table
Add a link
Reference in a new issue