mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 14:10:11 +01:00
a0174e8666
1. `--<module>-space-before-unit` 2. `--duration-abbreviation` 3. various code refactoring and cleanups
27 lines
661 B
C
27 lines
661 B
C
#pragma once
|
|
|
|
#include "util/FFstrbuf.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct FFVersion
|
|
{
|
|
uint32_t major;
|
|
uint32_t minor;
|
|
uint32_t patch;
|
|
} FFVersion;
|
|
|
|
typedef struct FFColorRangeConfig
|
|
{
|
|
uint8_t green;
|
|
uint8_t yellow;
|
|
} FFColorRangeConfig;
|
|
|
|
#define FF_VERSION_INIT ((FFVersion) {0})
|
|
|
|
void ffParseSemver(FFstrbuf* buffer, const FFstrbuf* major, const FFstrbuf* minor, const FFstrbuf* patch);
|
|
void ffParseGTK(FFstrbuf* buffer, const FFstrbuf* gtk2, const FFstrbuf* gtk3, const FFstrbuf* gtk4);
|
|
|
|
void ffVersionToPretty(const FFVersion* version, FFstrbuf* pretty);
|
|
int8_t ffVersionCompare(const FFVersion* version1, const FFVersion* version2);
|