Audacity 3.2.0
Macros | Enumerations | Variables
ModuleConstants.h File Reference
#include <string>
Include dependency graph for ModuleConstants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ModuleDispatchName   "ModuleDispatch"
 
#define DLL_API   __attribute__ ((visibility("default")))
 
#define DLL_IMPORT
 
#define DEFINE_VERSION_CHECK
 
#define DEFINE_MODULE_ENTRIES
 

Enumerations

enum  ModuleDispatchTypes {
  ModuleInitialize , ModuleTerminate , AppInitialized , AppQuiting ,
  ProjectInitialized , ProjectClosing
}
 

Variables

UTILITY_API const std::wstring AppName
 This program's name. More...
 

Macro Definition Documentation

◆ DEFINE_MODULE_ENTRIES

#define DEFINE_MODULE_ENTRIES
Value:
DEFINE_VERSION_CHECK \
extern "C" DLL_API int ModuleDispatch(ModuleDispatchTypes type){ return 1; }
int DLL_API ModuleDispatch(ModuleDispatchTypes type)
#define DLL_API
ModuleDispatchTypes

Definition at line 51 of file ModuleConstants.h.

◆ DEFINE_VERSION_CHECK

#define DEFINE_VERSION_CHECK
Value:
extern "C" { \
DLL_API const wchar_t * GetVersionString() \
{ \
/* Make sure that this version of the module requires the version \
of Audacity it is built with. \
For now, the versions must match exactly for Audacity to \
agree to load the module. */ \
return AUDACITY_VERSION_STRING; \
} \
}

Definition at line 40 of file ModuleConstants.h.

◆ DLL_API

#define DLL_API   __attribute__ ((visibility("default")))

Definition at line 22 of file ModuleConstants.h.

◆ DLL_IMPORT

#define DLL_IMPORT

Definition at line 23 of file ModuleConstants.h.

◆ ModuleDispatchName

#define ModuleDispatchName   "ModuleDispatch"

Definition at line 16 of file ModuleConstants.h.

Enumeration Type Documentation

◆ ModuleDispatchTypes

Enumerator
ModuleInitialize 
ModuleTerminate 
AppInitialized 
AppQuiting 
ProjectInitialized 
ProjectClosing 

Definition at line 26 of file ModuleConstants.h.

27{
34};
@ AppInitialized
@ ModuleInitialize
@ AppQuiting
@ ProjectClosing
@ ProjectInitialized
@ ModuleTerminate

Variable Documentation

◆ AppName

UTILITY_API const std::wstring AppName
extern

This program's name.

Definition at line 14 of file ModuleConstants.cpp.

Referenced by AudacityApp::OnInit0().