run-command: provide in_async query function
[gitweb.git] / run-command.h
index 263b9662adeba011adcd018f77b7ccbbcd53e94a..4aaac7ce0f3a4639aa28845adc9419dbee544746 100644 (file)
@@ -52,7 +52,7 @@ int start_command(struct child_process *);
 int finish_command(struct child_process *);
 int run_command(struct child_process *);
 
-extern char *find_hook(const char *name);
+extern const char *find_hook(const char *name);
 LAST_ARG_MUST_BE_NULL
 extern int run_hook_le(const char *const *env, const char *name, ...);
 extern int run_hook_ve(const char *const *env, const char *name, va_list args);
@@ -113,5 +113,6 @@ struct async {
 
 int start_async(struct async *async);
 int finish_async(struct async *async);
+int in_async(void);
 
 #endif