Remove CAIRO_SVG_VERSION_LAST from public header file.

This commit is contained in:
Behdad Esfahbod 2006-06-30 01:29:54 +02:00
parent 6672529541
commit 8860263c6a
2 changed files with 16 additions and 5 deletions

View file

@ -53,12 +53,14 @@ typedef struct cairo_svg_surface cairo_svg_surface_t;
static const int invalid_pattern_id = -1;
static const cairo_svg_version_t _cairo_svg_versions[CAIRO_SVG_VERSION_LAST] =
static const cairo_svg_version_t _cairo_svg_versions[] =
{
CAIRO_SVG_VERSION_1_1,
CAIRO_SVG_VERSION_1_2
};
#define CAIRO_SVG_VERSION_LAST ((int)(sizeof (_cairo_svg_versions) / sizeof (_cairo_svg_versions[0])))
static const char * _cairo_svg_version_strings[CAIRO_SVG_VERSION_LAST] =
{
"SVG 1.1",
@ -317,10 +319,12 @@ cairo_svg_get_versions (cairo_svg_version_t const **versions,
* cairo_svg_version_to_string:
* @version: a version id
*
* Returns the string associated to given @version. This function
* Get the string representation of the given @version id. This function
* will return NULL if @version isn't valid. See cairo_svg_get_versions()
* for a way to get the list of valid version ids.
*
* Return value: the string associated to given version.
*
* Since: 1.2
**/
const char *

View file

@ -38,10 +38,17 @@
CAIRO_BEGIN_DECLS
/**
* cairo_svg_version_t
* @CAIRO_SVG_VERSION_1_1: The version 1.1 of the SVG specification.
* @CAIRO_SVG_VERSION_1_2: The version 1.2 of the SVG specification.
*
* #cairo_svg_version_t is used to describe the version number of the SVG
* specification that a generated SVG file will conform to.
*/
typedef enum {
CAIRO_SVG_VERSION_1_1 = 0,
CAIRO_SVG_VERSION_1_2,
CAIRO_SVG_VERSION_LAST
CAIRO_SVG_VERSION_1_1,
CAIRO_SVG_VERSION_1_2
} cairo_svg_version_t;
cairo_public cairo_surface_t *