mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 19:18:12 +02:00
[boilerplate] Add cairo_boilerplate_version[_string]() functions
This commit is contained in:
parent
a7951081f1
commit
7e45937e21
2 changed files with 24 additions and 0 deletions
|
|
@ -24,6 +24,8 @@
|
|||
* Author: Carl D. Worth <cworth@cworth.org>
|
||||
*/
|
||||
|
||||
#define CAIRO_VERSION_H 1
|
||||
|
||||
#include "cairo-boilerplate.h"
|
||||
#include "cairo-boilerplate-scaled-font.h"
|
||||
|
||||
|
|
@ -64,6 +66,10 @@
|
|||
#include <cairo-types-private.h>
|
||||
#include <cairo-scaled-font-private.h>
|
||||
|
||||
/* get the "real" version info instead of dummy cairo-version.h */
|
||||
#undef CAIRO_VERSION_H
|
||||
#include "../cairo-version.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <assert.h>
|
||||
|
|
@ -796,3 +802,15 @@ FAIL:
|
|||
cairo_surface_destroy (image);
|
||||
return cairo_boilerplate_surface_create_in_error (CAIRO_STATUS_READ_ERROR);
|
||||
}
|
||||
|
||||
int
|
||||
cairo_boilerplate_version (void)
|
||||
{
|
||||
return CAIRO_VERSION;
|
||||
}
|
||||
|
||||
const char*
|
||||
cairo_boilerplate_version_string (void)
|
||||
{
|
||||
return CAIRO_VERSION_STRING;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,6 +181,12 @@ cairo_boilerplate_open_any2ppm (const char *filename,
|
|||
cairo_surface_t *
|
||||
cairo_boilerplate_image_surface_create_from_ppm_stream (FILE *file);
|
||||
|
||||
int
|
||||
cairo_boilerplate_version (void);
|
||||
|
||||
const char*
|
||||
cairo_boilerplate_version_string (void);
|
||||
|
||||
#include "xmalloc.h"
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue