From 47d6867cc86d5239fea690565abe84c526edaa5b Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 1 Jun 2016 23:44:11 +0200 Subject: dbfp: implement dbfp_query_departure Retrieves the next departures of a given station. The time handling needs to be checked, as the DB API always uses Europe/Berlin. --- dbfp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dbfp.h') diff --git a/dbfp.h b/dbfp.h index e1e1247..02b724d 100644 --- a/dbfp.h +++ b/dbfp.h @@ -49,5 +49,8 @@ int dbfp_query_location_name(struct dbfp *dbfp, char *input, size_t *n, struct dbfp_location **locations); void dbfp_departure_close(struct dbfp_departure *departure); +int dbfp_query_departure(struct dbfp *dbfp, struct dbfp_location *location, + char *location_id, time_t time, size_t *n, + struct dbfp_departure **departures); #endif /* DBFP_H_ */ -- cgit v1.2.1