Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2558041f authored by Ben Wagner's avatar Ben Wagner
Browse files

Typedef font structs

Use the `struct S; typedef struct S S;` pattern in NDK font headers.
This allows these headers to compile in C and matches the pattern used
by other NDK headers.

Change-Id: I912b2a517931eabbf2405f322ee1f5ddb53dd19f
parent 935fb2d6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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.
+2 −1
Original line number Diff line number Diff line
@@ -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.
+2 −1
Original line number Diff line number Diff line
@@ -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.