QB_LOG_TA...R_DATA_SET(3)

πŸ’– qb_log_target_user_data_set β€” bestie edition πŸ’–

okay so this is a page from the libqb Programmer's Manual (yes, the libqb girlies, we're in the logging chapter rn) and it's giving very short-and-sweet. the name of the whole thing is QB_LOG_TA...R_DATA_SET(3) β€” yes the title is truncated like that, no i don't know why, the manpage girlies did that, we respect it πŸŽ€


✨ NAME ✨

qb_log_target_user_data_set β€” associate user data with this log target. that's it. that's the whole job. attach ur lil data blob to a target. slay πŸ’…


✨ SYNOPSIS ✨

#include <qb/qblog.h>

int32_t qb_log_target_user_data_set(
    int32_t  t,
    void    *user_data
);

look at that. two args. t is the target (int32_t bestie) and user_data is a void * because we don't know what ur shoving in there and honestly? not our business. it returns an int32_t. ✨


✨ DESCRIPTION ✨

okay so the actual prose here is famously minimal, so let me just be real with u: this function associates user data with this log target. the whole description section in the original is basically a single <pink>NOTE</pink> and nothing else, which is iconic honestly, short king behavior πŸ‘‘

🌸 NOTE 🌸

only use this with custom targets

like. ONLY. custom targets. not regular targets. custom ones. no cap. if u try to use it elsewhere that's on u bestie 😭


✨ SEE ALSO ✨

the girlies this function hangs out with at the function (pun intended πŸ’€). read these too, fr fr:

and yeah, qb_log_target_user_data_get(3) is right there in that list β€” it's the getter to this setter. the matching set. the duo. the way that they 🀝. read both, iykyk πŸ’œ

Copyright (c) 2017 Red Hat, Inc. β€” shoutout Red Hat, thanks for the code bestie 🫢


okay that's the whole page, u made it to the end, so proud of u πŸ₯Ή

cute lil sign-off time: this came from LIBQB, dated 2025-09-16, and it lives at QB_LOG_TA...R_DATA_SET(3) in the manual. go set some user data on a custom target and have the best day, mwah πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from