2015-08-24 22:44:40 +03:00
/*
* Copyright ( C ) 2015 Red Hat , Inc .
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 2 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software
* Foundation , Inc . , 51 Franklin St , Fifth Floor , Boston , MA 02110 - 1301 USA
*/
# pragma once
# include "ostree.h"
# include "rpmostreed-types.h"
# define RPMOSTREED_TYPE_SYSROOT (rpmostreed_sysroot_get_type ())
# define RPMOSTREED_SYSROOT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RPMOSTREED_TYPE_SYSROOT, RpmostreedSysroot))
# define RPMOSTREED_IS_SYSROOT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RPMOSTREED_TYPE_SYSROOT))
# define SYSROOT_DEFAULT_PATH " / "
GType rpmostreed_sysroot_get_type ( void ) G_GNUC_CONST ;
RpmostreedSysroot * rpmostreed_sysroot_get ( void ) ;
gboolean rpmostreed_sysroot_populate ( RpmostreedSysroot * self ,
GError * * error ) ;
2015-09-03 20:28:19 +03:00
gboolean rpmostreed_sysroot_load_state ( RpmostreedSysroot * self ,
GCancellable * cancellable ,
OstreeSysroot * * out_sysroot ,
OstreeRepo * * out_repo ,
GError * * error ) ;
2015-09-03 23:34:05 +03:00
void rpmostreed_sysroot_emit_update ( RpmostreedSysroot * self ) ;
2015-09-09 00:41:27 +03:00
void rpmostreed_sysroot_reader_lock ( RpmostreedSysroot * self ) ;
void rpmostreed_sysroot_reader_unlock ( RpmostreedSysroot * self ) ;
void rpmostreed_sysroot_writer_lock ( RpmostreedSysroot * self ) ;
void rpmostreed_sysroot_writer_unlock ( RpmostreedSysroot * self ) ;