Transaction: Split out constructor into private header

This commit is contained in:
Alexander Larsson 2018-05-22 09:20:41 +02:00 committed by Alexander Larsson
parent 10dc876323
commit be6cea486c
6 changed files with 34 additions and 5 deletions

View File

@ -33,6 +33,7 @@
#include "flatpak-builtins.h"
#include "flatpak-builtins-utils.h"
#include "flatpak-transaction-private.h"
#include "flatpak-transaction.h"
#include "flatpak-utils-private.h"
#include "flatpak-error.h"

View File

@ -31,7 +31,7 @@
#include "flatpak-builtins.h"
#include "flatpak-builtins-utils.h"
#include "flatpak-transaction.h"
#include "flatpak-transaction-private.h"
#include "flatpak-utils-private.h"
#include "flatpak-error.h"

View File

@ -88,6 +88,7 @@ libflatpak_common_la_SOURCES = \
common/flatpak-context-private.h \
common/flatpak-exports.c \
common/flatpak-exports-private.h \
common/flatpak-transaction-private.h \
common/flatpak-transaction.h \
common/flatpak-transaction.c \
common/flatpak-utils.c \

View File

@ -0,0 +1,30 @@
/*
* Copyright © 2018 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* Authors:
* Alexander Larsson <alexl@redhat.com>
*/
#ifndef __FLATPAK_TRANSACTION_PRIVATE_H__
#define __FLATPAK_TRANSACTION_PRIVATE_H__
#include "flatpak-transaction.h"
#include "flatpak-dir-private.h"
FlatpakTransaction *flatpak_transaction_new (FlatpakDir *dir);
#endif /* __FLATPAK_TRANSACTION_PRIVATE_H__ */

View File

@ -23,7 +23,7 @@
#include <stdio.h>
#include <glib/gi18n.h>
#include "flatpak-transaction.h"
#include "flatpak-transaction-private.h"
#include "flatpak-utils-private.h"
#include "flatpak-error.h"

View File

@ -24,13 +24,10 @@
#include <glib.h>
#include "libglnx/libglnx.h"
#include "flatpak-dir-private.h"
#define FLATPAK_TYPE_TRANSACTION flatpak_transaction_get_type ()
G_DECLARE_FINAL_TYPE (FlatpakTransaction, flatpak_transaction, FLATPAK, TRANSACTION, GObject);
FlatpakTransaction *flatpak_transaction_new (FlatpakDir *dir);
void flatpak_transaction_set_disable_interaction (FlatpakTransaction *self,
gboolean no_interaction);
void flatpak_transaction_set_no_pull (FlatpakTransaction *self,