1*e82f7db8SAndroid Build Coastguard Worker /* 2*e82f7db8SAndroid Build Coastguard Worker * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved. 3*e82f7db8SAndroid Build Coastguard Worker * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*e82f7db8SAndroid Build Coastguard Worker * 5*e82f7db8SAndroid Build Coastguard Worker * This code is free software; you can redistribute it and/or modify it 6*e82f7db8SAndroid Build Coastguard Worker * under the terms of the GNU General Public License version 2 only, as 7*e82f7db8SAndroid Build Coastguard Worker * published by the Free Software Foundation. Oracle designates this 8*e82f7db8SAndroid Build Coastguard Worker * particular file as subject to the "Classpath" exception as provided 9*e82f7db8SAndroid Build Coastguard Worker * by Oracle in the LICENSE file that accompanied this code. 10*e82f7db8SAndroid Build Coastguard Worker * 11*e82f7db8SAndroid Build Coastguard Worker * This code is distributed in the hope that it will be useful, but WITHOUT 12*e82f7db8SAndroid Build Coastguard Worker * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13*e82f7db8SAndroid Build Coastguard Worker * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14*e82f7db8SAndroid Build Coastguard Worker * version 2 for more details (a copy is included in the LICENSE file that 15*e82f7db8SAndroid Build Coastguard Worker * accompanied this code). 16*e82f7db8SAndroid Build Coastguard Worker * 17*e82f7db8SAndroid Build Coastguard Worker * You should have received a copy of the GNU General Public License version 18*e82f7db8SAndroid Build Coastguard Worker * 2 along with this work; if not, write to the Free Software Foundation, 19*e82f7db8SAndroid Build Coastguard Worker * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20*e82f7db8SAndroid Build Coastguard Worker * 21*e82f7db8SAndroid Build Coastguard Worker * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22*e82f7db8SAndroid Build Coastguard Worker * or visit www.oracle.com if you need additional information or have any 23*e82f7db8SAndroid Build Coastguard Worker * questions. 24*e82f7db8SAndroid Build Coastguard Worker */ 25*e82f7db8SAndroid Build Coastguard Worker 26*e82f7db8SAndroid Build Coastguard Worker #ifndef JDWP_DEBUGDISPATCH_H 27*e82f7db8SAndroid Build Coastguard Worker #define JDWP_DEBUGDISPATCH_H 28*e82f7db8SAndroid Build Coastguard Worker 29*e82f7db8SAndroid Build Coastguard Worker /* 30*e82f7db8SAndroid Build Coastguard Worker * Type of all command handler functions. First argument is the 31*e82f7db8SAndroid Build Coastguard Worker * input stream. Second argument is the output sent back to the 32*e82f7db8SAndroid Build Coastguard Worker * originator, but only if JNI_TRUE is returned. If JNI_FALSE 33*e82f7db8SAndroid Build Coastguard Worker * is returned, no reply is made. 34*e82f7db8SAndroid Build Coastguard Worker */ 35*e82f7db8SAndroid Build Coastguard Worker struct PacketInputStream; 36*e82f7db8SAndroid Build Coastguard Worker struct PacketOutputStream; 37*e82f7db8SAndroid Build Coastguard Worker 38*e82f7db8SAndroid Build Coastguard Worker typedef jboolean (*CommandHandler)(struct PacketInputStream *, 39*e82f7db8SAndroid Build Coastguard Worker struct PacketOutputStream *); 40*e82f7db8SAndroid Build Coastguard Worker void debugDispatch_initialize(void); 41*e82f7db8SAndroid Build Coastguard Worker void debugDispatch_reset(void); 42*e82f7db8SAndroid Build Coastguard Worker CommandHandler debugDispatch_getHandler(int cmdSet, int cmd) ; 43*e82f7db8SAndroid Build Coastguard Worker 44*e82f7db8SAndroid Build Coastguard Worker #endif 45