X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fdata.h;h=b0ecf61e81cc847da742252108f8aae8859ba566;hb=13e5efb9aae0da9f9c3cc6e0c32aafae2037de18;hp=9885fd0ba8aabf9d4c4c64b2d50d0f625d8477c4;hpb=4fcef1604ab68160bb3fc51755cc87d23e215fee;p=grits diff --git a/src/data.h b/src/data.h index 9885fd0..b0ecf61 100644 --- a/src/data.h +++ b/src/data.h @@ -1,8 +1,33 @@ +/* + * Copyright (C) 2009 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef __DATA_H__ #define __DATA_H__ -typedef void (*AWeatherCacheDoneCallback)(gchar *file, gpointer user_data); +typedef enum { + AWEATHER_ALWAYS, + AWEATHER_AUTOMATIC, + AWEATHER_NEVER, +} AWeatherPolicyType; + +typedef void (*AWeatherCacheDoneCallback)(gchar *file, gboolean updated, + gpointer user_data); -void cache_file(char *base, char *path, AWeatherCacheDoneCallback callback, gpointer user_data); +void cache_file(char *base, char *path, AWeatherPolicyType update, + AWeatherCacheDoneCallback callback, gpointer user_data); #endif