]> git.saurik.com Git - apple/security.git/blob - SecExperiment/SecExperimentInternal.h
Security-59306.41.2.tar.gz
[apple/security.git] / SecExperiment / SecExperimentInternal.h
1 //
2 // SecExperimentInternal.h
3 // Security
4 //
5
6 #ifndef SecExperimentInternal_h
7 #define SecExperimentInternal_h
8
9 #include <Security/SecExperimentPriv.h>
10
11 /*!
12 * @function sec_experiment_run_internal
13 *
14 * @abstract
15 * Asynchronously run an experiment, optionally disabling sampling if desired.
16 *
17 * Note: This function MUST NOT be called outside of tests.
18 *
19 * @param experiment_name
20 * Name of the experiment to run.
21 *
22 * @param sampling_disabled
23 * Flag to disable sampling.
24 *
25 * @param queue
26 * Queue on which to run the experiment.
27 *
28 * @param run_block
29 * A `sec_experiment_run_block_t` block upon which to execute the given experiment.
30 */
31 bool
32 sec_experiment_run_internal(const char *experiment_name, bool sampling_disabled, dispatch_queue_t queue, sec_experiment_run_block_t run_block);
33
34 #endif /* SecExperimentInternal_h */