LIBKYPRINTER(3)

📦 version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

💖 LIBKYPRINTER(3) 💖

okay bestie, buckle up, this is a page from the Library Functions Manual — literally LIBKYPRINTER(3), section 3, the library-functions zone ✨ — and it's all about a little C library called libkyprinter. she's giving printer-info energy and honestly? we love her 🫶


🌸 NAME 🌸

kdk_printer_get_list, kdk_printer_get_available_list, kdk_printer_set_options, kdk_printer_print_download_remote_file, kdk_printer_print_local_file, kdk_printer_cancel_all_jobs, kdk_printer_get_status, kdk_printer_get_job_status, kdk_printer_get_filename, kdk_printer_freeall — 获取打印信息

not me including the Chinese verbatim because it is literally what the page says 💅 the vibe is "get print information", periodt.

✨ SYNOPSIS ✨

first things first, you gotta pull in the header:

#include <libkyprinter.h>

then here's the whole squad, signature by signature, exactly as they are 👑

extern char** kdk_printer_get_list();

extern char** kdk_printer_get_available_list();

extern void kdk_printer_set_options(int number_up, const char *media, const char *number_up_layout, const char *sides);

extern int kdk_printer_print_download_remote_file(const char *url, const char *filepath);

extern int kdk_printer_print_local_file(const char *printername, const char *filepath);

extern int kdk_printer_cancel_all_jobs(const char *printername);

extern int kdk_printer_get_status(const char *printername);

extern int kdk_printer_get_job_status(const char *printername, int jobid);

extern char* kdk_printer_get_filename(const char *url);

extern inline void kdk_printer_freeall(char **ptr);

and when you link it? you link it with -lkyprinter 🔗


🦋 Detailed Description 🦋

This library contains print information.

short. sweet. she said what she said 💀✨

🎀 RETURN VALUE 🎀

The return value is generally specific to the individual function called.

i know, i know, you wanted a big table of ints. nope 🙈 each function does its own thing, so go check the function itself, bestie.

👑 CONFORMING TO 👑

These functions are as per the withdrawn POSIX.1e draft specification.

and the plot twist: the following functions are Linux extensions — kdk_printer_get_list(), kdk_printer_get_available_list(), kdk_printer_set_options(), kdk_printer_print_download_remote_file(), kdk_printer_print_local_file(), kdk_printer_cancel_all_jobs(), kdk_printer_get_status(), kdk_printer_get_job_status(), kdk_printer_get_filename() and kdk_printer_freeall().

also note the word withdrawn up there. POSIX.1e draft said "i'm leaving" and never came back 😭 so don't @ me about it.

🌈 SEE ALSO 🌈

go read these next, no skips allowed 🍓:


and that's the whole page, bestie 💖 you just read the entire thing, ate and left no crumbs 👑

this lil masterpiece comes to you from the Linux Programmer's Manual, dated Fri Aug 25 2023 — so yes, she's got a birthday, and yes, we're celebrating it 🎂✨ mwah, go print something 💅

📦 where this page comes from