blob: d6082528e1674222070bfcbc990177d121055922 [file] [log] [blame]
// Copyright 2015 The Android Open Source Project
//
// This software is licensed under the terms of the GNU General Public
// License version 2, as published by the Free Software Foundation, and
// may be copied, distributed, and modified under those terms.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
#pragma once
#include <string>
#include <vector>
namespace android {
namespace opengl {
class EmuglBackendScanner {
public:
// Scan |execDir| for sub-directories named like <lib>/gles_<name> where
// <lib> is either 'lib' or 'lib64' depending on current host bitness,
// and <name> is an arbitrary names. Returns a vector of matching <name>
// strings, which will be empty on error.
// If |programBitness| is 0, the this will use the current program
// bitness, otherwise the value must be either 32 or 64.
static std::vector<std::string> scanDir(const char* execDir,
int programBitness = 0);
};
} // namespace opengl
} // namespace android