]> git.ipfire.org Git - thirdparty/git.git/blobdiff - trace2/tr2_tgt.h
tr2: log parent process name
[thirdparty/git.git] / trace2 / tr2_tgt.h
index 7b904692123e28074458fce0c0afe06922caa607..1f66fd657302510fb9d6a08d2f71ec846ed33c16 100644 (file)
@@ -27,6 +27,8 @@ typedef void(tr2_tgt_evt_error_va_fl_t)(const char *file, int line,
 
 typedef void(tr2_tgt_evt_command_path_fl_t)(const char *file, int line,
                                            const char *command_path);
+typedef void(tr2_tgt_evt_command_ancestry_fl_t)(const char *file, int line,
+                                               const char **parent_names);
 typedef void(tr2_tgt_evt_command_name_fl_t)(const char *file, int line,
                                            const char *name,
                                            const char *hierarchy);
@@ -108,6 +110,7 @@ struct tr2_tgt {
        tr2_tgt_evt_atexit_t                    *pfn_atexit;
        tr2_tgt_evt_error_va_fl_t               *pfn_error_va_fl;
        tr2_tgt_evt_command_path_fl_t           *pfn_command_path_fl;
+       tr2_tgt_evt_command_ancestry_fl_t       *pfn_command_ancestry_fl;
        tr2_tgt_evt_command_name_fl_t           *pfn_command_name_fl;
        tr2_tgt_evt_command_mode_fl_t           *pfn_command_mode_fl;
        tr2_tgt_evt_alias_fl_t                  *pfn_alias_fl;