1ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes/* 2ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * Copyright (C) 2011 The Android Open Source Project 3ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * 4ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * Licensed under the Apache License, Version 2.0 (the "License"); 5ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * you may not use this file except in compliance with the License. 6ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * You may obtain a copy of the License at 7ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * 8ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * http://www.apache.org/licenses/LICENSE-2.0 9ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * 10ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * Unless required by applicable law or agreed to in writing, software 11ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * distributed under the License is distributed on an "AS IS" BASIS, 12ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * See the License for the specific language governing permissions and 14ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes * limitations under the License. 15ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes */ 16ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes 17ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes#include "jni.h" 18ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes 19ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughesclass ExecStrings { 20ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes public: 21ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes ExecStrings(JNIEnv* env, jobjectArray java_string_array); 22ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes 23ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes ~ExecStrings(); 24ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes 25ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes char** get(); 26ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes 27ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes private: 28ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes JNIEnv* env_; 29ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes jobjectArray java_array_; 30ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes char** array_; 31ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes 32ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes // Disallow copy and assignment. 33ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes ExecStrings(const ExecStrings&); 34ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes void operator=(const ExecStrings&); 35ad9208affa02f92a6b85354a33123d51d80febe1Elliott Hughes}; 36