• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From 2e6bf149908d61c2b2121dad36f2caef260a2053 Mon Sep 17 00:00:00 2001
2From: Marek Kasik <mkasik@redhat.com>
3Date: May 28 2019 12:56:55 +0000
4Subject: Keep FT_Outline_New_Internal() and FT_Outline_Done_Internal()
5for ABI compatibility but make them just throw
6Unimplemented_Feature error.
7
8Remove them once soname has been bumped!
9
10Resolves: #1689117
11
12Conflict:NA
13Reference:https://src.fedoraproject.org/rpms/freetype/c/2e6bf149908d61c2b2121dad36f2caef260a2053
14
15--- freetype-2.10.0/include/freetype/ftoutln.h
16+++ freetype-2.10.0/include/freetype/ftoutln.h
17@@ -165,6 +165,15 @@ FT_BEGIN_HEADER
18                   FT_Int       numContours,
19                   FT_Outline  *anoutline );
20
21+  /*
22+   * Kept downstream for ABI compatibility only.
23+   * It just throws error now. Remove once soname has been bumped.
24+   */
25+  FT_EXPORT( FT_Error )
26+  FT_Outline_New_Internal( FT_Memory    memory,
27+                           FT_UInt      numPoints,
28+                           FT_Int       numContours,
29+                           FT_Outline  *anoutline );
30
31   /**************************************************************************
32    *
33@@ -192,6 +201,13 @@ FT_BEGIN_HEADER
34   FT_Outline_Done( FT_Library   library,
35                    FT_Outline*  outline );
36
37+  /*
38+   * Kept downstream for ABI compatibility only.
39+   * It just throws error now. Remove once soname has been bumped.
40+   */
41+  FT_EXPORT( FT_Error )
42+  FT_Outline_Done_Internal( FT_Memory    memory,
43+                            FT_Outline*  outline );
44
45   /**************************************************************************
46    *
47--- freetype-2.10.0/src/base/ftoutln.c
48+++ freetype-2.10.0/src/base/ftoutln.c
49@@ -291,6 +291,19 @@
50
51   /* documentation is in ftoutln.h */
52
53+  /*
54+   * Kept downstream for ABI compatibility only.
55+   * It just throws error now. Remove once soname has been bumped.
56+   */
57+  FT_EXPORT_DEF( FT_Error )
58+  FT_Outline_New_Internal( FT_Memory    memory,
59+                           FT_UInt      numPoints,
60+                           FT_Int       numContours,
61+                           FT_Outline  *anoutline )
62+  {
63+    return FT_THROW( Unimplemented_Feature );
64+  }
65+
66   FT_EXPORT_DEF( FT_Error )
67   FT_Outline_New( FT_Library   library,
68                   FT_UInt      numPoints,
69@@ -423,6 +436,17 @@
70
71   /* documentation is in ftoutln.h */
72
73+  /*
74+   * Kept downstream for ABI compatibility only.
75+   * It just throws error now. Remove once soname has been bumped.
76+   */
77+  FT_EXPORT_DEF( FT_Error )
78+  FT_Outline_Done_Internal( FT_Memory    memory,
79+                            FT_Outline*  outline )
80+  {
81+    return FT_THROW( Unimplemented_Feature );
82+  }
83+
84   FT_EXPORT_DEF( FT_Error )
85   FT_Outline_Done( FT_Library   library,
86                    FT_Outline*  outline )
87