Skip to content

Commit

Permalink
Add "Version 1.0.0 ends here" comments
Browse files Browse the repository at this point in the history
Add "Version 1.0.0 ends here" comments to the end of the avifImage,
avifDecoder, and avifEncoder structs. New members in future libavif
1.x.y releases should be added to these structs after the "Version 1.0.0
ends here" comments, followed by "Version 1.x.y ends here" comments.
  • Loading branch information
wantehchang authored Aug 23, 2023
1 parent f1f3d92 commit 590c36e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/avif/avif.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ typedef struct avifImage
// Metadata - set with avifImageSetMetadata*() before write, check .size>0 for existence after read
avifRWData exif;
avifRWData xmp;

// Version 1.0.0 ends here. Add any new members after this line.
} avifImage;

// avifImageCreate() and avifImageCreateEmpty() return NULL if arguments are invalid or if a memory allocation failed.
Expand Down Expand Up @@ -1006,6 +1008,8 @@ typedef struct avifDecoder

// Internals used by the decoder
struct avifDecoderData * data;

// Version 1.0.0 ends here. Add any new members after this line.
} avifDecoder;

AVIF_API avifDecoder * avifDecoderCreate(void);
Expand Down Expand Up @@ -1172,6 +1176,8 @@ typedef struct avifEncoder
// Internals used by the encoder
struct avifEncoderData * data;
struct avifCodecSpecificOptions * csOptions;

// Version 1.0.0 ends here. Add any new members after this line.
} avifEncoder;

// avifEncoderCreate() returns NULL if a memory allocation failed.
Expand Down

0 comments on commit 590c36e

Please sign in to comment.