mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-16 10:50:43 +03:00
Mutable is a keyword in C++11
This fix allows including OSTree on C++ projects.
This commit is contained in:
parent
ed86160975
commit
c61151d650
@ -1960,7 +1960,7 @@ ostree_sysroot_deployment_set_kargs (OstreeSysroot *self,
|
||||
* ostree_sysroot_deployment_set_mutable:
|
||||
* @self: Sysroot
|
||||
* @deployment: A deployment
|
||||
* @mutable: Whether or not deployment's files can be changed
|
||||
* @is_mutable: Whether or not deployment's files can be changed
|
||||
* @error: Error
|
||||
*
|
||||
* By default, deployment directories are not mutable. This function
|
||||
@ -1970,7 +1970,7 @@ ostree_sysroot_deployment_set_kargs (OstreeSysroot *self,
|
||||
gboolean
|
||||
ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
|
||||
OstreeDeployment *deployment,
|
||||
gboolean mutable,
|
||||
gboolean is_mutable,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
{
|
||||
@ -1984,7 +1984,7 @@ ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
|
||||
if (!glnx_opendirat (self->sysroot_fd, deployment_path, TRUE, &fd, error))
|
||||
goto out;
|
||||
|
||||
if (!_ostree_linuxfs_fd_alter_immutable_flag (fd, !mutable, cancellable, error))
|
||||
if (!_ostree_linuxfs_fd_alter_immutable_flag (fd, !is_mutable, cancellable, error))
|
||||
goto out;
|
||||
|
||||
ret = TRUE;
|
||||
|
@ -119,7 +119,7 @@ gboolean ostree_sysroot_deploy_tree (OstreeSysroot *self,
|
||||
|
||||
gboolean ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
|
||||
OstreeDeployment *deployment,
|
||||
gboolean mutable,
|
||||
gboolean is_mutable,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user