mirror of
https://github.com/zebrajr/ladybird.git
synced 2026-01-15 12:15:15 +00:00
This allows estimating the cache size stored on disk since a provided time stamp, and in total.
30 lines
433 B
C++
30 lines
433 B
C++
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <LibIPC/Forward.h>
|
|
|
|
namespace Requests {
|
|
|
|
struct CacheSizes {
|
|
u64 since_requested_time { 0 };
|
|
u64 total { 0 };
|
|
};
|
|
|
|
}
|
|
|
|
namespace IPC {
|
|
|
|
template<>
|
|
ErrorOr<void> encode(Encoder&, Requests::CacheSizes const&);
|
|
|
|
template<>
|
|
ErrorOr<Requests::CacheSizes> decode(Decoder&);
|
|
|
|
}
|