~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/core/spatialite/headers/spatialite/gaiaaux.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 gaiaaux.h -- Gaia common utility functions
 
3
  
 
4
 version 2.4, 2009 September 17
 
5
 
 
6
 Author: Sandro Furieri a.furieri@lqt.it
 
7
 
 
8
 ------------------------------------------------------------------------------
 
9
 
 
10
 Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
11
 
 
12
 The contents of this file are subject to the Mozilla Public License Version
 
13
 1.1 (the "License"); you may not use this file except in compliance with
 
14
 the License. You may obtain a copy of the License at
 
15
 http://www.mozilla.org/MPL/
 
16
 
 
17
Software distributed under the License is distributed on an "AS IS" basis,
 
18
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
19
for the specific language governing rights and limitations under the
 
20
License.
 
21
 
 
22
The Original Code is the SpatiaLite library
 
23
 
 
24
The Initial Developer of the Original Code is Alessandro Furieri
 
25
 
 
26
Portions created by the Initial Developer are Copyright (C) 2008
 
27
the Initial Developer. All Rights Reserved.
 
28
 
 
29
Contributor(s):
 
30
 
 
31
Alternatively, the contents of this file may be used under the terms of
 
32
either the GNU General Public License Version 2 or later (the "GPL"), or
 
33
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
34
in which case the provisions of the GPL or the LGPL are applicable instead
 
35
of those above. If you wish to allow use of your version of this file only
 
36
under the terms of either the GPL or the LGPL, and not to allow others to
 
37
use your version of this file under the terms of the MPL, indicate your
 
38
decision by deleting the provisions above and replace them with the notice
 
39
and other provisions required by the GPL or the LGPL. If you do not delete
 
40
the provisions above, a recipient may use your version of this file under
 
41
the terms of any one of the MPL, the GPL or the LGPL.
 
42
 
 
43
*/
 
44
 
 
45
#ifdef DLL_EXPORT
 
46
#define GAIAAUX_DECLARE __declspec(dllexport)
 
47
#else
 
48
#define GAIAAUX_DECLARE extern
 
49
#endif
 
50
 
 
51
#ifndef _GAIAAUX_H
 
52
#define _GAIAAUX_H
 
53
 
 
54
#ifdef __cplusplus
 
55
extern "C"
 
56
{
 
57
#endif
 
58
 
 
59
/* function prototipes */
 
60
 
 
61
    GAIAAUX_DECLARE const char *gaiaGetLocaleCharset ();
 
62
    GAIAAUX_DECLARE int gaiaConvertCharset (char **buf, const char *fromCs,
 
63
                                            const char *toCs);
 
64
    GAIAAUX_DECLARE int gaiaToUTF8 (char **buf, const char *fromCs,
 
65
                                    const char *toCs);
 
66
    GAIAAUX_DECLARE void *gaiaCreateUTF8Converter (const char *fromCS);
 
67
    GAIAAUX_DECLARE void gaiaFreeUTF8Converter (void *cvtCS);
 
68
    GAIAAUX_DECLARE char *gaiaConvertToUTF8 (void *cvtCS, const char *buf,
 
69
                                             int len, int *err);
 
70
    GAIAAUX_DECLARE int gaiaIsReservedSqliteName (const char *name);
 
71
    GAIAAUX_DECLARE int gaiaIsReservedSqlName (const char *name);
 
72
    GAIAAUX_DECLARE int gaiaIllegalSqlName (const char *name);
 
73
    GAIAAUX_DECLARE void gaiaCleanSqlString (char *value);
 
74
 
 
75
#ifdef __cplusplus
 
76
}
 
77
#endif
 
78
 
 
79
#endif                          /* _GAIAAUX_H */