mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
clapper: Move basic functions into separate files
Avoid including whole "clapper.h" internally. Faster recompilation when changes are done.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Clapper Playback Library
|
||||
* Copyright (C) 2024 Rafał Dzięgiel <rafostar.github@gmail.com>
|
||||
* Copyright (C) 2025 Rafał Dzięgiel <rafostar.github@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <gst/gst.h>
|
||||
#include <gst/pbutils/pbutils.h>
|
||||
|
||||
#include "clapper.h"
|
||||
#include "clapper-basic-functions.h"
|
||||
#include "clapper-cache-private.h"
|
||||
#include "clapper-utils-private.h"
|
||||
#include "clapper-playbin-bus-private.h"
|
||||
@@ -31,6 +31,8 @@
|
||||
#include "clapper-enhancer-proxy-list-private.h"
|
||||
#include "gst/clapper-plugin-private.h"
|
||||
|
||||
#include "clapper-functionalities-availability.h"
|
||||
|
||||
#if CLAPPER_WITH_ENHANCERS_LOADER
|
||||
#include "clapper-enhancers-loader-private.h"
|
||||
#endif
|
46
src/lib/clapper/clapper-basic-functions.h
Normal file
46
src/lib/clapper/clapper-basic-functions.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/* Clapper Playback Library
|
||||
* Copyright (C) 2025 Rafał Dzięgiel <rafostar.github@gmail.com>
|
||||
*
|
||||
* 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.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, write to the
|
||||
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#if !defined(__CLAPPER_INSIDE__) && !defined(CLAPPER_COMPILATION)
|
||||
#error "Only <clapper/clapper.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
#include <clapper/clapper-visibility.h>
|
||||
#include <clapper/clapper-enhancer-proxy-list.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
CLAPPER_API
|
||||
void clapper_init (int *argc, char **argv[]);
|
||||
|
||||
CLAPPER_API
|
||||
gboolean clapper_init_check (int *argc, char **argv[]);
|
||||
|
||||
CLAPPER_DEPRECATED
|
||||
gboolean clapper_enhancer_check (GType iface_type, const gchar *scheme, const gchar *host, const gchar **name);
|
||||
|
||||
CLAPPER_API
|
||||
ClapperEnhancerProxyList * clapper_get_global_enhancer_proxies (void);
|
||||
|
||||
G_END_DECLS
|
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <gio/gio.h>
|
||||
|
||||
#include "clapper.h"
|
||||
#include "clapper-basic-functions.h"
|
||||
#include "clapper-enhancer-proxy-list-private.h"
|
||||
#include "clapper-enhancer-proxy-private.h"
|
||||
|
||||
|
@@ -43,8 +43,9 @@
|
||||
|
||||
#include <gobject/gvaluecollector.h>
|
||||
|
||||
#include "clapper.h"
|
||||
#include "clapper-enhancer-proxy-private.h"
|
||||
#include "clapper-enhancer-proxy-list.h"
|
||||
#include "clapper-basic-functions.h"
|
||||
#include "clapper-cache-private.h"
|
||||
#include "clapper-extractable.h"
|
||||
#include "clapper-enums.h"
|
||||
|
@@ -19,9 +19,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
#define __CLAPPER_INSIDE__
|
||||
|
||||
#include <clapper/clapper-visibility.h>
|
||||
@@ -30,6 +27,7 @@
|
||||
#include <clapper/clapper-version.h>
|
||||
|
||||
#include <clapper/clapper-audio-stream.h>
|
||||
#include <clapper/clapper-basic-functions.h>
|
||||
#include <clapper/clapper-enhancer-proxy.h>
|
||||
#include <clapper/clapper-enhancer-proxy-list.h>
|
||||
#include <clapper/clapper-feature.h>
|
||||
@@ -61,20 +59,4 @@
|
||||
#include <clapper/features/server/clapper-server.h>
|
||||
#endif
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
CLAPPER_API
|
||||
void clapper_init (int *argc, char **argv[]);
|
||||
|
||||
CLAPPER_API
|
||||
gboolean clapper_init_check (int *argc, char **argv[]);
|
||||
|
||||
CLAPPER_DEPRECATED
|
||||
gboolean clapper_enhancer_check (GType iface_type, const gchar *scheme, const gchar *host, const gchar **name);
|
||||
|
||||
CLAPPER_API
|
||||
ClapperEnhancerProxyList * clapper_get_global_enhancer_proxies (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#undef __CLAPPER_INSIDE__
|
||||
|
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
#include <gst/gst.h>
|
||||
#include <gst/base/gstpushsrc.h>
|
||||
|
||||
|
@@ -22,9 +22,10 @@
|
||||
#include "clapper-enhancer-src-private.h"
|
||||
#include "clapper-enhancer-director-private.h"
|
||||
|
||||
#include "../clapper.h"
|
||||
#include "../clapper-enhancer-proxy-list-private.h"
|
||||
#include "../clapper-extractable-private.h"
|
||||
#include "../clapper-basic-functions.h"
|
||||
#include "../clapper-enhancer-proxy.h"
|
||||
#include "../clapper-enhancer-proxy-list.h"
|
||||
#include "../clapper-extractable.h"
|
||||
#include "../clapper-harvest-private.h"
|
||||
|
||||
#define GST_CAT_DEFAULT clapper_enhancer_src_debug
|
||||
|
@@ -21,10 +21,13 @@
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
#include "../clapper.h"
|
||||
#include "clapper-enhancer-src-private.h"
|
||||
#include "../clapper-basic-functions.h"
|
||||
#include "../clapper-enhancer-proxy.h"
|
||||
#include "../clapper-enhancer-proxy-list.h"
|
||||
#include "../clapper-extractable.h"
|
||||
|
||||
#include "clapper-plugin-private.h"
|
||||
#include "clapper-enhancer-src-private.h"
|
||||
#include "clapper-uri-list-demux-private.h"
|
||||
|
||||
/*
|
||||
|
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
#include <gst/gst.h>
|
||||
#include <gst/gstbin.h>
|
||||
|
||||
|
@@ -111,6 +111,7 @@ clapper_headers = [
|
||||
'clapper.h',
|
||||
'clapper-enums.h',
|
||||
'clapper-audio-stream.h',
|
||||
'clapper-basic-functions.h',
|
||||
'clapper-enhancer-proxy.h',
|
||||
'clapper-enhancer-proxy-list.h',
|
||||
'clapper-extractable.h',
|
||||
@@ -131,9 +132,9 @@ clapper_headers = [
|
||||
clapper_visibility_header,
|
||||
]
|
||||
clapper_sources = [
|
||||
'clapper.c',
|
||||
'clapper-app-bus.c',
|
||||
'clapper-audio-stream.c',
|
||||
'clapper-basic-functions.c',
|
||||
'clapper-cache.c',
|
||||
'clapper-enhancer-proxy.c',
|
||||
'clapper-enhancer-proxy-list.c',
|
||||
|
Reference in New Issue
Block a user