mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-04 04:45:36 -04:00
[libcalamares] Export partition-syncer symbols
This commit is contained in:
parent
2ccd5a2043
commit
1c285f011b
1 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,8 @@
|
|||
#ifndef PARTITION_SYNC_H
|
||||
#define PARTITION_SYNC_H
|
||||
|
||||
#include "DllMacro.h"
|
||||
|
||||
namespace CalamaresUtils
|
||||
{
|
||||
namespace Partition
|
||||
|
@ -24,10 +26,10 @@ namespace Partition
|
|||
* are sensitive, and systemd tends to keep disks busy after a change
|
||||
* for a while).
|
||||
*/
|
||||
void sync();
|
||||
DLLEXPORT void sync();
|
||||
|
||||
/** @brief RAII class for calling sync() */
|
||||
struct Syncer
|
||||
struct DLLEXPORT Syncer
|
||||
{
|
||||
~Syncer() { sync(); }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue