Updated to release 1.10.0
[siplcs.git] / src / api / sipe-mime.h
blob5a7cb063a5561961518e5ef278143b8e3d485529
1 /**
2 * @file sipe-mime.h
4 * pidgin-sipe
6 * Copyright (C) 2010 SIPE Project <http://sipe.sourceforge.net/>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 /**
24 * Callback type for sipe_mime_parts_foreach().
26 * @param user_data callback data.
27 * @param type content type of the MIME part.
28 * @param body text of the MIME part.
29 * @param length length of the body text.
31 typedef void (*sipe_mime_parts_cb)(gpointer user_data,
32 const gchar *type,
33 const gchar *body,
34 gsize length);
36 /**
37 * Parse MIME document and call a function for each part.
39 * @param type content type of the MIME document.
40 * @param body body of the MIME document.
41 * @param callback function to call for each MIME part.
42 * @param user_data callback data.
44 void sipe_mime_parts_foreach(const gchar *type,
45 const gchar *body,
46 sipe_mime_parts_cb callback,
47 gpointer user_data);