JACK Plugin Launcher
Loading...
Searching...
No Matches
loader.h
Go to the documentation of this file.
1/* -*- Mode: C ; c-basic-offset: 2 -*- */
2/*
3 * SPDX-FileCopyrightText: Copyright © 2009-2023 Nedko Arnaudov
4 * SPDX-License-Identifier: GPL-2.0-or-later */
11#ifndef JPL_H__6D6AF97A_DA41_46D6_954B_A121B25E96CE__INCLUDED
12#define JPL_H__6D6AF97A_DA41_46D6_954B_A121B25E96CE__INCLUDED
13
15typedef struct jpl_child_tag
16{
17 int unused;
19
26typedef
27void
29 void * ctx,
30 int exit_status);
31
40typedef
41void
43 void * ctx,
44 bool error,
45 const char * format,
46 ...);
47
54void
56 jpl_on_child_exit on_child_exit,
57 jpl_log_callback log_callback);
58
79bool
81 void * ctx,
82 const char * working_dir,
83 bool run_in_terminal,
84 const char * commandline,
85 const char * const * env_vars,
86 const char * const * ldpreload,
87 pid_t * pid_ptr,
88 jpl_child_handle * child_handle_ptr);
89
93void
95 void);
96
100void
102 void);
103
107unsigned int
109 void);
110
111#endif /* #ifndef JPL_H__6D6AF97A_DA41_46D6_954B_A121B25E96CE__INCLUDED */
void jpl_init(jpl_on_child_exit on_child_exit, jpl_log_callback log_callback)
initialize the launcher module
void jpl_run(void)
Read subprocess output and call the callbacks.
unsigned int jpl_get_app_count(void)
get number of child processes
void(* jpl_log_callback)(void *ctx, bool error, const char *format,...)
function type for callback called on child exit
Definition loader.h:42
struct jpl_child_tag * jpl_child_handle
void(* jpl_on_child_exit)(void *ctx, int exit_status)
function type for callback called on child exit
Definition loader.h:28
void jpl_uninit(void)
uninitialize the launcher module
bool jpl_execute(void *ctx, const char *working_dir, bool run_in_terminal, const char *commandline, const char *const *env_vars, const char *const *ldpreload, pid_t *pid_ptr, jpl_child_handle *child_handle_ptr)
run child program in a subprocess
Definition loader.h:16
int unused
Definition loader.h:17