Files

40 lines
861 B
C++
Raw Permalink Normal View History

2018-11-07 12:24:35 -08:00
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_RUNTIME_EMBEDDER_RESOURCES_H_
#define FLUTTER_RUNTIME_EMBEDDER_RESOURCES_H_
2016-10-28 15:01:07 -07:00
namespace flutter {
namespace runtime {
struct ResourcesEntry {
const char* path_;
const char* resource_;
int length_;
};
2016-10-28 15:01:07 -07:00
} // namespace runtime
} // namespace flutter
namespace flutter {
class EmbedderResources {
public:
EmbedderResources(runtime::ResourcesEntry* resources_table);
static const int kNoSuchInstance;
int ResourceLookup(const char* path, const char** resource);
const char* Path(int idx);
private:
runtime::ResourcesEntry* At(int idx);
runtime::ResourcesEntry* resources_table_;
};
} // namespace flutter
#endif // FLUTTER_RUNTIME_EMBEDDER_RESOURCES_H_