X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Faweather-location.h;h=7eaa3d27aa47eb5a831a7c32abb1f73fb8bcd412;hb=a52c3912b474f14a476f9be92fcdb312fa6cbba5;hp=a3a3b69b175a98a0e9339513e6c912cb17ad9fae;hpb=c45d5a6177fe71ff1028887a1fbb01152de96835;p=aweather diff --git a/src/aweather-location.h b/src/aweather-location.h index a3a3b69..7eaa3d2 100644 --- a/src/aweather-location.h +++ b/src/aweather-location.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2010 Andy Spencer + * Copyright (C) 2009-2011 Andy Spencer * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,19 +18,21 @@ #ifndef __LOCATION_H__ #define __LOCATION_H__ +#include "grits-util.h" + enum { - LOCATION_END, - LOCATION_CITY, - LOCATION_STATE, + LOCATION_END, // Special marker for end-of-list + LOCATION_CITY, // Cities (actually radars) + LOCATION_STATE, // States (for indexing) + LOCATION_NOP, // Missing from IDD for some reason }; typedef struct { - int type; - char *code; - char *label; - double lat; - double lon; - double elev; + gint type; + gchar *code; + gchar *name; + GritsPoint pos; + gdouble lod; } city_t; extern city_t cities[];