aboutsummaryrefslogtreecommitdiff
path: root/dbfp.h
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2016-06-01 23:44:11 +0200
committerRobin Krahl <me@robin-krahl.de>2016-06-01 23:44:11 +0200
commit47d6867cc86d5239fea690565abe84c526edaa5b (patch)
tree3c2ac1d5cd035cec7e2439a1575689bc47e4d178 /dbfp.h
parent3e0a3f7da39fdbbd2565f28c04c54fb5b51773b4 (diff)
downloaddbfp-47d6867cc86d5239fea690565abe84c526edaa5b.tar.gz
dbfp-47d6867cc86d5239fea690565abe84c526edaa5b.tar.bz2
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.
Diffstat (limited to 'dbfp.h')
-rw-r--r--dbfp.h3
1 files changed, 3 insertions, 0 deletions
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_ */