mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
Revert "pdb, libgimp: more #pragma once, and formatting cleanup"
This reverts commit be3597e3c7
.
See https://gitlab.gnome.org/GNOME/gimp/-/issues/14668
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
* <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef __GIMP_MODULE_H__
|
||||
#define __GIMP_MODULE_H__
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <gmodule.h>
|
||||
@@ -34,6 +35,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
/**
|
||||
* GIMP_MODULE_ABI_VERSION:
|
||||
*
|
||||
@@ -126,7 +128,7 @@ struct _GimpModuleInfo
|
||||
*
|
||||
* Returns: The info struct describing the module.
|
||||
**/
|
||||
typedef const GimpModuleInfo * (* GimpModuleQueryFunc) (GTypeModule *module);
|
||||
typedef const GimpModuleInfo * (* GimpModuleQueryFunc) (GTypeModule *module);
|
||||
|
||||
/**
|
||||
* GimpModuleRegisterFunc:
|
||||
@@ -141,7 +143,7 @@ typedef const GimpModuleInfo * (* GimpModuleQueryFunc) (GTypeModule *module);
|
||||
*
|
||||
* Returns: Whether the registration was succesfull
|
||||
**/
|
||||
typedef gboolean (* GimpModuleRegisterFunc) (GTypeModule *module);
|
||||
typedef gboolean (* GimpModuleRegisterFunc) (GTypeModule *module);
|
||||
|
||||
|
||||
/* GimpModules have to implement these */
|
||||
@@ -150,11 +152,7 @@ G_MODULE_EXPORT gboolean gimp_module_register (GTypeModule *module
|
||||
|
||||
|
||||
#define GIMP_TYPE_MODULE (gimp_module_get_type ())
|
||||
G_DECLARE_DERIVABLE_TYPE (GimpModule,
|
||||
gimp_module,
|
||||
GIMP, MODULE,
|
||||
GTypeModule)
|
||||
|
||||
G_DECLARE_DERIVABLE_TYPE (GimpModule, gimp_module, GIMP, MODULE, GTypeModule)
|
||||
|
||||
struct _GimpModuleClass
|
||||
{
|
||||
@@ -195,4 +193,7 @@ const gchar * gimp_module_get_last_error (GimpModule *module);
|
||||
|
||||
gboolean gimp_module_query_module (GimpModule *module);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_MODULE_H__ */
|
||||
|
@@ -16,19 +16,17 @@
|
||||
* <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#if !defined (__GIMP_MODULE_H_INSIDE__) && !defined (GIMP_MODULE_COMPILATION)
|
||||
#error "Only <libgimpmodule/gimpmodule.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#ifndef __GIMP_MODULE_DB_H__
|
||||
#define __GIMP_MODULE_DB_H__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GIMP_TYPE_MODULE_DB (gimp_module_db_get_type ())
|
||||
G_DECLARE_FINAL_TYPE (GimpModuleDB,
|
||||
gimp_module_db,
|
||||
GIMP, MODULE_DB,
|
||||
GObject)
|
||||
#define GIMP_TYPE_MODULE_DB (gimp_module_db_get_type ())
|
||||
G_DECLARE_FINAL_TYPE (GimpModuleDB, gimp_module_db, GIMP, MODULE_DB, GObject)
|
||||
|
||||
|
||||
GimpModuleDB * gimp_module_db_new (gboolean verbose);
|
||||
@@ -46,4 +44,7 @@ void gimp_module_db_load (GimpModuleDB *db,
|
||||
void gimp_module_db_refresh (GimpModuleDB *db,
|
||||
const gchar *module_path);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_MODULE_DB_H__ */
|
||||
|
@@ -16,10 +16,13 @@
|
||||
* <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef __GIMP_MODULE_TYPES_H__
|
||||
#define __GIMP_MODULE_TYPES_H__
|
||||
|
||||
|
||||
#include <libgimpbase/gimpbasetypes.h>
|
||||
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
@@ -29,4 +32,7 @@ typedef struct _GimpModule GimpModule;
|
||||
typedef struct _GimpModuleInfo GimpModuleInfo;
|
||||
typedef struct _GimpModuleDB GimpModuleDB;
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_MODULE_TYPES_H__ */
|
||||
|
Reference in New Issue
Block a user