2
Copyright 2010 Sun Microsystems, Inc.
3
All rights reserved. Use is subject to license terms.
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; version 2 of the License.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
#ifndef mgmapi_jtie_hpp
23
#define mgmapi_jtie_hpp
25
// API to implement against
27
//#include "mgmapi_config_parameters.h"
28
//#include "mgmapi_debug.h"
29
//#include "mgmapi_error.h"
30
//#include "ndb_logevent.h"
31
//#include "ndbd_exit_codes.h"
34
#include "ndbjtie_defs.hpp"
35
#include "helpers.hpp"
38
// ---------------------------------------------------------------------------
39
// MGMAPI JTie Type Definitions
40
// ---------------------------------------------------------------------------
42
// ---------------------------------------------------------------------------
43
// MGMAPI JTie Function Stubs
44
// ---------------------------------------------------------------------------
46
// The API stub functions in this file have mangled names that adhere
47
// to the JVM specification. It is not necessary to include the
48
// function prototypes generated by the javah tool from the Java source,
49
// if they are declared to receive "C" linkage here.
52
// A javah bug in JDK 5
53
// http://forums.sun.com/thread.jspa?threadID=5115982&tstart=1499
54
// generates a wrong name for native methods in static nested classes:
56
// JDK 6 has this bug only partially fixed (nested classes as invocation
57
// targets but not as parameters).
59
// Outer$Inner is to be mangled as unicode escape: Outer_00024Inner, see:
60
// http://java.sun.com/javase/6/docs/technotes/guides/jni/spec/design.html#wp615]Resolving%20Native%20Method%20Names
62
// ---------------------------------------------------------------------------
64
// ---------------------------------------------------------------------------
68
#endif // mgmapi_jtie_hpp