DtInfoShowTopic(API)
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. Ifinfo_libisNULL, 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β Thelocatorargument isNULLπ.DtINFO_SHOW_TT_OPEN_FAILβ Call tott_open()failed π.DtINFO_SHOW_MSG_CREATE_FAILβ Call tott_message_create()failed π.DtINFO_SHOW_MSG_SEND_FAILβ Call tott_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 thelocatorargument isNULL. 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
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms