summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ben Wagner <bungeman@google.com> 2022-11-02 14:14:41 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-11-02 14:14:41 +0000
commitd3819acc71e4f3042eb2719af134a5b6d6800cb7 (patch)
tree24e4d32cf7c61351b91c0e9d2be51da0e9763380
parentdbcf33b4ab879c3a98b07e171458016b3389c8e2 (diff)
parent2558041f7153f9c4c5598250b573da26793c2652 (diff)
Merge "Typedef font structs"
-rw-r--r--include/android/font.h3
-rw-r--r--include/android/font_matcher.h3
-rw-r--r--include/android/system_fonts.h3
3 files changed, 6 insertions, 3 deletions
diff --git a/include/android/font.h b/include/android/font.h
index 45eb81a533..022572535b 100644
--- a/include/android/font.h
+++ b/include/android/font.h
@@ -87,10 +87,11 @@ enum {
AFONT_WEIGHT_MAX = 1000
};
+struct AFont;
/**
* AFont provides information of the single font configuration.
*/
-struct AFont;
+typedef struct AFont AFont;
/**
* Close an AFont.
diff --git a/include/android/font_matcher.h b/include/android/font_matcher.h
index 63b0328749..60ff95e123 100644
--- a/include/android/font_matcher.h
+++ b/include/android/font_matcher.h
@@ -117,11 +117,12 @@ enum {
AFAMILY_VARIANT_ELEGANT = 2,
};
+struct AFontMatcher;
/**
* AFontMatcher performs match operation on given parameters and available font files.
* This matcher is not a thread-safe object. Do not pass this matcher to other threads.
*/
-struct AFontMatcher;
+typedef struct AFontMatcher AFontMatcher;
/**
* Select the best font from given parameters.
diff --git a/include/android/system_fonts.h b/include/android/system_fonts.h
index b0bbb954a9..94484eaf54 100644
--- a/include/android/system_fonts.h
+++ b/include/android/system_fonts.h
@@ -87,13 +87,14 @@
__BEGIN_DECLS
+struct ASystemFontIterator;
/**
* ASystemFontIterator provides access to the system font configuration.
*
* ASystemFontIterator is an iterator for all available system font settings.
* This iterator is not a thread-safe object. Do not pass this iterator to other threads.
*/
-struct ASystemFontIterator;
+typedef struct ASystemFontIterator ASystemFontIterator;
/**
* Create a system font iterator.