diff options
author | Corentin Noël <tintou@noel.tf> | 2022-12-05 18:54:17 +0100 |
---|---|---|
committer | Corentin Noël <tintou@noel.tf> | 2022-12-05 18:54:17 +0100 |
commit | 68784244486b28aa0cc7f7a980be56582e6ae3ed (patch) | |
tree | a9d4a6992a3ff5f6548f2829d36d08df8447ebca | |
parent | 5970778a89f33352b59da689cdb7d088555b1d53 (diff) | |
download | librest-tintou/single-rest-extras.tar.gz |
Allow to use rest-extras from a single headertintou/single-rest-extras
-rw-r--r-- | rest-extras/meson.build | 2 | ||||
-rw-r--r-- | rest-extras/rest-extras.h | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/rest-extras/meson.build b/rest-extras/meson.build index 67e6fd0..00f9ebe 100644 --- a/rest-extras/meson.build +++ b/rest-extras/meson.build @@ -9,6 +9,7 @@ librest_extras_sources = [ ] librest_extras_headers = [ + 'rest-extras.h', 'flickr-proxy.h', 'flickr-proxy-call.h', 'lastfm-proxy.h', @@ -55,6 +56,7 @@ if get_option('introspection') namespace: 'RestExtras', symbol_prefix: 'rest_extras', identifier_prefix: 'RestExtras', + header: 'rest-extras/rest-extras.h', nsversion: librest_api_version, includes: [ 'GObject-2.0', 'Gio-2.0', 'Soup-@0@'.format(libsoup_api_version), librest_gir[0] ], extra_args: [ '--accept-unprefixed' ], diff --git a/rest-extras/rest-extras.h b/rest-extras/rest-extras.h new file mode 100644 index 0000000..8553013 --- /dev/null +++ b/rest-extras/rest-extras.h @@ -0,0 +1,35 @@ +/* rest-extras.h + * + * Copyright 2022 Corentin Noël <corentin.noel@collabora.com> + * + * This file 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 3 of the + * License, or (at your option) any later version. + * + * This file 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 program. If not, see <http://www.gnu.org/licenses/>. + * + * SPDX-License-Identifier: LGPL-3.0-or-later + */ + +#pragma once + +#include <glib.h> + +G_BEGIN_DECLS + +#define REST_EXTRA_INSIDE +# include <rest-extras/flickr-proxy.h> +# include <rest-extras/flickr-proxy-call.h> +# include <rest-extras/lastfm-proxy.h> +# include <rest-extras/lastfm-proxy-call.h> +# include <rest-extras/youtube-proxy.h> +#undef REST_EXTRA_INSIDE + +G_END_DECLS |