summaryrefslogtreecommitdiff
path: root/ioreplay/src/init/init.h
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2018-03-06 17:38:59 +0000
committerPaul Buetow <pbuetow@mimecast.com>2018-03-06 17:38:59 +0000
commit26b3b3e368a79ce29df732ea04e72a4c002ae2ce (patch)
treee3fc8d7461ab371279f7bf9c692096cd39cc92f6 /ioreplay/src/init/init.h
parentae2221660f9b411fa78cdf8034f0803e9a870cde (diff)
rename into ioriot
Diffstat (limited to 'ioreplay/src/init/init.h')
-rw-r--r--ioreplay/src/init/init.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/ioreplay/src/init/init.h b/ioreplay/src/init/init.h
deleted file mode 100644
index 3d9f9e9..0000000
--- a/ioreplay/src/init/init.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2018 Mimecast Ltd.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#ifndef INIT_H
-#define INIT_H
-
-#include "../defaults.h"
-#include "../options.h"
-#include "../datas/amap.h"
-#include "../datas/rbuffer.h"
-#include "../mounts.h"
-
-typedef struct init_s_ {
- amap_s *threads_map;
- rbuffer_s *reuse_queue;
- options_s *opts;
- mounts_s *mounts;
- FILE *replay_fd;
- pthread_mutex_t reuse_queue_mutex;
-} init_s;
-
-/**
- * @brief Creates a new init object
- *
- * @param opts The options object
- * @return The new mounts object
- */
-init_s* init_new(options_s *opts);
-
-/**
- * @brief Destroys the init object
- *
- * @param i The init object
- */
-void init_destroy(init_s *i);
-
-/**
- * @brief Initialises the test environment
- *
- * @param opts The options object
- * @return SUCCESS if initialised without any issues
- */
-status_e init_run(options_s *opts);
-
-/**
- * @brief Extracts some useful information from the .replay meta header
- *
- * @param i The init object
- * @param init_offset To store the offset of the init section
- */
-void init_extract_header(init_s *i, off_t *init_offset);
-
-#endif // INIT_H