New hooklist to collect avatar data from headers
[claws.git] / src / procheader.h
index 6d53ecb05847cfbbd85e1f3ced89578cea5ece86..b8e48fc3ebc565e7fb02c0d5263428e00b63a876 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
  *
  * 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
 #include <stdio.h>
 #include <time.h>
 
-#include "procmsg.h"
+#include "proctypes.h"
 
-typedef struct _HeaderEntry    HeaderEntry;
-typedef struct _Header         Header;
+#define AVATAR_HEADER_UPDATE_HOOKLIST "avatar_header_update"
 
 struct _HeaderEntry
 {
@@ -89,5 +88,11 @@ Header * procheader_parse_header        (gchar * buf);
 gboolean procheader_headername_equal    (char * hdr1, char * hdr2);
 void procheader_header_free             (Header * header);
 
-gint procheader_get_header_from_msginfo(MsgInfo *msginfo, gchar *buf, gint len,gchar *header);
+gint procheader_get_header_from_msginfo        (MsgInfo        *msginfo,
+                                        gchar          *buf,
+                                        gint           len,
+                                        gchar          *header);
+
+HeaderEntry *procheader_entries_from_str(const gchar   *str);
+void procheader_entries_free           (HeaderEntry    *entries);
 #endif /* __PROCHEADER_H__ */