Add a SetType() function to IPDL unions

NEW
Unassigned

Status

()

Core
IPC
6 years ago
6 years ago

People

(Reporter: Ben Turner (not reading bugmail, use the needinfo flag!), Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

So that you can do things like this:

  IPDLUnion union;
  if (foo) {
    union.setType(IPDLUnion::TFoo);
    // use union.foo()
  }
  else {
    union.setType(IPDLUnion::TBar);
    // use union.bar()
  }
  // use union
You need to log in before you can comment on or make changes to this bug.