michael@0: /* michael@0: * Copyright (C) 2009 The Android Open Source Project michael@0: * michael@0: * Licensed under the Apache License, Version 2.0 (the "License"); michael@0: * you may not use this file except in compliance with the License. michael@0: * You may obtain a copy of the License at michael@0: * michael@0: * http://www.apache.org/licenses/LICENSE-2.0 michael@0: * michael@0: * Unless required by applicable law or agreed to in writing, software michael@0: * distributed under the License is distributed on an "AS IS" BASIS, michael@0: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: * See the License for the specific language governing permissions and michael@0: * limitations under the License. michael@0: */ michael@0: michael@0: #ifndef ANDROID_ANDROID_NATIVES_PRIV_H michael@0: #define ANDROID_ANDROID_NATIVES_PRIV_H michael@0: michael@0: #include michael@0: michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif michael@0: michael@0: /*****************************************************************************/ michael@0: michael@0: typedef struct android_native_buffer_t michael@0: { michael@0: #ifdef __cplusplus michael@0: android_native_buffer_t() { michael@0: common.magic = ANDROID_NATIVE_BUFFER_MAGIC; michael@0: common.version = sizeof(android_native_buffer_t); michael@0: memset(common.reserved, 0, sizeof(common.reserved)); michael@0: } michael@0: #endif michael@0: michael@0: struct android_native_base_t common; michael@0: michael@0: int width; michael@0: int height; michael@0: int stride; michael@0: int format; michael@0: int usage; michael@0: michael@0: void* reserved[2]; michael@0: michael@0: buffer_handle_t handle; michael@0: michael@0: void* reserved_proc[8]; michael@0: } android_native_buffer_t; michael@0: michael@0: michael@0: /*****************************************************************************/ michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: michael@0: /*****************************************************************************/ michael@0: michael@0: #endif /* ANDROID_ANDROID_NATIVES_PRIV_H */