DtInfoShowTopic(API)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

hiii bestie πŸ’– welcome to the DtInfoShowTopic(API) page β€” yes, the manual name is right there, we’re folding it in like a lil name tag πŸŽ€

🌸 NAME 🌸

DtInfoShowTopic β€” bestie, this is the one that provides the user access to a local information corpus at a specific location ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

Copy this exactly, no cap 🫢:

#include &<Dt/Info.h>
DtIfnoShowStatus DtInfoShowTopic(
const char *info_lib,
const char *locator);

πŸ’… DESCRIPTION πŸ’…

Okay so when a client application invokes DtInfoShowTopic, it’s requesting that dtinfo display a particular section of data, aka a topic πŸ‘‘. DtInfoShowTopic sends a ToolTalk message to any active dtinfo process that can access the requested information in the current locale 🌈. The browser is started if it is not already running β€” main character energy, fr fr. This corresponds to invoking the dtinfo command with the -sect option from the command line πŸ’«.

The locator parameter must be a valid, resolvable location in the specified or default infolib for dtinfo to display the location 😭. Unfortunately, there is no way to determine this from the calling application as DtInfoShowTopic will return an ok status as long as the message has been delivered to dtinfo πŸ’€. In the case of an invalid locator, dtinfo will still map to the current workspace of the invoking application and display an error dialog πŸ™ˆ.

This API is implemented in the Desktop Services library, DtSvc 🧚. To access the DtShowInfoTopic API, include the header file Dt/Info.h and link with -lDtSvc ✨.


πŸ“ ARGUMENTS πŸ“

  • *info_lib β€” Specifies a file path, relative or absolute, to an information library. If info_lib is NULL, the browser displays the default information library(s) πŸ’–.
  • *locator β€” Specifies the information library section in generalized locator format πŸŽ€.

πŸ”₯ RETURN VALUE πŸ”₯

  • DtINFO_SHOW_OK β€” ToolTalk request successfully sent πŸ‘‘.
  • DtINFO_SHOW_BAD_LOCATOR β€” The locator argument is NULL 😭.
  • DtINFO_SHOW_TT_OPEN_FAIL β€” Call to tt_open() failed πŸ’€.
  • DtINFO_SHOW_MSG_CREATE_FAIL β€” Call to tt_message_create() failed πŸ™ˆ.
  • DtINFO_SHOW_MSG_SEND_FAIL β€” Call to tt_message_send() failed 🫢.

🌟 ENVIRONMENT 🌟

  • DTINFOLIBSEARCHPATH β€” Search path environment variable for locating information libraries on local and remote mounted systems 🌈.
  • DTINFOLIBDEFAULT β€” Specifies the name of the default information library(s) to load if the locator argument is NULL. Multiple information libraries can be specified by a comma separated list ⭐.

bye bestie 🫢 β€” the footer tag is DtInfoShowTopic(API), and ngl there’s no date on this page, so that’s the whole sign-off βœ¨πŸ’…

πŸ“¦ where this page comes from