[libcalamares] Export partition-syncer symbols
This commit is contained in:
parent
2ccd5a2043
commit
1c285f011b
@ -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(); }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user