mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 08:39:04 +00:00
Unify ProgressCallbacks to a Common::ProgressCallback
This commit is contained in:
@@ -10,6 +10,7 @@ add_library(common STATIC
|
||||
logging/log.cpp
|
||||
logging/log.h
|
||||
misc.cpp
|
||||
progress_callback.h
|
||||
scope_exit.h
|
||||
string_util.cpp
|
||||
string_util.h
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// Copyright 2021 threeSD Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace Common {
|
||||
|
||||
// (current_size, total_size)
|
||||
using ProgressCallback = std::function<void(std::size_t, std::size_t)>;
|
||||
|
||||
} // namespace Common
|
||||
Reference in New Issue
Block a user