mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 996061 - part 1 - add GetEntryNameAt method for typelibs; r=bholley
xpt linking works with two different currencies: UUIDs of interfaces, and names of interfaces. Names are how we support linking in unknown-at-compile-time interfaces at runtime. Since we need to know names to decide whether we have shims for interfaces or not, we need a method for exposing the names.
This commit is contained in:
parent
0c64deb27f
commit
e6d354ac8d
@ -55,3 +55,14 @@ xptiTypelibGuts::GetEntryAt(uint16_t i)
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
const char*
|
||||
xptiTypelibGuts::GetEntryNameAt(uint16_t i)
|
||||
{
|
||||
NS_ASSERTION(mHeader, "bad state");
|
||||
NS_ASSERTION(i < GetEntryCount(), "bad index");
|
||||
|
||||
XPTInterfaceDirectoryEntry* iface = mHeader->interface_directory + i;
|
||||
|
||||
return iface->name;
|
||||
}
|
||||
|
@ -103,6 +103,7 @@ public:
|
||||
}
|
||||
|
||||
xptiInterfaceEntry* GetEntryAt(uint16_t i);
|
||||
const char* GetEntryNameAt(uint16_t i);
|
||||
|
||||
private:
|
||||
xptiTypelibGuts(XPTHeader* aHeader)
|
||||
|
Loading…
Reference in New Issue
Block a user