nmcs: remove nmcs_provider_*_get_type forward declaration

There is no need to avoid including the full header, they are small
headers with some GLib type system stuff and no more. Just include them
where they are needed.
This commit is contained in:
Íñigo Huguet 2024-11-19 10:11:43 +01:00 committed by Lubomir Rintel
parent 5a98d81db5
commit 4210ab1828
2 changed files with 2 additions and 7 deletions

View file

@ -3,6 +3,8 @@
#include "libnm-client-aux-extern/nm-default-client.h"
#include "nmcs-provider.h"
#include "nmcs-provider-aliyun.h"
#include "nmcs-provider-oci.h"
#include "nm-cloud-setup-utils.h"

View file

@ -220,11 +220,4 @@ void nmcs_provider_get_config(NMCSProvider *provider,
NMCSProviderGetConfigResult *
nmcs_provider_get_config_finish(NMCSProvider *provider, GAsyncResult *result, GError **error);
/*****************************************************************************/
/* Forward declare the implemented gtype getters so we can use it at a few places without requiring
* to include the full header. The other parts of those headers should not be used aside where they
* are necessary. */
GType nmcs_provider_aliyun_get_type(void);
#endif /* __NMCS_PROVIDER_H__ */