]> Pileus Git - grits/blobdiff - src/data.h
* Road plan (HACKING)
[grits] / src / data.h
index 9885fd0ba8aabf9d4c4c64b2d50d0f625d8477c4..b0ecf61e81cc847da742252108f8aae8859ba566 100644 (file)
@@ -1,8 +1,33 @@
+/*
+ * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * 
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
 #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