[libcalamares] Export partition-syncer symbols

This commit is contained in:
Adriaan de Groot 2020-12-22 16:03:51 +01:00
parent 2ccd5a2043
commit 1c285f011b

View File

@ -11,6 +11,8 @@
#ifndef PARTITION_SYNC_H #ifndef PARTITION_SYNC_H
#define PARTITION_SYNC_H #define PARTITION_SYNC_H
#include "DllMacro.h"
namespace CalamaresUtils namespace CalamaresUtils
{ {
namespace Partition namespace Partition
@ -24,10 +26,10 @@ namespace Partition
* are sensitive, and systemd tends to keep disks busy after a change * are sensitive, and systemd tends to keep disks busy after a change
* for a while). * for a while).
*/ */
void sync(); DLLEXPORT void sync();
/** @brief RAII class for calling sync() */ /** @brief RAII class for calling sync() */
struct Syncer struct DLLEXPORT Syncer
{ {
~Syncer() { sync(); } ~Syncer() { sync(); }
}; };