mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 04:04:17 +01:00
20 lines
578 B
C
20 lines
578 B
C
#include "packages.h"
|
|
#include "detection/internal.h"
|
|
|
|
#include <stddef.h>
|
|
|
|
void ffDetectPackagesImpl(const FFinstance* instance, FFPackagesResult* result);
|
|
|
|
const FFPackagesResult* ffDetectPackages(const FFinstance* instance)
|
|
{
|
|
FF_DETECTION_INTERNAL_GUARD(FFPackagesResult,
|
|
memset(&result, 0, sizeof(FFPackagesResult));
|
|
ffStrbufInit(&result.pacmanBranch);
|
|
|
|
ffDetectPackagesImpl(instance, &result);
|
|
|
|
for(uint32_t i = 0; i < offsetof(FFPackagesResult, all) / sizeof(uint32_t); ++i)
|
|
result.all += ((uint32_t *)&result)[i];
|
|
);
|
|
}
|