[cig-commits] commit: Merging.
Mercurial
hg at geodynamics.org
Mon Feb 1 15:32:23 PST 2010
changeset: 709:1fc1bc940ffb
branch: pcu_rejig
parent: 708:23ed4f75f8fd
parent: 703:4c7f2f54a402
user: JericoRevote
date: Fri Dec 04 17:09:04 2009 +1100
files: Base/Automation/src/Stg_ComponentFactory.c Base/Automation/src/Stg_ComponentFactory.h
description:
Merging.
diff -r 23ed4f75f8fd -r 1fc1bc940ffb Base/Automation/src/Stg_ComponentFactory.c
--- a/Base/Automation/src/Stg_ComponentFactory.c Fri Dec 04 17:06:33 2009 +1100
+++ b/Base/Automation/src/Stg_ComponentFactory.c Fri Dec 04 17:09:04 2009 +1100
@@ -905,6 +905,12 @@ int Stg_ComponentFactory_PluginGetInt( v
Dictionary_Entry_Value_FromInt( defaultVal )));
}
+Bool Stg_ComponentFactory_PluginGetBool( void* cf, void *codelet, Dictionary_Entry_Key key, Bool defaultVal ) {
+ return Dictionary_Entry_Value_AsBool(
+ _Stg_ComponentFactory_PluginGetDictionaryValue( cf, codelet, key,
+ Dictionary_Entry_Value_FromBool( defaultVal ) ) );
+}
+
Stg_Component* _Stg_ComponentFactory_ConstructByNameWithKeyFallback(
void* cf,
Name parentComponentName,
diff -r 23ed4f75f8fd -r 1fc1bc940ffb Base/Automation/src/Stg_ComponentFactory.h
--- a/Base/Automation/src/Stg_ComponentFactory.h Fri Dec 04 17:06:33 2009 +1100
+++ b/Base/Automation/src/Stg_ComponentFactory.h Fri Dec 04 17:09:04 2009 +1100
@@ -290,6 +290,8 @@
int Stg_ComponentFactory_PluginGetInt( void* cf, void *codelet, Dictionary_Entry_Key key, int defaultVal );
+ Bool Stg_ComponentFactory_PluginGetBool( void* cf, void *codelet, Dictionary_Entry_Key key, Bool defaultVal );
+
#define Stg_ComponentFactory_ConstructByNameWithKeyFallback( \
cf, parentComponentName, componentTrialName, componentFallbackKey, type, isEssential, data ) \
(type*) ( (Stg_ComponentFactory*) cf )->constructByNameWithKeyFallback( \
More information about the CIG-COMMITS
mailing list