Fix an incorrect call to soup_message_set_request.
[pidgin-git.git] / libpurple / version.c
blobaf142822acbe0fe27577dbecfebfac69c527d93b
1 /* Purple is the legal property of its developers, whose names are too numerous
2 * to list here. Please refer to the COPYRIGHT file distributed with this
3 * source distribution.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
20 #include "internal.h"
22 #include "version.h"
24 const guint purple_major_version = PURPLE_MAJOR_VERSION;
25 const guint purple_minor_version = PURPLE_MINOR_VERSION;
26 const guint purple_micro_version = PURPLE_MICRO_VERSION;
28 const char *purple_version_check(guint required_major, guint required_minor, guint required_micro)
30 if (required_major > PURPLE_MAJOR_VERSION)
31 return "libpurple version too old (major mismatch)";
32 if (required_major < PURPLE_MAJOR_VERSION)
33 return "libpurple version too new (major mismatch)";
34 if (required_minor > PURPLE_MINOR_VERSION)
35 return "libpurple version too old (minor mismatch)";
36 if ((required_minor == PURPLE_MINOR_VERSION) && (required_micro > PURPLE_MICRO_VERSION))
37 return "libpurple version too old (micro mismatch)";
38 return NULL;