Lines Matching refs:env
40 EXPORT int init(struct module_env* env, int id) { in init() argument
42 struct dynlibmod_env* de = (struct dynlibmod_env*) env->modinfo[id]; in init()
45 NULL, env, id); in init()
46 struct dynlibmod_env* local_env = env->modinfo[id]; in init()
53 EXPORT void deinit(struct module_env* env, int id) { in deinit() argument
55 struct dynlibmod_env* de = (struct dynlibmod_env*) env->modinfo[id]; in deinit()
56 de->inplace_cb_delete_wrapped(env, inplace_cb_reply, id); in deinit()
73 struct dynlibmod_env* env = qstate->env->modinfo[id]; in operate() local
74 if (env->dyn_env == NULL) { in operate()
75 env->dyn_env = calloc(3, sizeof(int)); in operate()
76 ((int *)env->dyn_env)[0] = 42; in operate()
77 ((int *)env->dyn_env)[1] = 102; in operate()
78 ((int *)env->dyn_env)[2] = 192; in operate()
102 struct dynlibmod_env* env = qstate->env->modinfo[id]; in clear() local
103 if (env->dyn_env != NULL) { in clear()
104 free(env->dyn_env); in clear()
105 env->dyn_env = NULL; in clear()
111 EXPORT size_t get_mem(struct module_env* env, int id) { in get_mem() argument
124 struct dynlibmod_env* env = qstate->env->modinfo[id]; in reply_callback() local
125 if (env->dyn_env != NULL) { in reply_callback()
127 ((int *)env->dyn_env)[0], in reply_callback()
128 ((int *)env->dyn_env)[1], in reply_callback()
129 ((int *)env->dyn_env)[2]); in reply_callback()