X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Faweather-location.h;h=a6863328c19dfefbf1f8f6cc3a373e80f7d7d437;hb=14e0ca8fab7466f1673a7d5dcccca5887d30fdcc;hp=b030f04b4d9caeb82aa58c58b97f1ae3b6c1e450;hpb=ca898105ec4018b54ac2f6f1327200624169103e;p=aweather diff --git a/src/aweather-location.h b/src/aweather-location.h index b030f04..a686332 100644 --- a/src/aweather-location.h +++ b/src/aweather-location.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Andy Spencer + * Copyright (C) 2009-2010 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,25 +18,21 @@ #ifndef __LOCATION_H__ #define __LOCATION_H__ +#include "grits-util.h" + enum { - 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; - struct { - gint north; - gint ne; - gint east; - gint se; - gint south; - gint sw; - gint west; - gint nw; - } neighbors; + gint type; + gchar *code; + gchar *name; + GritsPoint pos; + gdouble lod; } city_t; extern city_t cities[];