summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-dummy-enumtypes.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-05-12 10:32:17 -0400
committerColin Walters (automation) <walters+githubbot@verbum.org>2016-05-12 17:15:50 +0000
commita5f703799f8da2b20eba949d2d053d4b307490c9 (patch)
tree77d25bcc07772bd0ba034e56eeaee815856f1db1 /src/libostree/ostree-dummy-enumtypes.c
parentf98b8bd0d7e4f98951e8d460c1f1b30538da697f (diff)
downloadostree-a5f703799f8da2b20eba949d2d053d4b307490c9.tar.gz
Make enum generation private by default, export stub symbol
When we added enum type generation, the generated symbols used the `ostree_` prefix, and at the time that implied they were public. So we started (if built with libsoup) exporting `ostree_fetcher_config_flags_get_type`. I think it's not worth confusing ABI checkers, so let's export the dummy symbol forever, and switch enums to be private by default. We should revisit this and also export some auto-generated enum types for public enums, but that's a separate patch. Closes: #296 Approved by: gatispaeglis
Diffstat (limited to 'src/libostree/ostree-dummy-enumtypes.c')
-rw-r--r--src/libostree/ostree-dummy-enumtypes.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/libostree/ostree-dummy-enumtypes.c b/src/libostree/ostree-dummy-enumtypes.c
new file mode 100644
index 00000000..27fc7b4d
--- /dev/null
+++ b/src/libostree/ostree-dummy-enumtypes.c
@@ -0,0 +1,32 @@
+/* This file declares a stub function that is only exported
+ * to pacify ABI checkers - no one could really have used it.
+ *
+ * Copyright (C) 2015 Red Hat, Inc.
+ *
+ * This library 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 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "ostree-dummy-enumtypes.h"
+
+/* Exported for backwards compat - see
+ * https://bugzilla.gnome.org/show_bug.cgi?id=764131
+ * https://github.com/ostreedev/ostree/pull/294
+ */
+GType
+ostree_fetcher_config_flags_get_type (void)
+{
+ return G_TYPE_INVALID;
+}