diff options
author | Robin Krahl <me@robin-krahl.de> | 2016-06-01 23:44:11 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2016-06-01 23:44:11 +0200 |
commit | 47d6867cc86d5239fea690565abe84c526edaa5b (patch) | |
tree | 3c2ac1d5cd035cec7e2439a1575689bc47e4d178 /dbfp.h | |
parent | 3e0a3f7da39fdbbd2565f28c04c54fb5b51773b4 (diff) | |
download | dbfp-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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_ */ |