Drizzled Public API Documentation

version_ms.h

00001 /* Copyright (C) 2010 PrimeBase Technologies GmbH, Germany
00002  *
00003  * PrimeBase Media Stream Daemon
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00018  *
00019  * Author: Barry Leslie
00020  *
00021  */
00022 #pragma once
00023 #ifndef __PBMS_VERSION_H__
00024 #define __PBMS_VERSION_H__
00025 
00026 // In the MySQL build the version number is set in configure.in AM_INIT_AUTOMAKE()
00027 // In the drizzle build it is set in plugin.in
00028 
00029 #ifndef PBMS_VERSION
00030 #define PBMS_VERSION 0.5.14-betaxx
00031 #endif
00032 
00033 #define _PBMSSTR(x) #x
00034 #define PBMSSTR(x) _PBMSSTR(x)
00035 
00036 class PBMSVersion
00037 {
00038 public:
00039   static const char *getCString() { return PBMSSTR(PBMS_VERSION); }
00040 };
00041 
00042 #endif // __PBMS_VERSION_H__