app, libgimpbase: also move gimp_cpu_accel_set_use() in a private header.

Similar to previous commit. If we don't want people to use this function
yet need to export it, at least don't expose the declaration in shipped
headers and even less in the API docs.
This commit is contained in:
Jehan 2024-10-17 16:12:04 +02:00
parent f6edf596bf
commit ac1bf4a64e
5 changed files with 35 additions and 4 deletions

View File

@ -44,6 +44,7 @@
#undef GIMP_DISABLE_DEPRECATED /* for compat enums */
#include "libgimpbase/gimpbase.h"
#define GIMP_DISABLE_DEPRECATED
#include "libgimpbase/gimpbase-private.h"
#include "libgimpconfig/gimpconfig.h"
#include "core/core-types.h"

View File

@ -23,6 +23,7 @@
#define __GIMP_BASE_PRIVATE_H__
#include <libgimpbase/gimpcpuaccel-private.h>
#include <libgimpbase/gimpenv-private.h>

View File

@ -0,0 +1,32 @@
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* gimpcpuaccel-private.h
*
* This library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CPU_ACCEL_PRIVATE_H__
#define __GIMP_CPU_ACCEL_PRIVATE_H__
G_BEGIN_DECLS
void gimp_cpu_accel_set_use (gboolean use);
G_END_DECLS
#endif /* __GIMP_CPU_ACCEL_PRIVATE_H__ */

View File

@ -36,6 +36,7 @@
#include <glib.h>
#include "gimpcpuaccel.h"
#include "gimpcpuaccel-private.h"
/**

View File

@ -67,10 +67,6 @@ typedef enum
GimpCpuAccelFlags gimp_cpu_accel_get_support (void);
/* for internal use only */
void gimp_cpu_accel_set_use (gboolean use);
G_END_DECLS
#endif /* __GIMP_CPU_ACCEL_H__ */