diff options
Diffstat (limited to 'dbfp.h')
-rw-r--r-- | dbfp.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -9,6 +9,7 @@ #include <curl/curl.h> #include <stddef.h> +#include <time.h> enum dbfp_error { DBFP_ERROR_CURL = -1, @@ -30,6 +31,16 @@ struct dbfp_location { float lat; }; +struct dbfp_departure { + char *name; + char *type; + char *stopid; + char *stop; + time_t time; + char *direction; + char *track; +}; + int dbfp_init(struct dbfp *dbfp, char *key); void dbfp_close(struct dbfp *dbfp); @@ -37,4 +48,6 @@ void dbfp_location_close(struct dbfp_location *location); 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); + #endif /* DBFP_H_ */ |