FakeSMCKey *FakeSMCKey::withHandler(const char *aKey, const char *aType, unsigned char aSize, IOService *aHandler) { FakeSMCKey *me = new FakeSMCKey; if (me && !me->init(aKey, aType, aSize, 0, aHandler)) { me->release(); return 0; } return me; }
FakeSMCKey *FakeSMCKey::withValue(const char *aKey, const char *aType, unsigned char aSize, const void *aValue) { FakeSMCKey *me = new FakeSMCKey; if (me && !me->init(aKey, aType, aSize, aValue)) { me->release(); return 0; } return me; }