KDK_EDID_GET_MANUFACTURER(3)
🌸 KDK_EDID_GET_MANUFACTURER 💖
okay bestie, welcome to section 3 of the library functions manual (that's Library Functions Manual for the formal girlies) — this one's about kdk_edid_get_manufacturer and it's lowkey the moment you find out who actually made your monitor 👑
✨ NAME ✨
kdk_edid_get_manufacturer — 获取显示器的厂商 (aka: go get the manufacturer of your screen, periodt)
🎀 SYNOPSIS 🎀
#include <libkyedid.h>
extern char* kdk_edid_get_manufacturer(char *name);
Link with -lkyedid. don't forget it, she will NOT link herself 💅
🦋 Detailed Description 🦋
The main function of the interface is to obtain the manufacturer of the screen. fr fr, that's the whole job. that's the assignment. she ate and left no crumbs.
The argument name is the current interface of the screen. iykyk — you hand her an interface name, she hands you the brand.
💖 RETURN VALUE 💖
- On success, returns the screen manufacturer of type
char*. The returned string needs to be released byfree. yes bestie, you have tofreeit, it's not gonna clean itself up 🙈 - On error, return
NULL. no manufacturer, no vibes.
🌈 EXAMPLES 🌈
here's the whole group-chat tour of the lib, manufacturer included at the end — look at her go:
#include "libkyedid.h"
#include <stdio.h>
#include <stdlib.h>
int main()
{
char** name = kdk_edid_get_interface();
size_t count = 0;
while (name[count])
{
printf("当前接口 = %s0, name[count]);
float gamma = kdk_edid_get_gamma(name[count]);
printf("gamma = %0.2f0, gamma);
float size = kdk_edid_get_size(name[count]);
printf("size = %0.1f0, size);
char *max_resolution = kdk_edid_get_max_resolution(name[count]);
printf("max_resolution = %s0, max_resolution);
free(max_resolution);
char *model = kdk_edid_get_model(name[count]);
printf("model = %s0, model);
free(model);
char *area = kdk_edid_get_visible_area(name[count]);
printf("area = %s0, area);
free(area);
char *manufacturer = kdk_edid_get_manufacturer(name[count]);
printf("manufacturer = %s0, manufacturer);
free(manufacturer);
int week = kdk_edid_get_week(name[count]);
printf("week = %d0, week);
int year = kdk_edid_get_year(name[count]);
printf("year = %d0, year);
int primary = kdk_edid_get_primary(name[count]);
printf("%s0, primary == 1 ? "是" : "否");
char *resolution = kdk_edid_get_resolution(name[count]);
printf("resolution = %s0, resolution);
free(resolution);
char *ratio = kdk_edid_get_ratio(name[count]);
printf("ratio = %s0, ratio);
free(ratio);
char *character = kdk_edid_get_character(name[count]);
printf("character = %s0, character);
free(character);
printf("---------------------------------------0);
count ++;
}
kdk_edid_freeall(name);
return 0;
}
👑 CONFORMING TO 👑
These functions are as per the withdrawn POSIX.1e draft specification. withdrawn, bestie. it's giving vintage. it's giving archive-core.
The following functions are Linux extensions: kdk_edid_get_interface(), kdk_edid_get_gamma(), kdk_edid_get_size(), kdk_edid_get_max_resolution(), kdk_edid_get_model(), kdk_edid_get_visible_area(), kdk_edid_get_week(), kdk_edid_get_year(), kdk_edid_get_primary(), kdk_edid_get_resolution(), kdk_edid_get_ratio(), kdk_edid_get_character() and kdk_edid_freeall().
🌸 SEE ALSO 🌸
the whole squad, go say hi to all of them:
kdk_edid_get_interface(3)kdk_edid_get_gamma(3)kdk_edid_get_size(3)kdk_edid_get_max_resolution(3)kdk_edid_get_model(3)kdk_edid_get_visible_area(3)kdk_edid_get_week(3)kdk_edid_get_year(3)kdk_edid_get_primary(3)kdk_edid_get_resolution(3)kdk_edid_get_ratio(3)kdk_edid_get_character(3)- and
kdk_edid_freeall(3)
💀 reminder bestie: thatchar*fromkdk_edid_get_manufactureris yours now.freeit or it lives in your process forever. no cap.
mwah, that's the page! 🫶 brought to you by the Linux Programmer's Manual, dated Fri Aug 25 2023, living in section 3 as KDK_EDID_G...ANUFACTURER(3). slay, go read your EDID. 💅✨
📦 where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 · LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms