1/*---------------------------------------------------------------------------* 2 * srec_test_config.c * 3 * * 4 * Copyright 2007, 2008 Nuance Communciations, Inc. * 5 * * 6 * Licensed under the Apache License, Version 2.0 (the 'License'); * 7 * you may not use this file except in compliance with the License. * 8 * * 9 * You may obtain a copy of the License at * 10 * http://www.apache.org/licenses/LICENSE-2.0 * 11 * * 12 * Unless required by applicable law or agreed to in writing, software * 13 * distributed under the License is distributed on an 'AS IS' BASIS, * 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 15 * See the License for the specific language governing permissions and * 16 * limitations under the License. * 17 * * 18 *---------------------------------------------------------------------------*/ 19 20#include "srec_test_config.h" 21 22static unsigned int num_test_shutdown_times = 1; /* Number of times to shutdown and restart during test */ 23static unsigned int num_test_continuous_loops = 1; /* Number of loops to run between start and shutdown */ 24 25 26 27int get_num_srec_test_shutdown_times ( unsigned int *shutdown_times ) 28 { 29 int get_status; 30 31 *shutdown_times = num_test_shutdown_times; 32 get_status = 0; 33 34 return ( get_status ); 35 } 36 37 38 39int set_num_srec_test_shutdown_times ( unsigned int shutdown_times ) 40 { 41 int set_status; 42 43 num_test_shutdown_times = shutdown_times; 44 set_status = 0; 45 46 return ( set_status ); 47 } 48 49 50 51int get_num_srec_test_continuous_loops ( unsigned int *continuous_loops ) 52 { 53 int get_status; 54 55 *continuous_loops = num_test_continuous_loops; 56 get_status = 0; 57 58 return ( get_status ); 59 } 60 61 62 63int set_num_srec_test_continuous_loops ( unsigned int continuous_loops ) 64 { 65 int set_status; 66 67 num_test_continuous_loops = continuous_loops; 68 set_status = 0; 69 70 return ( set_status ); 71 } 72 73