~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to storage/maria/ma_sp_defs.h

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2006 MySQL AB & Ramil Kalimullin & MySQL Finland AB
 
2
   & TCX DataKonsult AB
 
3
 
 
4
   This program is free software; you can redistribute it and/or modify
 
5
   it under the terms of the GNU General Public License as published by
 
6
   the Free Software Foundation; version 2 of the License.
 
7
 
 
8
   This program is distributed in the hope that it will be useful,
 
9
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
   GNU General Public License for more details.
 
12
 
 
13
   You should have received a copy of the GNU General Public License
 
14
   along with this program; if not, write to the Free Software
 
15
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
16
 
 
17
#ifndef _SP_DEFS_H
 
18
#define _SP_DEFS_H
 
19
 
 
20
#define SPDIMS 2
 
21
#define SPTYPE HA_KEYTYPE_DOUBLE
 
22
#define SPLEN  8
 
23
 
 
24
#ifdef HAVE_SPATIAL
 
25
 
 
26
enum wkbType
 
27
{
 
28
  wkbPoint = 1,
 
29
  wkbLineString = 2,
 
30
  wkbPolygon = 3,
 
31
  wkbMultiPoint = 4,
 
32
  wkbMultiLineString = 5,
 
33
  wkbMultiPolygon = 6,
 
34
  wkbGeometryCollection = 7
 
35
};
 
36
 
 
37
enum wkbByteOrder
 
38
{
 
39
  wkbXDR = 0,    /* Big Endian    */
 
40
  wkbNDR = 1     /* Little Endian */
 
41
};
 
42
 
 
43
MARIA_KEY *_ma_sp_make_key(MARIA_HA *info, MARIA_KEY *ret_key, uint keynr,
 
44
                           uchar *key, const uchar *record, my_off_t filepos,
 
45
                           ulonglong trid);
 
46
 
 
47
#endif /*HAVE_SPATIAL*/
 
48
#endif /* _SP_DEFS_H */