diff --git a/app/flatpak-builtins-install.c b/app/flatpak-builtins-install.c
index 34568574..67c6d5b3 100644
--- a/app/flatpak-builtins-install.c
+++ b/app/flatpak-builtins-install.c
@@ -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"
diff --git a/app/flatpak-builtins-update.c b/app/flatpak-builtins-update.c
index d97dff4f..c61cca17 100644
--- a/app/flatpak-builtins-update.c
+++ b/app/flatpak-builtins-update.c
@@ -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"
diff --git a/common/Makefile.am.inc b/common/Makefile.am.inc
index 8312dc80..95f51143 100644
--- a/common/Makefile.am.inc
+++ b/common/Makefile.am.inc
@@ -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 \
diff --git a/common/flatpak-transaction-private.h b/common/flatpak-transaction-private.h
new file mode 100644
index 00000000..66dadbbd
--- /dev/null
+++ b/common/flatpak-transaction-private.h
@@ -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 .
+ *
+ * Authors:
+ * Alexander Larsson
+ */
+
+#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__ */
diff --git a/common/flatpak-transaction.c b/common/flatpak-transaction.c
index 4bd1d5aa..2aa6e36c 100644
--- a/common/flatpak-transaction.c
+++ b/common/flatpak-transaction.c
@@ -23,7 +23,7 @@
#include
#include
-#include "flatpak-transaction.h"
+#include "flatpak-transaction-private.h"
#include "flatpak-utils-private.h"
#include "flatpak-error.h"
diff --git a/common/flatpak-transaction.h b/common/flatpak-transaction.h
index 82c36f02..422c0df0 100644
--- a/common/flatpak-transaction.h
+++ b/common/flatpak-transaction.h
@@ -24,13 +24,10 @@
#include
#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,