Esempio n. 1
0
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;
}
Esempio n. 2
0
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;
}