14 #ifndef _UGCS_VSM_RUN_AS_SERVICE_H_
15 #define _UGCS_VSM_RUN_AS_SERVICE_H_
38 Make_program_init_handler,
64 SERVICE_RESULT_OK = 0,
65 SERVICE_RESULT_ERROR = 1,
67 SERVICE_RESULT_NORMAL_INVOCATION = -1
#define DEFINE_CALLBACK_BUILDER(__name, __types, __values)
Define callback builder function.
Definition: callback.h:42
Generic callback which can be used to define and create an instance of an abstract callable operation...
Helper class for proxying callback invocation.
Definition: callback.h:699
Callback_proxy< int, int, char ** > Program_init
Signature for program initialization routine.
Definition: run_as_service.h:34
Run_as_service_result
Result of Run_as_service function SERVICE_RESULT_OK = 0: Was invoked as service and is about to end...
Definition: run_as_service.h:63
Run_as_service_result Run_as_service(const char *service_name, int argc, char *argv[], Program_init prog_init, Program_done prog_done)
Entry point for running program as a service.