mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
79b7b15b46
Fix #738
33 lines
759 B
C
33 lines
759 B
C
#pragma once
|
|
|
|
#include "fastfetch.h"
|
|
|
|
typedef struct FFShellResult
|
|
{
|
|
FFstrbuf processName;
|
|
FFstrbuf exe; //Actually arg0 in *nix
|
|
const char* exeName; //pointer to a char in exe
|
|
FFstrbuf exePath; //Full real path to executable file
|
|
FFstrbuf prettyName;
|
|
FFstrbuf version;
|
|
uint32_t pid;
|
|
uint32_t ppid;
|
|
int32_t tty;
|
|
} FFShellResult;
|
|
|
|
typedef struct FFTerminalResult
|
|
{
|
|
FFstrbuf processName;
|
|
FFstrbuf exe;
|
|
FFstrbuf prettyName;
|
|
const char* exeName; //pointer to a char in exe
|
|
FFstrbuf exePath; //Full real path to executable file
|
|
FFstrbuf version;
|
|
FFstrbuf tty;
|
|
uint32_t pid;
|
|
uint32_t ppid;
|
|
} FFTerminalResult;
|
|
|
|
const FFShellResult* ffDetectShell();
|
|
const FFTerminalResult* ffDetectTerminal();
|