Mutable is a keyword in C++11
This fix allows including OSTree on C++ projects.
This commit is contained in:
1 parent
ed86160975
commit
c61151d650
2 files changed
+4
-4
No files matched your search
@@ -1960,7 +1960,7 @@ ostree_sysroot_deployment_set_kargs (OstreeSysroot *self,
|
|||||||
* ostree_sysroot_deployment_set_mutable:
|
* ostree_sysroot_deployment_set_mutable:
|
||||||
* @self: Sysroot
|
* @self: Sysroot
|
||||||
* @deployment: A deployment
|
* @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
|
* @error: Error
|
||||||
*
|
*
|
||||||
* By default, deployment directories are not mutable. This function
|
* By default, deployment directories are not mutable. This function
|
||||||
@@ -1970,7 +1970,7 @@ ostree_sysroot_deployment_set_kargs (OstreeSysroot *self,
|
|||||||
gboolean
|
gboolean
|
||||||
ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
|
ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
|
||||||
OstreeDeployment *deployment,
|
OstreeDeployment *deployment,
|
||||||
gboolean mutable,
|
gboolean is_mutable,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
@@ -1984,7 +1984,7 @@ ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
|
|||||||
if (!glnx_opendirat (self->sysroot_fd, deployment_path, TRUE, &fd, error))
|
if (!glnx_opendirat (self->sysroot_fd, deployment_path, TRUE, &fd, error))
|
||||||
goto out;
|
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;
|
goto out;
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ gboolean ostree_sysroot_deploy_tree (OstreeSysroot *self,
|
|||||||
|
|
||||||
gboolean ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
|
gboolean ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
|
||||||
OstreeDeployment *deployment,
|
OstreeDeployment *deployment,
|
||||||
gboolean mutable,
|
gboolean is_mutable,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user