From d9d09ab28fd21b54bfee52bb5a60a786b9516568 Mon Sep 17 00:00:00 2001 From: Abhimanyu Date: Tue, 16 Nov 2021 16:10:27 +0530 Subject: [PATCH] Fix glib inclusion issue Change-Id: I2dfc6af602126d1057b98395c68df2bacfd516b6 Signed-off-by: Abhimanyu --- include/maps_plugin_types.h | 4 ++-- src/plugin/discovery.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/maps_plugin_types.h b/include/maps_plugin_types.h index c8b30b2..67ac6c2 100644 --- a/include/maps_plugin_types.h +++ b/include/maps_plugin_types.h @@ -17,6 +17,8 @@ #ifndef __MAPS_PLUGIN_TYPES_H__ #define __MAPS_PLUGIN_TYPES_H__ +#include + #ifdef __cplusplus extern "C" { #endif @@ -33,8 +35,6 @@ extern "C" { * @brief This provides API for using list of maps objects. */ -#include - /** * @brief Structure of the coordinates list. * @since_tizen @if MOBILE 3.0 @elseif WEARABLE 2.3.2 @endif diff --git a/src/plugin/discovery.cpp b/src/plugin/discovery.cpp index 28882bd..e472b94 100644 --- a/src/plugin/discovery.cpp +++ b/src/plugin/discovery.cpp @@ -108,7 +108,7 @@ vector plugin::discovery::get_module_file_list() const while ((filename = g_dir_read_name(dir))) { MAPS_LOGD("found plugin binary: %s", filename); - if (g_pattern_match_string(plugin_name_pattern, filename)) { + if (g_pattern_spec_match_string(plugin_name_pattern, filename)) { MAPS_LOGD("\tadded plugin binary: %s", filename); l.push_back(string(filename)); } -- 2.7.4