connman_bool_t hidden;
};
-struct connman_config_entry **connman_config_get_entries(void);
+struct connman_config_entry **connman_config_get_entries(const char *type);
void connman_config_free_entries(struct connman_config_entry **entries);
#ifdef __cplusplus
/*
* Check if there are any hidden AP that needs to be provisioned.
*/
- entries = connman_config_get_entries();
+ entries = connman_config_get_entries("wifi");
for (i = 0; entries && entries[i]; i++) {
int len;
return ret;
}
-struct connman_config_entry **connman_config_get_entries(void)
+struct connman_config_entry **connman_config_get_entries(const char *type)
{
GHashTableIter iter_file, iter_config;
gpointer value, key;
&value) == TRUE) {
struct connman_config_service *config = value;
+ if (type != NULL &&
+ g_strcmp0(config->type, type) != 0)
+ continue;
+
entries[i] = g_try_new0(struct connman_config_entry,
1);
if (entries[i] == NULL)