static unsigned int plugin_int()
{
- const char *header;
struct aop_pointcut *pc;
pc = aop_match_function_call();
aop_filter_call_pc_by_param(pc, 0, aop_t_unsigned128());
aop_join_on(pc, plugin_join_on_call, "_advice_unsigned128");
+ return 0;
+}
+
+void aop_finish()
+{
+ const char *header;
header = aop_get_arg_value("header");
+
if (header != NULL) {
int res;
res = aop_write_c_header(header, "_INT_HEADER_", NULL, NULL);
if (res != 0)
perror(header);
}
-
- return 0;
}
AOP_MAIN_PROTO aop_main()