mirror of
https://git.suyu.dev/suyu/AppImageKit-checkrt.git
synced 2024-05-20 13:07:19 -04:00
17 lines
302 B
C
17 lines
302 B
C
#ifndef ENV_H
|
|
#define END_H
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
pid_t get_parent_pid();
|
|
char* const* read_parent_env();
|
|
void env_free(char* const *env);
|
|
|
|
#define DEBUG(...) do { \
|
|
if (getenv("APPIMAGE_CHECKRT_DEBUG")) \
|
|
printf("APPIMAGE_CHECKRT>> " __VA_ARGS__); \
|
|
} while (0)
|
|
|
|
#endif
|