Statistics
| Revision:

root / libsylph / customheader.h @ 2366

History | View | Annotate | Download (1.4 kB)

1 1 hiro
/*
2 578 hiro
 * LibSylph -- E-Mail client library
3 534 hiro
 * Copyright (C) 1999-2005 Hiroyuki Yamamoto
4 1 hiro
 *
5 578 hiro
 * This library is free software; you can redistribute it and/or
6 578 hiro
 * modify it under the terms of the GNU Lesser General Public
7 578 hiro
 * License as published by the Free Software Foundation; either
8 578 hiro
 * version 2.1 of the License, or (at your option) any later version.
9 1 hiro
 *
10 578 hiro
 * This library is distributed in the hope that it will be useful,
11 1 hiro
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 578 hiro
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 578 hiro
 * Lesser General Public License for more details.
14 1 hiro
 *
15 578 hiro
 * You should have received a copy of the GNU Lesser General Public
16 578 hiro
 * License along with this library; if not, write to the Free Software
17 578 hiro
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 1 hiro
 */
19 1 hiro
20 1 hiro
#ifndef __CUSTOMHEADER_H__
21 1 hiro
#define __CUSTOMHEADER_H__
22 1 hiro
23 1 hiro
#include <glib.h>
24 1 hiro
25 534 hiro
typedef struct _CustomHeader        CustomHeader;
26 534 hiro
27 534 hiro
#include "prefs_account.h"
28 534 hiro
29 1 hiro
struct _CustomHeader
30 1 hiro
{
31 1 hiro
        gint account_id;
32 1 hiro
        gchar *name;
33 1 hiro
        gchar *value;
34 1 hiro
};
35 1 hiro
36 534 hiro
void custom_header_read_config                (PrefsAccount        *ac);
37 534 hiro
void custom_header_write_config                (PrefsAccount        *ac);
38 1 hiro
39 1 hiro
gchar *custom_header_get_str                (CustomHeader        *ch);
40 1 hiro
CustomHeader *custom_header_read_str        (const gchar        *buf);
41 1 hiro
CustomHeader *custom_header_find        (GSList                *header_list,
42 1 hiro
                                         const gchar        *header);
43 1 hiro
void custom_header_free                        (CustomHeader        *ch);
44 1 hiro
45 1 hiro
#endif /* __CUSTOMHEADER_H__ */