Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 73 lines (57 sloc) 2.917 kb
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
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-97…
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-9…
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-97…
alobbs authored
24
25 #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION)
26 # error "Only <cherokee/cherokee.h> can be included directly, this file may disappear or change contents."
27 #endif
28
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
29 #ifndef CHEROKEE_PLUGIN_LOADER_H
30 #define CHEROKEE_PLUGIN_LOADER_H
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
31
32 #include <cherokee/common.h>
33 #include <cherokee/module.h>
0088d4e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@839 5dc97367-97…
alobbs authored
34 #include <cherokee/avl.h>
b0dd10b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1398 5dc97367-9…
alobbs authored
35 #include <cherokee/plugin.h>
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
36
37 CHEROKEE_BEGIN_DECLS
38
39 typedef struct {
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
40 cherokee_plugin_info_t *info;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
41 void *dlopen_ref;
6e104bf @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1506 5dc97367-9…
alobbs authored
42 cherokee_boolean_t built_in;
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
43 } cherokee_plugin_loader_entry_t;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
44
a103950 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@410 5dc97367-97…
alobbs authored
45 typedef struct {
0088d4e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@839 5dc97367-97…
alobbs authored
46 cherokee_avl_t table;
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
47 cherokee_buffer_t module_dir;
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored
48 cherokee_buffer_t deps_dir;
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
49 } cherokee_plugin_loader_t;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
50
51 #define MODINFO(x) ((cherokee_module_info_t *) (x))
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
52 #define MODLOADER(x) ((cherokee_plugin_loader_t *) (x))
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
53
54
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
55 ret_t cherokee_plugin_loader_init (cherokee_plugin_loader_t *loader);
56 ret_t cherokee_plugin_loader_mrproper (cherokee_plugin_loader_t *loader);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
57
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
58 ret_t cherokee_plugin_loader_set_directory (cherokee_plugin_loader_t *loader, cherokee_buffer_t *dir);
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored
59 ret_t cherokee_plugin_loader_set_deps_dir (cherokee_plugin_loader_t *loader, cherokee_buffer_t *dir);
1e47304 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2701 5dc97367-9…
alobbs authored
60 ret_t cherokee_plugin_loader_load (cherokee_plugin_loader_t *loader, const char *modname);
61 ret_t cherokee_plugin_loader_load_no_global (cherokee_plugin_loader_t *loader, const char *modname);
62 ret_t cherokee_plugin_loader_unload (cherokee_plugin_loader_t *loader, const char *modname);
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
63
1e47304 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2701 5dc97367-9…
alobbs authored
64 ret_t cherokee_plugin_loader_get (cherokee_plugin_loader_t *loader, const char *modname, cherokee_plugin_info_t **info);
65 ret_t cherokee_plugin_loader_get_info (cherokee_plugin_loader_t *loader, const char *modname, cherokee_plugin_info_t **info);
66 ret_t cherokee_plugin_loader_get_sym (cherokee_plugin_loader_t *loader, const char *modname, const char *name, void **sym);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
67
6e104bf @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1506 5dc97367-9…
alobbs authored
68 ret_t cherokee_plugin_loader_get_mods_info (cherokee_plugin_loader_t *loader, cherokee_buffer_t *builtin);
69
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
70 CHEROKEE_END_DECLS
71
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
72 #endif /* CHEROKEE_PLUGIN_LOADER_H */
Something went wrong with that request. Please try again.