From 1c4da332ee6e0d948f85a63f74cb27e89075c011 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 8 Dec 2022 14:37:56 +0000 Subject: build: new option to build plugins within the daemon binary Instead of creating libmm-plugin* and libmm-shared* libraries that are dlopen()-ed on runtime, allow incorporating all plugins into the daemon binary itself. This makes the startup of the daemon much faster and also avoids issues with builds that require linker namespace isolation. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/674 --- src/plugins/mm-builtin-plugins.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/plugins/mm-builtin-plugins.h (limited to 'src/plugins/mm-builtin-plugins.h') diff --git a/src/plugins/mm-builtin-plugins.h b/src/plugins/mm-builtin-plugins.h new file mode 100644 index 00000000..dac9c3b2 --- /dev/null +++ b/src/plugins/mm-builtin-plugins.h @@ -0,0 +1,28 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details: + * + * Copyright (C) 2022 Google Inc. + */ + +#ifndef MM_BUILTIN_PLUGINS_H +#define MM_BUILTIN_PLUGINS_H + +#include +#include + +#if !defined WITH_BUILTIN_PLUGINS +# error Build with builtin plugins was not enabled +#endif + +GList *mm_builtin_plugins_load (void); + +#endif /* MM_BUILTIN_PLUGINS_H */ -- cgit v1.2.3-70-g09d2