1 #include "../SDK/foobar2000.h" 2 #include "../SDK/component.h" 81 t_uint32 get_version() {
return FOOBAR2000_CLIENT_VERSION;}
92 void set_library_path(
const char * path,
const char * name) {
97 void services_init(
bool val) {
void ensure_main_thread()
Triggers a bug check if the calling thread is not the main app thread.
bool is_shutting_down()
Returns whether the app is currently shutting down.
static void config_write_file(stream_writer *p_stream, abort_callback &p_abort)
For internal use only, do not call.
static bool g_services_available
const char * get_my_full_path()
Retrieves full path of calling dll, e.g. file://c:.dll.
static void config_read_file(stream_reader *p_stream, abort_callback &p_abort)
For internal use only, do not call.
__declspec(dllexport) foobar2000_client *_cdecl foobar2000_get_interface(foobar2000_api *p_api
static service_factory_base * __internal__list
FOR INTERNAL USE ONLY.
bool is_initializing()
Returns whether the app is currently initializing.
static pfc::string_simple g_full_path
const char * get_profile_path()
Returns filesystem path to directory with user settings, e.g. file://c:.
string_simple_t< char > string_simple
const char * get_my_file_name()
Retrieves filename of calling dll, excluding extension, e.g. "foo_asdf".
bool is_quiet_mode_enabled()
Returns whether foobar2000 is currently running in quiet mode. Quiet mode bypasses all GUI features...
bool assert_main_thread()
Tests whether calling thread is main app thread, and shows diagnostic message in debugger output if i...
HWND get_main_window()
Retrieves main app window. WARNING: this is provided for parent of dialog windows and such only; usin...
bool is_portable_mode_enabled()
Returns whether foobar2000 has been installed in "portable" mode.
bool is_main_thread()
Returns true if calling thread is main app thread, false otherwise.
HINSTANCE get_my_instance()
Retrieves HINSTANCE of calling DLL.
PFC_NORETURN void SHARED_EXPORT uBugCheck()
static bool g_initialized
static foobar2000_client_impl g_client
static pfc::string_simple g_name
bool are_services_available()
Tests whether services are available at this time. They are not available only during DLL startup or ...