KDK_BURIED_POINT(3)
👑 kdk_buried_point — the manual page, bestie edition 💅
okay so this is the KDK_BURIED_POINT(3) page, straight out of the Library Functions Manual, and babes… it's giving diagnostics library realness. sit down, grab a strawberry 🍓, and let's get into it.
✨ NAME ✨
kdk_buried_point — 上传埋点数据
(that's "upload buried point data" for those of us not fluent, but the function is literally just called kdk_buried_point and it does exactly that 💖)
🌈 SYNOPSIS 🌈
#include <libkydiagnostics.h>
🌸 Functions 🌸
int kdk_buried_point (char * appName, char * messageType, KBuriedPoint *
data, int length)
上传埋点数据. yeah that's the whole vibe. ✨
Parameters
appName: 包名 — the package name, like who are you, what's your name, what's your sign 🎀messageType: 消息类型 — the message type, the category of the tea being spilleddata: 埋点数据数组 — the array of buried point data, and this is what one single entry looks like:
typedef struct {
const char *key;
const char *value;
} KBuriedPoint;
length: 数组长度 — the length of that array. yes bestie, you have to tell it how many. it's not psychic. 😭
Return values
0: 成功 — success!! slay!! 🎉-1: 失败 — failure, we don't talk about it 💀
Link with -lkydiagnostics. do NOT forget this or the linker will simply not know you. periodt.
💜 Detailed Description 💜
接口的主要功能是上传埋点数据
(the main job of this interface is to upload buried point data. that's it. that's the whole function. it's a one-trick pony and honestly? iconic.)
🦋 EXAMPLES 🦋
here's the whole thing, look at her go:
#include <stdio.h>
#include "libkydiagnostics.h"
int main(void)
{
char appName[] = "kylin-font-viewer";
char messageType[] = "FunctionType";
KBuriedPoint pt[2];
pt[0].key = "testkey";
pt[0].value = "testvalue";
pt[1].key = "testkey1";
pt[1].value = "testvalue1";
if (kdk_buried_point(appName , messageType , pt , 2)) {
printf("buried point fail !0);
return -1;
}
printf("buried point success !0);
return 0;
}
ngl that's copied character-for-character from the source, quotes and all, so don't come for me about the printf lines — I'm just the messenger 🫶
🎀 CONFORMING TO 🎀
These functions are as per the withdrawn POSIX.1e draft specification. so… the spec left the group chat and these functions stayed. that's the energy. 🙈
🌟 SEE ALSO 🌟
🧚 Author 🧚
Generated automatically by Doxygen for libkydiagnostics.h from the source code. so no human author to thank, the robot did it, and honestly the robot ate. 🤖✨
and that's the page!! mwah 💋 this beauty is from My Project, dated Fri Sep 22 2023 — go forth and upload those buried points, bestie, you've got this. 👑💖
📦 where this page comes from
- arch rolling: libkysdk-base 3.0.1.1-1 · Apache-2.0 AND LGPL-3.0-or-later AND MIT
- ubuntu resolute: libkysdk-base-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-or-later
- ubuntu stonking: libkysdk-base-dev 3.0.1.3-1build1 · 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