X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fapplication.h;h=972f3b73b1f8d9767e1f72bcd4ccdf6529415a47;hp=c3c693d3052a2fb9808bc3018cdecd40218102d2;hb=HEAD;hpb=5763dd6e8089c97699cbcbd221afb7fe1841bcdd diff --git a/source/core/application.h b/source/core/application.h index c3c693d..d5a571a 100644 --- a/source/core/application.h +++ b/source/core/application.h @@ -3,6 +3,7 @@ #include #include +#include "mspcore_api.h" #include "noncopyable.h" namespace Msp { @@ -10,10 +11,10 @@ namespace Msp { /** Base class for applications. See also RegisteredApplication. */ -class Application: private NonCopyable +class MSPCORE_API Application: private NonCopyable { protected: - class Starter + class MSPCORE_API Starter { protected: Starter(); @@ -44,7 +45,7 @@ public: This function can only be called once. The global main() function provided by the library normally does it automatically at program startup. */ - static int run(int, char **, void * = 0, void (*)(void *) = 0); + static int run(int, char **, void * = nullptr, void (*)(void *) = nullptr); /** Sets application startup info, including argv[0] value and platform- specific data. @@ -53,9 +54,9 @@ public: Application::run(). */ static void set_startup_info(const char *, void *); - static void *get_data() { return _data; } - static const char *get_argv0() { return _argv0; } - static const std::string &get_name() { return _name; } + static void *get_data(); + static const char *get_argv0(); + static const std::string &get_name(); protected: /** Default main loop. Calls tick() repeatedly until exit() is called. A