Application::Instance->SigIntHandler(signum);
}
-int application_main(int argc, char **argv, Application::Ptr instance)
+int application_main(int argc, char **argv, Application *instance)
{
int result;
- Application::Instance = instance;
+ Application::Instance = Application::Ptr(instance);
#ifndef _WIN32
struct sigaction sa;
}
-int I2_EXPORT application_main(int argc, char **argv, icinga::Application::Ptr instance);
+int I2_EXPORT application_main(int argc, char **argv, icinga::Application *instance);
#define SET_START_CLASS(klass) \
int main(int argc, char **argv) { \
- shared_ptr<klass> instance = make_shared<klass>(); \
+ klass *instance = new klass(); \
return application_main(argc, argv, instance); \
}