MCPcopy Create free account
hub / github.com/acl-dev/acl / plugin_init

Function plugin_init

app/jaws/plugin/cgi/http_plugin.c:9–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7/* ��ʼ���ò���Ļ��� */
8
9static void plugin_init(ACL_DLL_ENV *dll_env)
10{
11 if (dll_env)
12 memcpy(&__dll_env, dll_env, sizeof(ACL_DLL_ENV));
13 else
14 memset(&__dll_env, 0, sizeof(ACL_DLL_ENV));
15 if (__dll_env.logfp) {
16 acl_msg_open2(__dll_env.logfp, "http-gb");
17 acl_msg_info("%s(%d): logger opened, %s", __FUNCTION__,
18 __LINE__, ACL_VSTREAM_PATH(__dll_env.logfp));
19 }
20
21 /* ��� mem_slice �ǿ��������ڴ���������Ƭ���䷽ʽ */
22 if (__dll_env.mem_slice)
23 acl_mem_slice_set(__dll_env.mem_slice);
24}
25
26void http_plugin_init(ACL_DLL_ENV *dll_env, const char *cfg_dir)
27{

Callers 1

http_plugin_initFunction · 0.70

Calls 4

memcpyFunction · 0.85
acl_msg_open2Function · 0.85
acl_msg_infoFunction · 0.85
acl_mem_slice_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…