jdk/src/share/javavm/export/jdwpTransport.h
author bae
Tue, 13 Jan 2009 16:55:12 +0300
changeset 2375 bb4dd76ca2c9
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
5082756: Image I/O plug-ins set metadata boolean attributes to "true" or "false" Reviewed-by: igor, prr Contributed-by: Martin von Gagern <martin.vgagern@gmx.net>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 * Java Debug Wire Protocol Transport Service Provider Interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#ifndef JDWPTRANSPORT_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#define JDWPTRANSPORT_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#include "jni.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
enum {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    JDWPTRANSPORT_VERSION_1_0 = 0x00010000
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
#ifdef __cplusplus
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
extern "C" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
struct jdwpTransportNativeInterface_;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
struct _jdwpTransportEnv;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
#ifdef __cplusplus
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
typedef _jdwpTransportEnv jdwpTransportEnv;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
#else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
typedef const struct jdwpTransportNativeInterface_ *jdwpTransportEnv;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
#endif /* __cplusplus */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * Errors. Universal errors with JVMTI/JVMDI equivalents keep the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * values the same.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
typedef enum {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    JDWPTRANSPORT_ERROR_NONE = 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    JDWPTRANSPORT_ERROR_ILLEGAL_ARGUMENT = 103,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    JDWPTRANSPORT_ERROR_OUT_OF_MEMORY = 110,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    JDWPTRANSPORT_ERROR_INTERNAL = 113,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    JDWPTRANSPORT_ERROR_ILLEGAL_STATE = 201,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    JDWPTRANSPORT_ERROR_IO_ERROR = 202,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    JDWPTRANSPORT_ERROR_TIMEOUT = 203,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    JDWPTRANSPORT_ERROR_MSG_NOT_AVAILABLE = 204
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
} jdwpTransportError;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 * Structure to define capabilities
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
typedef struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    unsigned int can_timeout_attach     :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    unsigned int can_timeout_accept     :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    unsigned int can_timeout_handshake  :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    unsigned int reserved3              :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    unsigned int reserved4              :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    unsigned int reserved5              :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    unsigned int reserved6              :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    unsigned int reserved7              :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    unsigned int reserved8              :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    unsigned int reserved9              :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    unsigned int reserved10             :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    unsigned int reserved11             :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    unsigned int reserved12             :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    unsigned int reserved13             :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    unsigned int reserved14             :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    unsigned int reserved15             :1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
} JDWPTransportCapabilities;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
 * Structures to define packet layout.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 * See: http://java.sun.com/j2se/1.5/docs/guide/jpda/jdwp-spec.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
enum {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    JDWPTRANSPORT_FLAGS_NONE     = 0x0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    JDWPTRANSPORT_FLAGS_REPLY    = 0x80
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
typedef struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    jint len;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    jint id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    jbyte flags;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    jbyte cmdSet;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    jbyte cmd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    jbyte *data;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
} jdwpCmdPacket;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
typedef struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    jint len;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    jint id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    jbyte flags;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    jshort errorCode;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    jbyte *data;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
} jdwpReplyPacket;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
typedef struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    union {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        jdwpCmdPacket cmd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        jdwpReplyPacket reply;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    } type;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
} jdwpPacket;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
 * JDWP functions called by the transport.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
typedef struct jdwpTransportCallback {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    void *(*alloc)(jint numBytes);   /* Call this for all allocations */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
    void (*free)(void *buffer);      /* Call this for all deallocations */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
} jdwpTransportCallback;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
typedef jint (JNICALL *jdwpTransport_OnLoad_t)(JavaVM *jvm,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                                               jdwpTransportCallback *callback,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                                               jint version,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                                               jdwpTransportEnv** env);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
/* Function Interface */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
struct jdwpTransportNativeInterface_ {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    /*  1 :  RESERVED */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    void *reserved1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    /*  2 : Get Capabilities */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
    jdwpTransportError (JNICALL *GetCapabilities)(jdwpTransportEnv* env,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
         JDWPTransportCapabilities *capabilities_ptr);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    /*  3 : Attach */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    jdwpTransportError (JNICALL *Attach)(jdwpTransportEnv* env,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        const char* address,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        jlong attach_timeout,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        jlong handshake_timeout);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    /*  4: StartListening */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
    jdwpTransportError (JNICALL *StartListening)(jdwpTransportEnv* env,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        const char* address,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        char** actual_address);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
    /*  5: StopListening */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    jdwpTransportError (JNICALL *StopListening)(jdwpTransportEnv* env);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    /*  6: Accept */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    jdwpTransportError (JNICALL *Accept)(jdwpTransportEnv* env,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
        jlong accept_timeout,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
        jlong handshake_timeout);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
    /*  7: IsOpen */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    jboolean (JNICALL *IsOpen)(jdwpTransportEnv* env);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    /*  8: Close */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    jdwpTransportError (JNICALL *Close)(jdwpTransportEnv* env);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    /*  9: ReadPacket */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    jdwpTransportError (JNICALL *ReadPacket)(jdwpTransportEnv* env,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
        jdwpPacket *pkt);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    /*  10: Write Packet */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    jdwpTransportError (JNICALL *WritePacket)(jdwpTransportEnv* env,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        const jdwpPacket* pkt);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    /*  11:  GetLastError */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    jdwpTransportError (JNICALL *GetLastError)(jdwpTransportEnv* env,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        char** error);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
 * Use inlined functions so that C++ code can use syntax such as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
 *      env->Attach("mymachine:5000", 10*1000, 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
 * rather than using C's :-
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
 *      (*env)->Attach(env, "mymachine:5000", 10*1000, 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
struct _jdwpTransportEnv {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    const struct jdwpTransportNativeInterface_ *functions;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
#ifdef __cplusplus
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
    jdwpTransportError GetCapabilities(JDWPTransportCapabilities *capabilities_ptr) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        return functions->GetCapabilities(this, capabilities_ptr);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    jdwpTransportError Attach(const char* address, jlong attach_timeout,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
                jlong handshake_timeout) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        return functions->Attach(this, address, attach_timeout, handshake_timeout);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    jdwpTransportError StartListening(const char* address,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                char** actual_address) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
        return functions->StartListening(this, address, actual_address);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    jdwpTransportError StopListening(void) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
        return functions->StopListening(this);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    jdwpTransportError Accept(jlong accept_timeout, jlong handshake_timeout) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
        return functions->Accept(this, accept_timeout, handshake_timeout);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    jboolean IsOpen(void) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        return functions->IsOpen(this);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    jdwpTransportError Close(void) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        return functions->Close(this);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    jdwpTransportError ReadPacket(jdwpPacket *pkt) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
        return functions->ReadPacket(this, pkt);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    jdwpTransportError WritePacket(const jdwpPacket* pkt) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
        return functions->WritePacket(this, pkt);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
    jdwpTransportError GetLastError(char** error) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
        return functions->GetLastError(this, error);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
#endif /* __cplusplus */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
#ifdef __cplusplus
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
} /* extern "C" */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
#endif /* __cplusplus */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
#endif /* JDWPTRANSPORT_H */