forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathembedder_resources.h
39 lines (27 loc) · 888 Bytes
/
embedder_resources.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 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_
namespace flutter {
namespace runtime {
struct ResourcesEntry {
const char* path_;
const char* resource_;
int length_;
};
} // namespace runtime
} // namespace flutter
namespace flutter {
class EmbedderResources {
public:
EmbedderResources(flutter::runtime::ResourcesEntry* resources_table);
static const int kNoSuchInstance;
int ResourceLookup(const char* path, const char** resource);
const char* Path(int idx);
private:
flutter::runtime::ResourcesEntry* At(int idx);
flutter::runtime::ResourcesEntry* resources_table_;
};
} // namespace flutter
#endif // FLUTTER_RUNTIME_EMBEDDER_RESOURCES_H_