Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (49 sloc) 2.178 kb
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* Cherokee
4 *
5 * Authors:
6 * Alvaro Lopez Ortega <alvaro@alobbs.com>
7 *
920e20b @alobbs Happy new year!
alobbs authored
8 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU General Public
12 * License as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
2c39092 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2660 5dc97367-97f1...
alobbs authored
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301, USA.
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
23 */
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
24
25 #ifndef CHEROKEE_ICONS_H
26 #define CHEROKEE_ICONS_H
27
28 #include "common.h"
281d8e6 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@834 5dc97367-97f1-...
alobbs authored
29 #include "avl.h"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
30 #include "list.h"
31 #include "buffer.h"
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97f1-...
alobbs authored
32 #include "config_node.h"
33
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
34
35 typedef struct {
281d8e6 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@834 5dc97367-97f1-...
alobbs authored
36 cherokee_avl_t files;
37 cherokee_avl_t suffixes;
ee297e5 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1460 5dc97367-97f1...
alobbs authored
38 cherokee_list_t file_matching;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
39
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97f1-...
alobbs authored
40 cherokee_buffer_t default_icon;
41 cherokee_buffer_t directory_icon;
42 cherokee_buffer_t parentdir_icon;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
43 } cherokee_icons_t;
44
45 #define ICONS(x) ((cherokee_icons_t *)(x))
46
47
48 ret_t cherokee_icons_new (cherokee_icons_t **icons);
49 ret_t cherokee_icons_free (cherokee_icons_t *icons);
50 ret_t cherokee_icons_clean (cherokee_icons_t *icons);
51
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
52 ret_t cherokee_icons_configure (cherokee_icons_t *icons, cherokee_config_node_t *config);
281d8e6 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@834 5dc97367-97f1-...
alobbs authored
53 ret_t cherokee_icons_get_icon (cherokee_icons_t *icons, cherokee_buffer_t *file, cherokee_buffer_t **icon);
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97f1-...
alobbs authored
54
281d8e6 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@834 5dc97367-97f1-...
alobbs authored
55 ret_t cherokee_icons_add_file (cherokee_icons_t *icons, cherokee_buffer_t *icon, cherokee_buffer_t *file);
56 ret_t cherokee_icons_add_suffix (cherokee_icons_t *icons, cherokee_buffer_t *icon, cherokee_buffer_t *suffix);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
57
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97f1-...
alobbs authored
58 ret_t cherokee_icons_set_default (cherokee_icons_t *icons, cherokee_buffer_t *icon);
59 ret_t cherokee_icons_set_directory (cherokee_icons_t *icons, cherokee_buffer_t *icon);
60 ret_t cherokee_icons_set_parentdir (cherokee_icons_t *icons, cherokee_buffer_t *icon);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
61
62 #endif /* CHEROKEE_ICONS_H */
Something went wrong with that request. Please try again.