11c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine/* 21c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * Copyright 2015 The Android Open Source Project 31c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * 41c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * Licensed under the Apache License, Version 2.0 (the "License"); 51c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * you may not use this file except in compliance with the License. 61c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * You may obtain a copy of the License at 71c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * 81c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * http://www.apache.org/licenses/LICENSE-2.0 91c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * 101c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * Unless required by applicable law or agreed to in writing, software 111c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * distributed under the License is distributed on an "AS IS" BASIS, 121c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 131c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * See the License for the specific language governing permissions and 141c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine * limitations under the License. 151c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine */ 161c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine 171c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine#ifndef VULKAN_VULKAN_LOADER_DATA_H 181c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine#define VULKAN_VULKAN_LOADER_DATA_H 191c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine 201c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine#include <string> 211c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine 2240c07a1d002561fc8db987ec30d890b041fb6336Jesse Hallstruct android_namespace_t; 2340c07a1d002561fc8db987ec30d890b041fb6336Jesse Hall 241c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentinenamespace vulkan { 251c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine struct LoaderData { 261c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine std::string layer_path; 2740c07a1d002561fc8db987ec30d890b041fb6336Jesse Hall android_namespace_t* app_namespace; 2840c07a1d002561fc8db987ec30d890b041fb6336Jesse Hall 291c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine __attribute__((visibility("default"))) static LoaderData& GetInstance(); 301c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine }; 311c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine} 321c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine 331c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine#endif 34