DTSESSIONRESTOREPATH(3)

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

🌸 NAME 🌸

okay so bestie, this is DtSessionRestorePath β€” the library call that gets you a pathname for the application's state information file. That's the whole name section, and she ate. πŸ’…βœ¨

✨ SYNOPSIS ✨

copy this exactly, character for character, no autocorrect:

#include &<Dt/Session.h>
Boolean DtSessionRestorePath(
Widget widget,
char **restorePath,
char *restoreFile);

πŸ’… DESCRIPTION πŸ’…

The DtSessionRestorePath function returns a pathname to an application's state information. Iconic, honestly. πŸŽ€

Here's the arg breakdown, because we love a clear vibe check:

  • widget β€” the application's top level widget. She's the main character widget, periodt. πŸ‘‘
  • restorePath β€” the address of the character string to receive the pathname of the application's state information file. It's giving out-parameter energy πŸ’…
  • restoreFile β€” the filename of the file containing the application state information. This is the filename specified with the -session option at application invocation. iykyk 🌸

πŸŽ€ RETURN VALUE πŸŽ€

Upon successful completion, the DtSessionRestorePath function returns True; otherwise, it returns False. That's the vibe check: True for slay, False for not-slay. πŸ’–

πŸ¦‹ APPLICATION USAGE πŸ¦‹

  • The application must support the -session command-line option. No cap, it's required. ✨
  • The application must use XtFree(3) to free data returned in *restorePath. Do not forget, bestie β€” free your data, protect your peace. 🫢

πŸ”₯ SEE ALSO πŸ”₯


that's the DtSessionRestorePath(library call) page, bestie β€” library call, no cap, and that's the sign-off πŸ’–πŸ«Ά

πŸ“¦ where this page comes from