Enable use of HTTP cache headers in curl plugin
[monky] / src / ccurl_thread.h
index 0d0cbf0..6f7e830 100644 (file)
@@ -1,9 +1,10 @@
-/*
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ *
  * Conky, a system monitor, based on torsmo
  *
  * Please see COPYING for details
  *
- * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
  *     (see AUTHORS)
  * All rights reserved.
  *
@@ -32,6 +33,8 @@
 typedef struct _ccurl_location_t {
        /* uri of location */
        char *uri;
+       char *last_modified;
+       char *etag;
        /* a pointer to some arbitrary data, will be freed by ccurl_free_info() if
         * non-null */
        void *result;
@@ -65,6 +68,10 @@ void ccurl_free_info(void);
 /* runs instance of $curl */
 void ccurl_process_info(char *p, int p_max_size, char *uri, int interval);
 
+void curl_parse_arg(struct text_object *, const char *);
+void curl_print(struct text_object *, char *, int);
+void curl_obj_free(struct text_object *);
+
 /* $curl exports end */
 
 #endif /* _CURL_THREAD_H_ */