blob: 63a2d940dbea3d5619e8f1a5a6c2a07364634bad [file] [log] [blame]
robert.swiecki3bb518c2010-10-14 00:48:24 +00001/*
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +00002 *
robert.swiecki@gmail.com90e99112015-02-15 02:05:14 +00003 * honggfuzz - fuzzing routines
4 * -----------------------------------------
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +00005 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +00006 * Author: Robert Swiecki <swiecki@google.com>
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +00007 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +00008 * Copyright 2010-2015 by Google Inc. All Rights Reserved.
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +00009 *
10 * Licensed under the Apache License, Version 2.0 (the "License"); you may
11 * not use this file except in compliance with the License. You may obtain
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +000012 * a copy of the License at
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +000013 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +000014 * http://www.apache.org/licenses/LICENSE-2.0
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +000015 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +000016 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19 * implied. See the License for the specific language governing
20 * permissions and limitations under the License.
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +000021 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +000022 */
robert.swiecki3bb518c2010-10-14 00:48:24 +000023
Jagger876a74c2016-02-09 22:09:11 +010024#ifndef _HF_FUZZ_H_
25#define _HF_FUZZ_H_
robert.swiecki3bb518c2010-10-14 00:48:24 +000026
Robert Swiecki33fb2842017-02-19 05:39:50 +010027#include <pthread.h>
28
Robert Swiecki10eeb0a2017-09-28 15:42:52 +020029#include "honggfuzz.h"
30
Robert Swiecki4e595fb2017-10-11 17:26:51 +020031extern void fuzz_threadsStart(honggfuzz_t* fuzz, pthread_t* threads);
32extern void fuzz_threadsStop(honggfuzz_t* fuzz, pthread_t* threads);
Robert Swiecki0dde76d2017-11-16 19:25:44 +010033extern bool fuzz_isTerminating(void);
34extern void fuzz_setTerminating(void);
35extern bool fuzz_shouldTerminate(void);
robert.swiecki3bb518c2010-10-14 00:48:24 +000036
37#endif