Commit 2bbdb504 authored by Christian Hergert's avatar Christian Hergert
Browse files

versioning: fix broken versioning macros

Once we start locking down symbol usage, these start breaking.
So lets fix them so we can do do that.
parent 8f6aa476
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_APPLICATION_ADDIN (ide_application_addin_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeApplicationAddin, ide_application_addin, IDE, APPLICATION_ADDIN, GObject)
/**
......
......@@ -16,6 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define G_LOG_DOMAIN "ide-application-tool"
#include "config.h"
#include "application/ide-application-tool.h"
G_DEFINE_INTERFACE (IdeApplicationTool, ide_application_tool, G_TYPE_OBJECT)
......
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_APPLICATION_TOOL (ide_application_tool_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeApplicationTool, ide_application_tool, IDE, APPLICATION_TOOL, GObject)
/**
......
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUFFER_ADDIN (ide_buffer_addin_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeBufferAddin, ide_buffer_addin, IDE, BUFFER_ADDIN, GObject)
struct _IdeBufferAddinInterface
......
buildconfig_headers = [
'ide-buildconfig-configuration.h',
'ide-buildconfig-configuration-provider.h',
]
buildconfig_sources = [
'ide-buildconfig-configuration.c',
'ide-buildconfig-configuration-provider.c',
]
buildconfig_private_sources = [
'ide-buildconfig-configuration-provider.c',
'ide-buildconfig-plugin.c',
'ide-buildconfig-pipeline-addin.c',
'ide-buildconfig-pipeline-addin.h',
......
......@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_PIPELINE_ADDIN (ide_build_pipeline_addin_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeBuildPipelineAddin, ide_build_pipeline_addin, IDE, BUILD_PIPELINE_ADDIN, IdeObject)
struct _IdeBuildPipelineAddinInterface
......
......@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_SYSTEM_DISCOVERY (ide_build_system_discovery_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeBuildSystemDiscovery, ide_build_system_discovery, IDE, BUILD_SYSTEM_DISCOVERY, GObject)
struct _IdeBuildSystemDiscoveryInterface
......
......@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_SYSTEM (ide_build_system_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeBuildSystem, ide_build_system, IDE, BUILD_SYSTEM, IdeObject)
struct _IdeBuildSystemInterface
......
......@@ -25,6 +25,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_TARGET_PROVIDER (ide_build_target_provider_get_type())
IDE_AVAILABLE_IN_3_28
G_DECLARE_INTERFACE (IdeBuildTargetProvider, ide_build_target_provider, IDE, BUILD_TARGET_PROVIDER, IdeObject)
struct _IdeBuildTargetProviderInterface
......
......@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_BUILD_TARGET (ide_build_target_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeBuildTarget, ide_build_target, IDE, BUILD_TARGET, IdeObject)
struct _IdeBuildTargetInterface
......
......@@ -19,11 +19,13 @@
#pragma once
#include "ide-object.h"
#include "ide-version-macros.h"
G_BEGIN_DECLS
#define IDE_TYPE_DEPENDENCY_UPDATER (ide_dependency_updater_get_type ())
IDE_AVAILABLE_IN_3_28
G_DECLARE_INTERFACE (IdeDependencyUpdater, ide_dependency_updater, IDE, DEPENDENCY_UPDATER, IdeObject)
struct _IdeDependencyUpdaterInterface
......@@ -39,10 +41,12 @@ struct _IdeDependencyUpdaterInterface
GError **error);
};
IDE_AVAILABLE_IN_3_28
void ide_dependency_updater_update_async (IdeDependencyUpdater *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
IDE_AVAILABLE_IN_3_28
gboolean ide_dependency_updater_update_finish (IdeDependencyUpdater *self,
GAsyncResult *result,
GError **error);
......
......@@ -16,6 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define G_LOG_DOMAIN "ide-environment-variable"
#include "config.h"
#include "buildsystem/ide-environment-variable.h"
struct _IdeEnvironmentVariable
......
......@@ -16,6 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define G_LOG_DOMAIN "ide-environment"
#include "config.h"
#include "buildsystem/ide-environment.h"
#include "buildsystem/ide-environment-variable.h"
......
......@@ -18,12 +18,14 @@
#pragma once
#include <ide.h>
#include "ide-object.h"
#include "ide-version-macros.h"
G_BEGIN_DECLS
#define IDE_TYPE_SIMPLE_BUILD_TARGET (ide_simple_build_target_get_type())
IDE_AVAILABLE_IN_3_30
G_DECLARE_DERIVABLE_TYPE (IdeSimpleBuildTarget, ide_simple_build_target, IDE, SIMPLE_BUILD_TARGET, IdeObject)
struct _IdeSimpleBuildTargetClass
......@@ -34,17 +36,24 @@ struct _IdeSimpleBuildTargetClass
gpointer _reserved[8];
};
IDE_AVAILABLE_IN_3_30
IdeSimpleBuildTarget *ide_simple_build_target_new (IdeContext *context);
IDE_AVAILABLE_IN_3_30
void ide_simple_build_target_set_install_directory (IdeSimpleBuildTarget *self,
GFile *install_directory);
IDE_AVAILABLE_IN_3_30
void ide_simple_build_target_set_name (IdeSimpleBuildTarget *self,
const gchar *name);
IDE_AVAILABLE_IN_3_30
void ide_simple_build_target_set_priority (IdeSimpleBuildTarget *self,
gint priority);
IDE_AVAILABLE_IN_3_30
void ide_simple_build_target_set_argv (IdeSimpleBuildTarget *self,
const gchar * const *argv);
IDE_AVAILABLE_IN_3_30
void ide_simple_build_target_set_cwd (IdeSimpleBuildTarget *self,
const gchar *cwd);
IDE_AVAILABLE_IN_3_30
void ide_simple_build_target_set_language (IdeSimpleBuildTarget *self,
const gchar *language);
......
......@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_CONFIGURATION_PROVIDER (ide_configuration_provider_get_type ())
IDE_AVAILABLE_IN_3_28
G_DECLARE_INTERFACE (IdeConfigurationProvider, ide_configuration_provider, IDE, CONFIGURATION_PROVIDER, IdeObject)
struct _IdeConfigurationProviderInterface
......
......@@ -21,11 +21,13 @@
#pragma once
#include "ide-object.h"
#include "ide-version-macros.h"
G_BEGIN_DECLS
#define IDE_TYPE_DEPLOY_STRATEGY (ide_deploy_strategy_get_type())
IDE_AVAILABLE_IN_3_28
G_DECLARE_DERIVABLE_TYPE (IdeDeployStrategy, ide_deploy_strategy, IDE, DEPLOY_STRATEGY, IdeObject)
struct _IdeDeployStrategyClass
......@@ -55,14 +57,17 @@ struct _IdeDeployStrategyClass
gpointer _reserved[16];
};
IDE_AVAILABLE_IN_3_28
void ide_deploy_strategy_load_async (IdeDeployStrategy *self,
IdeBuildPipeline *pipeline,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
IDE_AVAILABLE_IN_3_28
gboolean ide_deploy_strategy_load_finish (IdeDeployStrategy *self,
GAsyncResult *result,
GError **error);
IDE_AVAILABLE_IN_3_28
void ide_deploy_strategy_deploy_async (IdeDeployStrategy *self,
IdeBuildPipeline *pipeline,
GFileProgressCallback progress,
......@@ -71,6 +76,7 @@ void ide_deploy_strategy_deploy_async (IdeDeployStrategy *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
IDE_AVAILABLE_IN_3_28
gboolean ide_deploy_strategy_deploy_finish (IdeDeployStrategy *self,
GAsyncResult *result,
GError **error);
......
......@@ -22,6 +22,8 @@
#include <gio/gio.h>
#include "ide-version-macros.h"
G_BEGIN_DECLS
typedef enum
......@@ -34,19 +36,29 @@ typedef enum
#define IDE_TYPE_DEVICE_INFO (ide_device_info_get_type())
IDE_AVAILABLE_IN_3_28
G_DECLARE_FINAL_TYPE (IdeDeviceInfo, ide_device_info, IDE, DEVICE_INFO, GObject)
IDE_AVAILABLE_IN_3_28
IdeDeviceInfo *ide_device_info_new (void);
IDE_AVAILABLE_IN_3_28
IdeDeviceKind ide_device_info_get_kind (IdeDeviceInfo *self);
IDE_AVAILABLE_IN_3_28
void ide_device_info_set_kind (IdeDeviceInfo *self,
IdeDeviceKind kind);
IDE_AVAILABLE_IN_3_28
const gchar *ide_device_info_get_kernel (IdeDeviceInfo *self);
IDE_AVAILABLE_IN_3_28
void ide_device_info_set_kernel (IdeDeviceInfo *self,
const gchar *kernel);
IDE_AVAILABLE_IN_3_28
const gchar *ide_device_info_get_arch (IdeDeviceInfo *self);
IDE_AVAILABLE_IN_3_28
void ide_device_info_set_arch (IdeDeviceInfo *self,
const gchar *arch);
IDE_AVAILABLE_IN_3_28
const gchar *ide_device_info_get_system (IdeDeviceInfo *self);
IDE_AVAILABLE_IN_3_28
void ide_device_info_set_system (IdeDeviceInfo *self,
const gchar *system);
......
......@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_DIAGNOSTIC_PROVIDER (ide_diagnostic_provider_get_type())
IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeDiagnosticProvider, ide_diagnostic_provider, IDE, DIAGNOSTIC_PROVIDER, IdeObject)
struct _IdeDiagnosticProviderInterface
......
......@@ -16,7 +16,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "dazzle.h"
#define G_LOG_DOMAIN "ide-fixit"
#include "config.h"
#include <dazzle.h>
#include "diagnostics/ide-fixit.h"
#include "diagnostics/ide-source-range.h"
......
......@@ -19,18 +19,26 @@
#pragma once
#include "ide-types.h"
#include "ide-version-macros.h"
G_BEGIN_DECLS
#define IDE_TYPE_FIXIT (ide_fixit_get_type())
IDE_AVAILABLE_IN_ALL
IdeFixit *ide_fixit_new (IdeSourceRange *source_range,
const gchar *replacement_text);
IDE_AVAILABLE_IN_ALL
GType ide_fixit_get_type (void);
IDE_AVAILABLE_IN_ALL
IdeFixit *ide_fixit_ref (IdeFixit *self);
IDE_AVAILABLE_IN_ALL
void ide_fixit_unref (IdeFixit *self);
IDE_AVAILABLE_IN_ALL
void ide_fixit_apply (IdeFixit *self);
IDE_AVAILABLE_IN_ALL
const gchar *ide_fixit_get_text (IdeFixit *self);
IDE_AVAILABLE_IN_ALL
IdeSourceRange *ide_fixit_get_range (IdeFixit *self);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeFixit, ide_fixit_unref)
......
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