- hooks_program_before = lttv_hooks_new();
- lttv_attributes_set_pointer_pathname(attributes_global, "hooks/program/before",
- hooks_program_before);
+ g_assert(lttv_iattribute_find_by_path(attributes, "hooks/options/before",
+ LTTV_POINTER, &value));
+ *(value.v_pointer) = before_options;
+ g_assert(lttv_iattribute_find_by_path(attributes, "hooks/options/after",
+ LTTV_POINTER, &value));
+ *(value.v_pointer) = after_options;
+ g_assert(lttv_iattribute_find_by_path(attributes, "hooks/main/before",
+ LTTV_POINTER, &value));
+ *(value.v_pointer) = before_main;
+ g_assert(lttv_iattribute_find_by_path(attributes, "hooks/main/after",
+ LTTV_POINTER, &value));
+ *(value.v_pointer) = after_main;