Frameworks/libpurple.framework/Versions/0.6.2/Headers/version.h
author Zachary West <zacw@adium.im>
Fri Aug 21 13:25:11 2009 -0700 (2009-08-21)
changeset 2592 e8d15275025e
parent 1739 Frameworks/libpurple.framework/Versions/0.6.0/Headers/version.h@8b0daad9656c
permissions -rw-r--r--
im.pidgin.adium.1-4 at 267c6165e02e34318a1823960bd04c0639952f73
Evan@653
     1
/**
Evan@653
     2
 * @file version.h Purple Versioning
Evan@653
     3
 *
Evan@653
     4
 * purple
Evan@653
     5
 *
Evan@653
     6
 * Purple is the legal property of its developers, whose names are too numerous
Evan@653
     7
 * to list here.  Please refer to the COPYRIGHT file distributed with this
Evan@653
     8
 * source distribution.
Evan@653
     9
 *
Evan@653
    10
 * This program is free software; you can redistribute it and/or modify
Evan@653
    11
 * it under the terms of the GNU General Public License as published by
Evan@653
    12
 * the Free Software Foundation; either version 2 of the License, or
Evan@653
    13
 * (at your option) any later version.
Evan@653
    14
 *
Evan@653
    15
 * This program is distributed in the hope that it will be useful,
Evan@653
    16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Evan@653
    17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Evan@653
    18
 * GNU General Public License for more details.
Evan@653
    19
 *
Evan@653
    20
 * You should have received a copy of the GNU General Public License
Evan@653
    21
 * along with this program; if not, write to the Free Software
Evan@653
    22
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
Evan@653
    23
 */
Evan@653
    24
#ifndef _PURPLE_VERSION_H_
Evan@653
    25
#define _PURPLE_VERSION_H_
Evan@653
    26
Evan@1427
    27
/** The major version of the running libpurple. */
Evan@653
    28
#define PURPLE_MAJOR_VERSION (2)
Evan@1427
    29
/** The minor version of the running libpurple. */
Evan@1427
    30
#define PURPLE_MINOR_VERSION (6)
Evan@1427
    31
/** The micro version of the running libpurple. */
zacw@2592
    32
#define PURPLE_MICRO_VERSION (2)
Evan@653
    33
Evan@653
    34
#define PURPLE_VERSION_CHECK(x,y,z) ((x) == PURPLE_MAJOR_VERSION && \
Evan@653
    35
									 ((y) < PURPLE_MINOR_VERSION || \
Evan@653
    36
									  ((y) == PURPLE_MINOR_VERSION && (z) <= PURPLE_MICRO_VERSION)))
Evan@653
    37
Evan@653
    38
#ifdef __cplusplus
Evan@653
    39
extern "C" {
Evan@653
    40
#endif
Evan@653
    41
Evan@653
    42
/**
Evan@653
    43
 * Checks that the libpurple version is compatible with the requested
Evan@653
    44
 * version
Evan@653
    45
 *
Evan@653
    46
 * @param required_major: the required major version.
Evan@653
    47
 * @param required_minor: the required minor version.
Evan@653
    48
 * @param required_micro: the required micro version.
Evan@653
    49
 *
Evan@653
    50
 * @return NULL if the versions are compatible, or a string describing
Evan@653
    51
 *         the version mismatch if not compatible.
Evan@653
    52
 */
Evan@653
    53
const char *purple_version_check(guint required_major, guint required_minor, guint required_micro);
Evan@653
    54
Evan@653
    55
/**
Evan@653
    56
 * The major version of the running libpurple.  Contrast with
Evan@653
    57
 * #PURPLE_MAJOR_VERSION, which expands at compile time to the major version of
Evan@653
    58
 * libpurple being compiled against.
Evan@653
    59
 *
Evan@653
    60
 * @since 2.4.0
Evan@653
    61
 */
Evan@653
    62
extern const guint purple_major_version;
Evan@653
    63
Evan@653
    64
/**
Evan@653
    65
 * The minor version of the running libpurple.  Contrast with
Evan@653
    66
 * #PURPLE_MINOR_VERSION, which expands at compile time to the minor version of
Evan@653
    67
 * libpurple being compiled against.
Evan@653
    68
 *
Evan@653
    69
 * @since 2.4.0
Evan@653
    70
 */
Evan@653
    71
extern const guint purple_minor_version;
Evan@653
    72
Evan@653
    73
/**
Evan@653
    74
 *
Evan@653
    75
 * The micro version of the running libpurple.  Contrast with
Evan@653
    76
 * #PURPLE_MICRO_VERSION, which expands at compile time to the micro version of
Evan@653
    77
 * libpurple being compiled against.
Evan@653
    78
 *
Evan@653
    79
 * @since 2.4.0
Evan@653
    80
 */
Evan@653
    81
extern const guint purple_micro_version;
Evan@653
    82
Evan@653
    83
#ifdef __cplusplus
Evan@653
    84
}
Evan@653
    85
#endif
Evan@653
    86
Evan@653
    87
#endif /* _PURPLE_VERSION_H_ */
Evan@653
    88