1d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien/* 2d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * Copyright © 2011 Google, Inc. 3d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * 4d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * This is part of HarfBuzz, a text shaping library. 5d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * 6d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * Permission is hereby granted, without written agreement and without 7d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * license or royalty fees, to use, copy, modify, and distribute this 8d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * software and its documentation for any purpose, provided that the 9d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * above copyright notice and the following two paragraphs appear in 10d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * all copies of this software. 11d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * 12d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 13d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 14d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN 15d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 16d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * DAMAGE. 17d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * 18d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 19d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 21d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 22d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 23d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * 24d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien * Google Author(s): Behdad Esfahbod 25d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien */ 26d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 27d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien#ifndef HB_H_IN 28d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien#error "Include <hb.h> instead." 29d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien#endif 30d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 31d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien#ifndef HB_VERSION_H 32d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien#define HB_VERSION_H 33d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 34d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien#include "hb-common.h" 35d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 36d4351c20574e53bdc38ff62d3e14221c4735c594Raph LevienHB_BEGIN_DECLS 37d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 38d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 398d1e57ae2523769b9ff7e9d1344a256880cb5202Jungshik Shin#define HB_VERSION_MAJOR 1 408d1e57ae2523769b9ff7e9d1344a256880cb5202Jungshik Shin#define HB_VERSION_MINOR 2 41e9f6b1c7f914c87661cecd99f954204a4415e0d4Jungshik Shin#define HB_VERSION_MICRO 6 42d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 43e9f6b1c7f914c87661cecd99f954204a4415e0d4Jungshik Shin#define HB_VERSION_STRING "1.2.6" 44d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 459fe80482a1adfd555ec60b563cd9b6641528d2e2Behdad Esfahbod#define HB_VERSION_ATLEAST(major,minor,micro) \ 469fe80482a1adfd555ec60b563cd9b6641528d2e2Behdad Esfahbod ((major)*10000+(minor)*100+(micro) <= \ 47d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO) 48d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 49d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 508d1e57ae2523769b9ff7e9d1344a256880cb5202Jungshik ShinHB_EXTERN void 51d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levienhb_version (unsigned int *major, 52d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien unsigned int *minor, 53d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien unsigned int *micro); 54d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 558d1e57ae2523769b9ff7e9d1344a256880cb5202Jungshik ShinHB_EXTERN const char * 56d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levienhb_version_string (void); 57d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 588d1e57ae2523769b9ff7e9d1344a256880cb5202Jungshik ShinHB_EXTERN hb_bool_t 599fe80482a1adfd555ec60b563cd9b6641528d2e2Behdad Esfahbodhb_version_atleast (unsigned int major, 609fe80482a1adfd555ec60b563cd9b6641528d2e2Behdad Esfahbod unsigned int minor, 619fe80482a1adfd555ec60b563cd9b6641528d2e2Behdad Esfahbod unsigned int micro); 62d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 63d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 64d4351c20574e53bdc38ff62d3e14221c4735c594Raph LevienHB_END_DECLS 65d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien 66d4351c20574e53bdc38ff62d3e14221c4735c594Raph Levien#endif /* HB_VERSION_H */ 67