Frameworks/libpurple.framework/Versions/0.6.2/Headers/version.h
changeset 2592 e8d15275025e
parent 1739 8b0daad9656c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Frameworks/libpurple.framework/Versions/0.6.2/Headers/version.h	Fri Aug 21 13:25:11 2009 -0700
     1.3 @@ -0,0 +1,88 @@
     1.4 +/**
     1.5 + * @file version.h Purple Versioning
     1.6 + *
     1.7 + * purple
     1.8 + *
     1.9 + * Purple is the legal property of its developers, whose names are too numerous
    1.10 + * to list here.  Please refer to the COPYRIGHT file distributed with this
    1.11 + * source distribution.
    1.12 + *
    1.13 + * This program is free software; you can redistribute it and/or modify
    1.14 + * it under the terms of the GNU General Public License as published by
    1.15 + * the Free Software Foundation; either version 2 of the License, or
    1.16 + * (at your option) any later version.
    1.17 + *
    1.18 + * This program is distributed in the hope that it will be useful,
    1.19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.21 + * GNU General Public License for more details.
    1.22 + *
    1.23 + * You should have received a copy of the GNU General Public License
    1.24 + * along with this program; if not, write to the Free Software
    1.25 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
    1.26 + */
    1.27 +#ifndef _PURPLE_VERSION_H_
    1.28 +#define _PURPLE_VERSION_H_
    1.29 +
    1.30 +/** The major version of the running libpurple. */
    1.31 +#define PURPLE_MAJOR_VERSION (2)
    1.32 +/** The minor version of the running libpurple. */
    1.33 +#define PURPLE_MINOR_VERSION (6)
    1.34 +/** The micro version of the running libpurple. */
    1.35 +#define PURPLE_MICRO_VERSION (2)
    1.36 +
    1.37 +#define PURPLE_VERSION_CHECK(x,y,z) ((x) == PURPLE_MAJOR_VERSION && \
    1.38 +									 ((y) < PURPLE_MINOR_VERSION || \
    1.39 +									  ((y) == PURPLE_MINOR_VERSION && (z) <= PURPLE_MICRO_VERSION)))
    1.40 +
    1.41 +#ifdef __cplusplus
    1.42 +extern "C" {
    1.43 +#endif
    1.44 +
    1.45 +/**
    1.46 + * Checks that the libpurple version is compatible with the requested
    1.47 + * version
    1.48 + *
    1.49 + * @param required_major: the required major version.
    1.50 + * @param required_minor: the required minor version.
    1.51 + * @param required_micro: the required micro version.
    1.52 + *
    1.53 + * @return NULL if the versions are compatible, or a string describing
    1.54 + *         the version mismatch if not compatible.
    1.55 + */
    1.56 +const char *purple_version_check(guint required_major, guint required_minor, guint required_micro);
    1.57 +
    1.58 +/**
    1.59 + * The major version of the running libpurple.  Contrast with
    1.60 + * #PURPLE_MAJOR_VERSION, which expands at compile time to the major version of
    1.61 + * libpurple being compiled against.
    1.62 + *
    1.63 + * @since 2.4.0
    1.64 + */
    1.65 +extern const guint purple_major_version;
    1.66 +
    1.67 +/**
    1.68 + * The minor version of the running libpurple.  Contrast with
    1.69 + * #PURPLE_MINOR_VERSION, which expands at compile time to the minor version of
    1.70 + * libpurple being compiled against.
    1.71 + *
    1.72 + * @since 2.4.0
    1.73 + */
    1.74 +extern const guint purple_minor_version;
    1.75 +
    1.76 +/**
    1.77 + *
    1.78 + * The micro version of the running libpurple.  Contrast with
    1.79 + * #PURPLE_MICRO_VERSION, which expands at compile time to the micro version of
    1.80 + * libpurple being compiled against.
    1.81 + *
    1.82 + * @since 2.4.0
    1.83 + */
    1.84 +extern const guint purple_micro_version;
    1.85 +
    1.86 +#ifdef __cplusplus
    1.87 +}
    1.88 +#endif
    1.89 +
    1.90 +#endif /* _PURPLE_VERSION_H_ */
    1.91 +