summaryrefslogtreecommitdiff
path: root/src/plugin.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-02-03 23:27:57 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2019-02-04 02:25:48 -0500
commitfb9b8ad8ae515ac1568b49d46ffc2775d15d1e0e (patch)
tree9002b132dc4f13f6e2f814c6dff3613d9b5ea085 /src/plugin.h
parent413c0e557e4c813e726b72ce08ac3c78ab5d1888 (diff)
downloadlighttpd-git-fb9b8ad8ae515ac1568b49d46ffc2775d15d1e0e.tar.gz
[core] mark startup/shutdown funcs cold
Diffstat (limited to 'src/plugin.h')
-rw-r--r--src/plugin.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/plugin.h b/src/plugin.h
index 97961a9b..2e23488c 100644
--- a/src/plugin.h
+++ b/src/plugin.h
@@ -14,12 +14,13 @@
static handler_t x(server *srv, connection *con, void *p_d)
#define INIT_FUNC(x) \
+ __attribute_cold__ \
static void *x(void)
-#define FREE_FUNC SERVER_FUNC
+#define FREE_FUNC __attribute_cold__ SERVER_FUNC
+#define SETDEFAULTS_FUNC __attribute_cold__ SERVER_FUNC
+#define SIGHUP_FUNC __attribute_cold__ SERVER_FUNC
#define TRIGGER_FUNC SERVER_FUNC
-#define SETDEFAULTS_FUNC SERVER_FUNC
-#define SIGHUP_FUNC SERVER_FUNC
#define SUBREQUEST_FUNC CONNECTION_FUNC
#define PHYSICALPATH_FUNC CONNECTION_FUNC
@@ -68,7 +69,10 @@ typedef struct {
void *lib;
} plugin;
+__attribute_cold__
int plugins_load(server *srv);
+
+__attribute_cold__
void plugins_free(server *srv);
handler_t plugins_call_handle_uri_raw(server *srv, connection *con);
@@ -86,11 +90,18 @@ handler_t plugins_call_handle_connection_close(server *srv, connection *con);
handler_t plugins_call_connection_reset(server *srv, connection *con);
handler_t plugins_call_handle_trigger(server *srv);
-handler_t plugins_call_handle_sighup(server *srv);
handler_t plugins_call_handle_waitpid(server *srv, pid_t pid, int status);
+__attribute_cold__
+handler_t plugins_call_handle_sighup(server *srv);
+
+__attribute_cold__
handler_t plugins_call_init(server *srv);
+
+__attribute_cold__
handler_t plugins_call_set_defaults(server *srv);
+
+__attribute_cold__
handler_t plugins_call_cleanup(server *srv);
#endif