~tmaesaka/blitzdb/trunk

« back to all changes in this revision

Viewing changes to plugin/pbms/src/version_ms.h

  • Committer: Toru Maesaka
  • Date: 2010-07-12 11:37:28 UTC
  • mfrom: (1239.17.414 build)
  • Revision ID: dev@torum.net-20100712113728-4caz8432lc44f18r
Merged Drizzle's Trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2010 PrimeBase Technologies GmbH, Germany
 
2
 *
 
3
 * PrimeBase Media Stream Daemon
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
18
 *
 
19
 * Author: Barry Leslie
 
20
 *
 
21
 */
 
22
#ifndef __PBMS_VERSION_H__
 
23
#define __PBMS_VERSION_H__
 
24
 
 
25
// In the MySQL build the version number is set in configure.in AM_INIT_AUTOMAKE()
 
26
// In the drizzle build it is set in plugin.in
 
27
 
 
28
#ifndef PBMS_VERSION
 
29
#define PBMS_VERSION 0.5.14-betaxx
 
30
#endif
 
31
 
 
32
#define _PBMSSTR(x) #x
 
33
#define PBMSSTR(x) _PBMSSTR(x)
 
34
 
 
35
class PBMSVersion
 
36
{
 
37
public:
 
38
        static const char *getCString() { return PBMSSTR(PBMS_VERSION); }
 
39
};
 
40
 
 
41
#endif // __PBMS_VERSION_H__