Commit c2d62f4f authored by Volker Krause's avatar Volker Krause
Browse files

Define all known GBFS files

And use that to silence debug output for unhandled but known files.
parent 34d3650c
......@@ -24,6 +24,11 @@ struct {
{ "gbfs_versions" },
{ "vehicle_types" },
{ "geofencing_zones" },
{ "system_hours" },
{ "system_calendar" },
{ "system_regions" },
{ "system_pricing_plans" },
{ "system_alerts" },
};
static_assert((sizeof(file_info_map) / sizeof(file_info_map[0])) == GBFS::Unknown, "");
......
......@@ -26,6 +26,11 @@ namespace GBFS
Versions,
VehicleTypes,
GeofencingZones,
SystemHours,
SystemCalendar,
SystemRegions,
SystemPricingPlans,
SystemAlerts,
Unknown, // keep last
};
......
......@@ -160,6 +160,11 @@ void GBFSJob::processFeeds(bool sysInfoOnly)
}
break;
case GBFS::Discovery:
case GBFS::SystemHours:
case GBFS::SystemCalendar:
case GBFS::SystemRegions:
case GBFS::SystemPricingPlans:
case GBFS::SystemAlerts:
break;
default:
qDebug() << "Unhandled feed:" << name << url;
......
......@@ -32,6 +32,11 @@ struct {
{ std::chrono::hours(24 * 5) },
{ std::chrono::hours(24 * 5) },
{ std::chrono::hours(24 * 5) },
{ std::chrono::hours(24 * 5) },
{ std::chrono::hours(24 * 5) },
{ std::chrono::hours(24 * 5) },
{ std::chrono::hours(24 * 5) },
{ std::chrono::hours(24 * 5) },
};
static_assert((sizeof(file_ttl_map) / sizeof(file_ttl_map[0])) == GBFS::Unknown, "");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment