Refine header inclusion to allow better introspection generation (#2654)

The headers need to be self-contained for the introspection parser
to work correctly. The entry for external users remains vips/vips.h
This commit is contained in:
Corentin Noël 2022-02-15 06:02:07 +01:00 committed by GitHub
parent 1862e7209e
commit 542dd06999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 59 additions and 6 deletions

View File

@ -0,0 +1,7 @@
Object.new_from_string skip
Object.print_summary_class skip
ArgumentClass.object_class skip
class_find skip
ClassMapFn.cls type="void*"
ArgumentClassMapFn.object_class type="void*"
ArgumentTable type="GLib.HashTable<GLib.ParamSpec,Vips.Argument?>"

View File

@ -34,6 +34,9 @@
#ifndef VIPS_ARITHMETIC_H
#define VIPS_ARITHMETIC_H
#include <glib.h>
#include <vips/image.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

View File

@ -31,12 +31,13 @@
#ifndef VIPS_BUF_H
#define VIPS_BUF_H
#include <glib.h>
#include <glib-object.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/
#include <vips/vips.h>
/* A string in the process of being written to ... multiple calls to
* vips_buf_append add to it. On overflow append "..." and block further
* writes.
@ -85,8 +86,8 @@ gboolean vips_buf_appendg( VipsBuf *buf, double g );
gboolean vips_buf_appendd( VipsBuf *buf, int d );
int vips_buf_len( VipsBuf *buf );
#endif /*VIPS_BUF_H*/
#ifdef __cplusplus
}
#endif /*__cplusplus*/
#endif /*VIPS_BUF_H*/

View File

@ -33,6 +33,12 @@
#ifndef VIPS_CONNECTION_H
#define VIPS_CONNECTION_H
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <vips/object.h>
#include <vips/type.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

View File

@ -34,6 +34,10 @@
#ifndef VIPS_DRAW_H
#define VIPS_DRAW_H
#include <glib.h>
#include <glib-object.h>
#include <vips/object.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

View File

@ -32,6 +32,11 @@
#ifndef VIPS_FOREIGN_H
#define VIPS_FOREIGN_H
#include <glib.h>
#include <glib-object.h>
#include <vips/object.h>
#include <vips/operation.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

View File

@ -36,6 +36,13 @@
#ifndef VIPS_IMAGE_H
#define VIPS_IMAGE_H
#include <glib.h>
#include <glib-object.h>
#include <vips/object.h>
#include <vips/connection.h>
#include <vips/rect.h>
#include <vips/region.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

View File

@ -31,6 +31,11 @@
#ifndef VIPS_OBJECT_H
#define VIPS_OBJECT_H
#include <glib.h>
#include <glib-object.h>
#include <vips/buf.h>
#include <vips/basic.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

View File

@ -31,6 +31,12 @@
#ifndef VIPS_OPERATION_H
#define VIPS_OPERATION_H
#include <glib.h>
#include <glib-object.h>
#include <vips/object.h>
#include <vips/buf.h>
#include <vips/basic.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

View File

@ -31,6 +31,8 @@
#ifndef VIPS_RECT_H
#define VIPS_RECT_H
#include <glib.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

View File

@ -36,6 +36,13 @@
#ifndef VIPS_REGION_H
#define VIPS_REGION_H
#include <glib.h>
#include <glib-object.h>
#include <vips/object.h>
#include <vips/image.h>
#include <vips/rect.h>
#include <vips/private.h>
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

View File

@ -1751,7 +1751,7 @@ vips_image_new_mode( const char *filename, const char *mode )
}
/**
* vips_image_new_memory: (constructor)
* vips_image_new_memory: (skip)
*
* vips_image_new_memory() creates a new #VipsImage which, when written to, will
* create a memory image.
@ -2374,7 +2374,7 @@ vips_image_new_matrix_from_array( int width, int height,
}
/**
* vips_image_matrix_from_array: (constructor)
* vips_image_matrix_from_array: (skip)
* @width: image width
* @height: image height
* @array: (array length=size) (transfer none): array of elements