MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adfChgEnvProp

Function adfChgEnvProp

dep/adflib/src/adf_env.c:169–210  ·  view source on GitHub ↗

* adfChgEnvProp * */

Source from the content-addressed store, hash-verified

167 *
168 */
169void adfChgEnvProp(int prop, void *newval)
170{
171 BOOL *newBool;
172/* int *newInt;*/
173
174 switch(prop) {
175 case PR_VFCT:
176 *(void **) (&adfEnv.vFct) = newval;
177 break;
178 case PR_WFCT:
179 *(void **) (&adfEnv.wFct) = newval;
180 break;
181 case PR_EFCT:
182 *(void **) (&adfEnv.eFct) = newval;
183 break;
184 case PR_NOTFCT:
185 *(void **) (&adfEnv.notifyFct) = newval;
186 break;
187 case PR_USE_NOTFCT:
188 newBool = (BOOL*)newval;
189 adfEnv.useNotify = *newBool;
190 break;
191 case PR_PROGBAR:
192 *(void **) (&adfEnv.progressBar) = newval;
193 break;
194 case PR_USE_PROGBAR:
195 newBool = (BOOL*)newval;
196 adfEnv.useProgressBar = *newBool;
197 break;
198 case PR_USE_RWACCESS:
199 newBool = (BOOL*)newval;
200 adfEnv.useRWAccess = *newBool;
201 break;
202 case PR_RWACCESS:
203 *(void **) (&adfEnv.rwhAccess) = newval;
204 break;
205 case PR_USEDIRC:
206 newBool = (BOOL*)newval;
207 adfEnv.useDirCache = *newBool;
208 break;
209 }
210}
211
212/*
213 * adfSetEnv

Callers 1

adfInitNativeFctFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected