Commit 07bdfaac authored by Christian Hergert's avatar Christian Hergert
Browse files

libide: add availability macros to class definitions

parent d866396e
......@@ -32,6 +32,7 @@ G_BEGIN_DECLS
#define IDE_APPLICATION_DEFAULT (IDE_APPLICATION (g_application_get_default()))
#define IDE_IS_MAIN_THREAD() (g_thread_self() == ide_application_get_main_thread())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeApplication, ide_application, IDE, APPLICATION, DzlApplication)
typedef enum
......
......@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUFFER_CHANGE_MONITOR (ide_buffer_change_monitor_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeBufferChangeMonitor, ide_buffer_change_monitor, IDE, BUFFER_CHANGE_MONITOR, IdeObject)
typedef enum
......
......@@ -32,6 +32,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUFFER_MANAGER (ide_buffer_manager_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBufferManager, ide_buffer_manager, IDE, BUFFER_MANAGER, IdeObject)
IDE_AVAILABLE_IN_ALL
......
......@@ -34,6 +34,7 @@ G_BEGIN_DECLS
#define IDE_BUFFER_LINE_FLAGS_DIAGNOSTICS_MASK \
((IDE_BUFFER_LINE_FLAGS_ERROR | IDE_BUFFER_LINE_FLAGS_WARNING | IDE_BUFFER_LINE_FLAGS_NOTE))
IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeBuffer, ide_buffer, IDE, BUFFER, GtkSourceBuffer)
typedef enum
......
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_UNSAVED_FILES (ide_unsaved_files_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeUnsavedFiles, ide_unsaved_files, IDE, UNSAVED_FILES, IdeObject)
IDE_AVAILABLE_IN_ALL
......
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILDCONFIG_CONFIGURATION (ide_buildconfig_configuration_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBuildconfigConfiguration, ide_buildconfig_configuration, IDE, BUILDCONFIG_CONFIGURATION, IdeConfiguration)
IDE_AVAILABLE_IN_ALL
......
......@@ -30,6 +30,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_MANAGER (ide_build_manager_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBuildManager, ide_build_manager, IDE, BUILD_MANAGER, IdeObject)
IDE_AVAILABLE_IN_ALL
......
......@@ -55,6 +55,7 @@ typedef enum
IDE_BUILD_PHASE_FAILED = 1 << 31,
} IdeBuildPhase;
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBuildPipeline, ide_build_pipeline, IDE, BUILD_PIPELINE, IdeObject)
IDE_AVAILABLE_IN_3_28
......
......@@ -31,6 +31,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_STAGE_LAUNCHER (ide_build_stage_launcher_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeBuildStageLauncher, ide_build_stage_launcher, IDE, BUILD_STAGE_LAUNCHER, IdeBuildStage)
struct _IdeBuildStageLauncherClass
......
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_STAGE_MKDIRS (ide_build_stage_mkdirs_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeBuildStageMkdirs, ide_build_stage_mkdirs, IDE, BUILD_STAGE_MKDIRS, IdeBuildStage)
struct _IdeBuildStageMkdirsClass
......
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_STAGE_TRANSFER (ide_build_stage_transfer_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBuildStageTransfer, ide_build_stage_transfer, IDE, BUILD_STAGE_TRANSFER, IdeBuildStage)
IDE_AVAILABLE_IN_ALL
......
......@@ -32,6 +32,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_STAGE (ide_build_stage_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeBuildStage, ide_build_stage, IDE, BUILD_STAGE, IdeObject)
struct _IdeBuildStageClass
......
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_COMPILE_COMMANDS (ide_compile_commands_get_type())
IDE_AVAILABLE_IN_3_28
G_DECLARE_FINAL_TYPE (IdeCompileCommands, ide_compile_commands, IDE, COMPILE_COMMANDS, GObject)
IDE_AVAILABLE_IN_3_28
......
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_ENVIRONMENT_VARIABLE (ide_environment_variable_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeEnvironmentVariable, ide_environment_variable, IDE, ENVIRONMENT_VARIABLE, GObject)
IDE_AVAILABLE_IN_ALL
......
......@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_ENVIRONMENT (ide_environment_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeEnvironment, ide_environment, IDE, ENVIRONMENT, GObject)
IDE_AVAILABLE_IN_ALL
......
......@@ -29,6 +29,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_CONFIGURATION_MANAGER (ide_configuration_manager_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeConfigurationManager, ide_configuration_manager, IDE, CONFIGURATION_MANAGER, IdeObject)
IDE_AVAILABLE_IN_ALL
......
......@@ -29,6 +29,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_CONFIGURATION (ide_configuration_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeConfiguration, ide_configuration, IDE, CONFIGURATION, IdeObject)
typedef enum
......
......@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_DEBUG_MANAGER (ide_debug_manager_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeDebugManager, ide_debug_manager, IDE, DEBUG_MANAGER, IdeObject)
IDE_AVAILABLE_IN_ALL
......
......@@ -29,6 +29,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_DEBUGGER_BREAKPOINT (ide_debugger_breakpoint_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeDebuggerBreakpoint, ide_debugger_breakpoint, IDE, DEBUGGER_BREAKPOINT, GObject)
struct _IdeDebuggerBreakpointClass
......
......@@ -29,6 +29,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_DEBUGGER_BREAKPOINTS (ide_debugger_breakpoints_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeDebuggerBreakpoints, ide_debugger_breakpoints, IDE, DEBUGGER_BREAKPOINTS, GObject)
IDE_AVAILABLE_IN_ALL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment