void PyElevateAttributes_StartUp(ElevateAttributes *subj, void *data) { if(subj == 0) return; currentAtts = subj; PyElevateAttributes_SetDefaults(subj); // // Create the observer that will be notified when the attributes change. // if(ElevateAttributesObserver == 0) { ElevateAttributesObserver = new ObserverToCallback(subj, PyElevateAttributes_CallLogRoutine, (void *)data); } }
void ElevateScriptingPluginInfo::SetDefaults(const AttributeSubject *atts) { PyElevateAttributes_SetDefaults((const ElevateAttributes *)atts); }