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; }

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.

Variable Documentation

◆ AppName

UTILITY_API const std::wstring AppName
extern

This program's name.

Definition at line 15 of file ModuleConstants.cpp.

Referenced by AudacityApp::OnInit().

ModuleDispatch
int DLL_API ModuleDispatch(ModuleDispatchTypes type)
Definition: ModNullCallback.cpp:98
DLL_API
#define DLL_API
Definition: ModuleConstants.h:22
AppQuiting
@ AppQuiting
Definition: ModuleConstants.h:31
ModuleDispatchTypes
ModuleDispatchTypes
Definition: ModuleConstants.h:27
ModuleTerminate
@ ModuleTerminate
Definition: ModuleConstants.h:29
AppInitialized
@ AppInitialized
Definition: ModuleConstants.h:30
ProjectInitialized
@ ProjectInitialized
Definition: ModuleConstants.h:32
ProjectClosing
@ ProjectClosing
Definition: ModuleConstants.h:33
ModuleInitialize
@ ModuleInitialize
Definition: ModuleConstants.h:28