Turn 'Filename' into a dynamically allocated type with no arbitrary
[u/mdw/putty] / windows / winstuff.h
CommitLineData
8c3cd914 1/*
2 * winstuff.h: Windows-specific inter-module stuff.
3 */
4
f7f27309 5#ifndef PUTTY_WINSTUFF_H
6#define PUTTY_WINSTUFF_H
7
7440fd44 8#ifndef AUTO_WINSOCK
9#include <winsock2.h>
10#endif
11#include <windows.h>
9a30e26b 12#include <stdio.h> /* for FILENAME_MAX */
13
fe8abbf4 14#include "tree234.h"
15
16#include "winhelp.h"
17
9a30e26b 18struct Filename {
962468d4 19 char *path;
9a30e26b 20};
962468d4 21#define f_open(filename, mode, isprivate) ( fopen((filename)->path, (mode)) )
9a30e26b 22
23struct FontSpec {
ae62eaeb 24 char *name;
9a30e26b 25 int isbold;
26 int height;
27 int charset;
28};
ae62eaeb 29struct FontSpec *fontspec_new(const char *name,
30 int bold, int height, int charset);
9a30e26b 31
17c7fed1 32#ifndef CLEARTYPE_QUALITY
33#define CLEARTYPE_QUALITY 5
34#endif
35#define FONT_QUALITY(fq) ( \
36 (fq) == FQ_DEFAULT ? DEFAULT_QUALITY : \
37 (fq) == FQ_ANTIALIASED ? ANTIALIASED_QUALITY : \
38 (fq) == FQ_NONANTIALIASED ? NONANTIALIASED_QUALITY : \
39 CLEARTYPE_QUALITY)
40
61ef0c16 41#define PLATFORM_IS_UTF16 /* enable UTF-16 processing when exchanging
42 * wchar_t strings with environment */
43
158cb9b1 44/*
45 * Where we can, we use GetWindowLongPtr and friends because they're
46 * more useful on 64-bit platforms, but they're a relatively recent
47 * innovation, missing from VC++ 6 and older MinGW. Degrade nicely.
48 * (NB that on some systems, some of these things are available but
49 * not others...)
50 */
17c7fed1 51
158cb9b1 52#ifndef GCLP_HCURSOR
53/* GetClassLongPtr and friends */
54#undef GetClassLongPtr
55#define GetClassLongPtr GetClassLong
56#undef SetClassLongPtr
57#define SetClassLongPtr SetClassLong
58#define GCLP_HCURSOR GCL_HCURSOR
59/* GetWindowLongPtr and friends */
60#undef GetWindowLongPtr
17c7fed1 61#define GetWindowLongPtr GetWindowLong
158cb9b1 62#undef SetWindowLongPtr
17c7fed1 63#define SetWindowLongPtr SetWindowLong
158cb9b1 64#undef GWLP_USERDATA
17c7fed1 65#define GWLP_USERDATA GWL_USERDATA
158cb9b1 66#undef DWLP_MSGRESULT
17c7fed1 67#define DWLP_MSGRESULT DWL_MSGRESULT
158cb9b1 68/* Since we've clobbered the above functions, we should clobber the
69 * associated type regardless of whether it's defined. */
70#undef LONG_PTR
71#define LONG_PTR LONG
17c7fed1 72#endif
73
2979718a 74#define BOXFLAGS DLGWINDOWEXTRA
1e5eefb6 75#define BOXRESULT (DLGWINDOWEXTRA + sizeof(LONG_PTR))
8ee3ff16 76#define DF_END 0x0001
77
8c3cd914 78/*
d0f67860 79 * Dynamically linked functions. These come in two flavours:
80 *
81 * - GET_WINDOWS_FUNCTION does not expose "name" to the preprocessor,
82 * so will always dynamically link against exactly what is specified
83 * in "name". If you're not sure, use this one.
84 *
85 * - GET_WINDOWS_FUNCTION_PP allows "name" to be redirected via
86 * preprocessor definitions like "#define foo bar"; this is principally
87 * intended for the ANSI/Unicode DoSomething/DoSomethingA/DoSomethingW.
88 * If your function has an argument of type "LPTSTR" or similar, this
89 * is the variant to use.
90 * (However, it can't always be used, as it trips over more complicated
91 * macro trickery such as the WspiapiGetAddrInfo wrapper for getaddrinfo.)
92 *
93 * (DECL_WINDOWS_FUNCTION works with both these variants.)
65d1432e 94 */
95#define DECL_WINDOWS_FUNCTION(linkage, rettype, name, params) \
96 typedef rettype (WINAPI *t_##name) params; \
97 linkage t_##name p_##name
98#define STR1(x) #x
99#define STR(x) STR1(x)
d0f67860 100#define GET_WINDOWS_FUNCTION_PP(module, name) \
a197b711 101 (p_##name = module ? (t_##name) GetProcAddress(module, STR(name)) : NULL)
d0f67860 102#define GET_WINDOWS_FUNCTION(module, name) \
a197b711 103 (p_##name = module ? (t_##name) GetProcAddress(module, #name) : NULL)
65d1432e 104
105/*
8c3cd914 106 * Global variables. Most modules declare these `extern', but
107 * window.c will do `#define PUTTY_DO_GLOBALS' before including this
108 * module, and so will get them properly defined.
2979718a 109*/
f7f27309 110#ifndef GLOBAL
8c3cd914 111#ifdef PUTTY_DO_GLOBALS
112#define GLOBAL
113#else
114#define GLOBAL extern
115#endif
f7f27309 116#endif
117
a8327734 118#ifndef DONE_TYPEDEFS
119#define DONE_TYPEDEFS
4a693cfc 120typedef struct conf_tag Conf;
a8327734 121typedef struct backend_tag Backend;
122typedef struct terminal_tag Terminal;
123#endif
124
f7f27309 125#define PUTTY_REG_POS "Software\\SimonTatham\\PuTTY"
126#define PUTTY_REG_PARENT "Software\\SimonTatham"
127#define PUTTY_REG_PARENT_CHILD "PuTTY"
128#define PUTTY_REG_GPARENT "Software"
129#define PUTTY_REG_GPARENT_CHILD "SimonTatham"
130
073e9f42 131/* Result values for the jumplist registry functions. */
132#define JUMPLISTREG_OK 0
133#define JUMPLISTREG_ERROR_INVALID_PARAMETER 1
134#define JUMPLISTREG_ERROR_KEYOPENCREATE_FAILURE 2
135#define JUMPLISTREG_ERROR_VALUEREAD_FAILURE 3
136#define JUMPLISTREG_ERROR_VALUEWRITE_FAILURE 4
137#define JUMPLISTREG_ERROR_INVALID_VALUE 5
138
a9dc49af 139#define PUTTY_HELP_FILE "putty.hlp"
cb2708d3 140#define PUTTY_CHM_FILE "putty.chm"
a9dc49af 141#define PUTTY_HELP_CONTENTS "putty.cnt"
142
f7f27309 143#define GETTICKCOUNT GetTickCount
144#define CURSORBLINK GetCaretBlinkTime()
145#define TICKSPERSEC 1000 /* GetTickCount returns milliseconds */
146
147#define DEFAULT_CODEPAGE CP_ACP
148
149typedef HDC Context;
8c3cd914 150
b3d375b2 151typedef unsigned int uint32; /* int is 32-bits on Win32 and Win64. */
152#define PUTTY_UINT32_DEFINED
153
86557057 154#ifndef NO_GSSAPI
155/*
156 * GSS-API stuff
157 */
b3d375b2 158#define GSS_CC CALLBACK
159/*
86557057 160typedef struct Ssh_gss_buf {
b3d375b2 161 size_t length;
86557057 162 char *value;
163} Ssh_gss_buf;
164
165#define SSH_GSS_EMPTY_BUF (Ssh_gss_buf) {0,NULL}
2c2bce14 166typedef void *Ssh_gss_name;
b3d375b2 167*/
86557057 168#endif
169
f7f27309 170/*
5321c0c6 171 * Window handles for the windows that can be running during a
f7f27309 172 * PuTTY session.
173 */
5321c0c6 174GLOBAL HWND hwnd; /* the main terminal window */
f7f27309 175GLOBAL HWND logbox;
176
177/*
178 * The all-important instance handle.
179 */
8c3cd914 180GLOBAL HINSTANCE hinst;
181
182/*
cb2708d3 183 * Help file stuff in winhelp.c.
6b78788a 184 */
cb2708d3 185void init_help(void);
186void shutdown_help(void);
187int has_help(void);
188void launch_help(HWND hwnd, const char *topic);
189void quit_help(HWND hwnd);
6b78788a 190
191/*
a8327734 192 * The terminal and logging context are notionally local to the
193 * Windows front end, but they must be shared between window.c and
0b4f0bc0 194 * windlg.c. Likewise the saved-sessions list.
a8327734 195 */
196GLOBAL Terminal *term;
197GLOBAL void *logctx;
198
604fab0c 199#define WM_NETEVENT (WM_APP + 5)
f7f27309 200
201/*
e6346999 202 * On Windows, we send MA_2CLK as the only event marking the second
203 * press of a mouse button. Compare unix.h.
204 */
205#define MULTICLICK_ONLY_EVENT 1
206
207/*
208 * On Windows, data written to the clipboard must be NUL-terminated.
209 */
210#define SELECTION_NUL_TERMINATED 1
211
212/*
0f351587 213 * On Windows, copying to the clipboard terminates lines with CRLF.
214 */
215#define SEL_NL { 13, 10 }
216
217/*
2f92b717 218 * sk_getxdmdata() does not exist under Windows (not that I
219 * couldn't write it if I wanted to, but I haven't bothered), so
0a4022a1 220 * it's a macro which always returns NULL. With any luck this will
2f92b717 221 * cause the compiler to notice it can optimise away the
222 * implementation of XDM-AUTHORIZATION-1 in x11fwd.c :-)
223 */
0a4022a1 224#define sk_getxdmdata(socket, lenp) (NULL)
2f92b717 225
226/*
fe8abbf4 227 * File-selector filter strings used in the config box. On Windows,
228 * these strings are of exactly the type needed to go in
229 * `lpstrFilter' in an OPENFILENAME structure.
230 */
231#define FILTER_KEY_FILES ("PuTTY Private Key Files (*.ppk)\0*.ppk\0" \
232 "All Files (*.*)\0*\0\0\0")
233#define FILTER_WAVE_FILES ("Wave Files (*.wav)\0*.WAV\0" \
234 "All Files (*.*)\0*\0\0\0")
1e00c92b 235#define FILTER_DYNLIB_FILES ("Dynamic Library Files (*.dll)\0*.dll\0" \
236 "All Files (*.*)\0*\0\0\0")
fe8abbf4 237
238/*
2ac3322e 239 * On some versions of Windows, it has been known for WM_TIMER to
240 * occasionally get its callback time simply wrong, and call us
241 * back several minutes early. Defining these symbols enables
242 * compensation code in timing.c.
243 */
244#define TIMING_SYNC
245#define TIMING_SYNC_TICKCOUNT
246
247/*
7440fd44 248 * winnet.c dynamically loads WinSock 2 or WinSock 1 depending on
249 * what it can get, which means any WinSock routines used outside
250 * that module must be exported from it as function pointers. So
251 * here they are.
252 */
65d1432e 253DECL_WINDOWS_FUNCTION(GLOBAL, int, WSAAsyncSelect,
254 (SOCKET, HWND, u_int, long));
255DECL_WINDOWS_FUNCTION(GLOBAL, int, WSAEventSelect,
256 (SOCKET, WSAEVENT, long));
257DECL_WINDOWS_FUNCTION(GLOBAL, int, select,
258 (int, fd_set FAR *, fd_set FAR *,
259 fd_set FAR *, const struct timeval FAR *));
260DECL_WINDOWS_FUNCTION(GLOBAL, int, WSAGetLastError, (void));
261DECL_WINDOWS_FUNCTION(GLOBAL, int, WSAEnumNetworkEvents,
262 (SOCKET, WSAEVENT, LPWSANETWORKEVENTS));
7440fd44 263
39934deb 264extern int socket_writable(SOCKET skt);
265
9f7ebadc 266extern void socket_reselect_all(void);
267
7440fd44 268/*
8c3cd914 269 * Exports from winctrls.c.
270 */
271
272struct ctlpos {
273 HWND hwnd;
274 WPARAM font;
275 int dlu4inpix;
276 int ypos, width;
277 int xoff;
3ac9cd9f 278 int boxystart, boxid;
8c3cd914 279 char *boxtext;
280};
281
ca20bfcf 282/*
c0a81592 283 * Exports from winutils.c.
284 */
9754e5ca 285typedef struct filereq_tag filereq; /* cwd for file requester */
286BOOL request_file(filereq *state, OPENFILENAME *of, int preserve, int save);
287filereq *filereq_new(void);
288void filereq_free(filereq *state);
690695e0 289int message_box(LPCTSTR text, LPCTSTR caption, DWORD style, DWORD helpctxid);
d3a1a808 290void split_into_argv(char *, int *, char ***, char ***);
c0a81592 291
292/*
ca20bfcf 293 * Private structure for prefslist state. Only in the header file
294 * so that we can delegate allocation to callers.
295 */
296struct prefslist {
297 int listid, upbid, dnbid;
298 int srcitem;
299 int dummyitem;
300 int dragging;
301};
302
f7f27309 303/*
fe8abbf4 304 * This structure is passed to event handler functions as the `dlg'
305 * parameter, and hence is passed back to winctrls access functions.
306 */
307struct dlgparam {
308 HWND hwnd; /* the hwnd of the dialog box */
309 struct winctrls *controltrees[8]; /* can have several of these */
310 int nctrltrees;
f6f450e2 311 char *wintitle; /* title of actual window */
fe8abbf4 312 char *errtitle; /* title of error sub-messageboxes */
313 void *data; /* data to pass in refresh events */
314 union control *focused, *lastfocused; /* which ctrl has focus now/before */
4e6d4091 315 char shortcuts[128]; /* track which shortcuts in use */
fe8abbf4 316 int coloursel_wanted; /* has an event handler asked for
317 * a colour selector? */
fe8abbf4 318 struct { unsigned char r, g, b, ok; } coloursel_result; /* 0-255 */
4e6d4091 319 tree234 *privdata; /* stores per-control private data */
fe8abbf4 320 int ended, endresult; /* has the dialog been ended? */
14ce9887 321 int fixed_pitch_fonts; /* are we constrained to fixed fonts? */
fe8abbf4 322};
323
324/*
f7f27309 325 * Exports from winctrls.c.
326 */
8c3cd914 327void ctlposinit(struct ctlpos *cp, HWND hwnd,
32874aea 328 int leftborder, int rightborder, int topborder);
ca20bfcf 329HWND doctl(struct ctlpos *cp, RECT r,
32874aea 330 char *wclass, int wstyle, int exstyle, char *wtext, int wid);
8c3cd914 331void bartitle(struct ctlpos *cp, char *name, int id);
3ac9cd9f 332void beginbox(struct ctlpos *cp, char *name, int idbox);
8c3cd914 333void endbox(struct ctlpos *cp);
e73667f3 334void editboxfw(struct ctlpos *cp, int password, char *text,
335 int staticid, int editid);
32874aea 336void radioline(struct ctlpos *cp, char *text, int id, int nacross, ...);
d74d141c 337void bareradioline(struct ctlpos *cp, int nacross, ...);
8c3cd914 338void radiobig(struct ctlpos *cp, char *text, int id, ...);
339void checkbox(struct ctlpos *cp, char *text, int id);
66ee282a 340void statictext(struct ctlpos *cp, char *text, int lines, int id);
8c3cd914 341void staticbtn(struct ctlpos *cp, char *stext, int sid,
32874aea 342 char *btext, int bid);
af282e3b 343void static2btn(struct ctlpos *cp, char *stext, int sid,
344 char *btext1, int bid1, char *btext2, int bid2);
8c3cd914 345void staticedit(struct ctlpos *cp, char *stext,
32874aea 346 int sid, int eid, int percentedit);
2c9c6388 347void staticddl(struct ctlpos *cp, char *stext,
348 int sid, int lid, int percentlist);
b8ae1f0f 349void combobox(struct ctlpos *cp, char *text, int staticid, int listid);
6e522441 350void staticpassedit(struct ctlpos *cp, char *stext,
32874aea 351 int sid, int eid, int percentedit);
6e522441 352void bigeditctrl(struct ctlpos *cp, char *stext,
32874aea 353 int sid, int eid, int lines);
354void ersatztab(struct ctlpos *cp, char *stext, int sid, int lid, int s2id);
8c3cd914 355void editbutton(struct ctlpos *cp, char *stext, int sid,
32874aea 356 int eid, char *btext, int bid);
8c3cd914 357void sesssaver(struct ctlpos *cp, char *text,
32874aea 358 int staticid, int editid, int listid, ...);
8c3cd914 359void envsetter(struct ctlpos *cp, char *stext, int sid,
32874aea 360 char *e1stext, int e1sid, int e1id,
361 char *e2stext, int e2sid, int e2id,
362 int listid, char *b1text, int b1id, char *b2text, int b2id);
8c3cd914 363void charclass(struct ctlpos *cp, char *stext, int sid, int listid,
32874aea 364 char *btext, int bid, int eid, char *s2text, int s2id);
8c3cd914 365void colouredit(struct ctlpos *cp, char *stext, int sid, int listid,
32874aea 366 char *btext, int bid, ...);
fe8abbf4 367void prefslist(struct prefslist *hdl, struct ctlpos *cp, int lines,
368 char *stext, int sid, int listid, int upbid, int dnbid);
ca20bfcf 369int handle_prefslist(struct prefslist *hdl,
370 int *array, int maxmemb,
371 int is_dlmsg, HWND hwnd,
372 WPARAM wParam, LPARAM lParam);
6e522441 373void progressbar(struct ctlpos *cp, int id);
d74d141c 374void fwdsetter(struct ctlpos *cp, int listid, char *stext, int sid,
375 char *e1stext, int e1sid, int e1id,
376 char *e2stext, int e2sid, int e2id,
a4b92c62 377 char *btext, int bid,
378 char *r1text, int r1id, char *r2text, int r2id);
f7f27309 379
14ce9887 380void dlg_auto_set_fixed_pitch_flag(void *dlg);
381int dlg_get_fixed_pitch_flag(void *dlg);
382void dlg_set_fixed_pitch_flag(void *dlg, int flag);
383
fe8abbf4 384#define MAX_SHORTCUTS_PER_CTRL 16
385
386/*
387 * This structure is what's stored for each `union control' in the
388 * portable-dialog interface.
389 */
390struct winctrl {
391 union control *ctrl;
392 /*
393 * The control may have several components at the Windows
394 * level, with different dialog IDs. To avoid needing N
395 * separate platformsidectrl structures (which could be stored
396 * separately in a tree234 so that lookup by ID worked), we
397 * impose the constraint that those IDs must be in a contiguous
398 * block.
399 */
400 int base_id;
401 int num_ids;
402 /*
403 * Remember what keyboard shortcuts were used by this control,
404 * so that when we remove it again we can take them out of the
405 * list in the dlgparam.
406 */
407 char shortcuts[MAX_SHORTCUTS_PER_CTRL];
408 /*
409 * Some controls need a piece of allocated memory in which to
410 * store temporary data about the control.
411 */
412 void *data;
413};
414/*
415 * And this structure holds a set of the above, in two separate
416 * tree234s so that it can find an item by `union control' or by
417 * dialog ID.
418 */
419struct winctrls {
420 tree234 *byctrl, *byid;
421};
d1582b2e 422struct controlset;
423struct controlbox;
424
fe8abbf4 425void winctrl_init(struct winctrls *);
426void winctrl_cleanup(struct winctrls *);
427void winctrl_add(struct winctrls *, struct winctrl *);
428void winctrl_remove(struct winctrls *, struct winctrl *);
429struct winctrl *winctrl_findbyctrl(struct winctrls *, union control *);
430struct winctrl *winctrl_findbyid(struct winctrls *, int);
431struct winctrl *winctrl_findbyindex(struct winctrls *, int);
432void winctrl_layout(struct dlgparam *dp, struct winctrls *wc,
433 struct ctlpos *cp, struct controlset *s, int *id);
434int winctrl_handle_command(struct dlgparam *dp, UINT msg,
435 WPARAM wParam, LPARAM lParam);
d1582b2e 436void winctrl_rem_shortcuts(struct dlgparam *dp, struct winctrl *c);
437int winctrl_context_help(struct dlgparam *dp, HWND hwnd, int id);
438
4e6d4091 439void dp_init(struct dlgparam *dp);
440void dp_add_tree(struct dlgparam *dp, struct winctrls *tree);
441void dp_cleanup(struct dlgparam *dp);
442
d1582b2e 443/*
444 * Exports from wincfg.c.
445 */
446void win_setup_config_box(struct controlbox *b, HWND *hwndp, int has_help,
8a7f1392 447 int midsession, int protocol);
fe8abbf4 448
f7f27309 449/*
450 * Exports from windlg.c.
451 */
452void defuse_showwindow(void);
453int do_config(void);
f89c3294 454int do_reconfig(HWND, int);
f7f27309 455void showeventlog(HWND);
456void showabout(HWND);
f7f27309 457void force_normal(HWND hwnd);
d1582b2e 458void modal_about_box(HWND hwnd);
459void show_help(HWND hwnd);
f7f27309 460
f7f27309 461/*
8ee3ff16 462 * Exports from winmisc.c.
463 */
4c48c989 464extern OSVERSIONINFO osVersion;
465BOOL init_winver(void);
bda368a5 466HMODULE load_system32_dll(const char *libname);
4c48c989 467
8ee3ff16 468/*
f7f27309 469 * Exports from sizetip.c.
470 */
471void UpdateSizeTip(HWND src, int cx, int cy);
472void EnableSizeTip(int bEnable);
473
facd762c 474/*
475 * Exports from unicode.c.
476 */
07b2a9cd 477struct unicode_data;
4a693cfc 478void init_ucs(Conf *, struct unicode_data *);
facd762c 479
c44bf5bd 480/*
34292b1d 481 * Exports from winhandl.c.
482 */
bdebd7e9 483#define HANDLE_FLAG_OVERLAPPED 1
484#define HANDLE_FLAG_IGNOREEOF 2
799e067e 485#define HANDLE_FLAG_UNITBUFFER 4
34292b1d 486struct handle;
487typedef int (*handle_inputfn_t)(struct handle *h, void *data, int len);
488typedef void (*handle_outputfn_t)(struct handle *h, int new_backlog);
0e03ceff 489struct handle *handle_input_new(HANDLE handle, handle_inputfn_t gotdata,
bdebd7e9 490 void *privdata, int flags);
0e03ceff 491struct handle *handle_output_new(HANDLE handle, handle_outputfn_t sentdata,
bdebd7e9 492 void *privdata, int flags);
34292b1d 493int handle_write(struct handle *h, const void *data, int len);
bc06669b 494void handle_write_eof(struct handle *h);
34292b1d 495HANDLE *handle_get_events(int *nevents);
496void handle_free(struct handle *h);
497void handle_got_event(HANDLE event);
498void handle_unthrottle(struct handle *h, int backlog);
499int handle_backlog(struct handle *h);
0e03ceff 500void *handle_get_privdata(struct handle *h);
34292b1d 501
502/*
ac3337f6 503 * winpgntc.c needs to schedule callbacks for asynchronous agent
c44bf5bd 504 * requests. This has to be done differently in GUI and console, so
505 * there's an exported function used for the purpose.
506 *
507 * Also, we supply FLAG_SYNCAGENT to force agent requests to be
508 * synchronous in pscp and psftp.
509 */
510void agent_schedule_callback(void (*callback)(void *, void *, int),
511 void *callback_ctx, void *data, int len);
512#define FLAG_SYNCAGENT 0x1000
513
7374c779 514/*
ac3337f6 515 * winpgntc.c also exports these two functions which are used by the
516 * server side of Pageant as well, to get the user SID for comparing
517 * with clients'.
518 */
519int init_advapi(void); /* initialises everything needed by get_user_sid */
520PSID get_user_sid(void);
521
522/*
7374c779 523 * Exports from winser.c.
524 */
525extern Backend serial_backend;
526
073e9f42 527/*
528 * Exports from winjump.c.
529 */
530#define JUMPLIST_SUPPORTED /* suppress #defines in putty.h */
531void add_session_to_jumplist(const char * const sessionname);
532void remove_session_from_jumplist(const char * const sessionname);
21cdf8c2 533void clear_jumplist(void);
073e9f42 534
535/*
536 * Extra functions in winstore.c over and above the interface in
537 * storage.h.
538 *
539 * These functions manipulate the Registry section which mirrors the
540 * current Windows 7 jump list. (Because the real jump list storage is
541 * write-only, we need to keep another copy of whatever we put in it,
542 * so that we can put in a slightly modified version the next time.)
543 */
544
545/* Adds a saved session to the registry jump list mirror. 'item' is a
546 * string naming a saved session. */
547int add_to_jumplist_registry(const char *item);
548
549/* Removes an item from the registry jump list mirror. */
550int remove_from_jumplist_registry(const char *item);
551
552/* Returns the current jump list entries from the registry. Caller
553 * must free the returned pointer, which points to a contiguous
554 * sequence of NUL-terminated strings in memory, terminated with an
555 * empty one. */
556char *get_jumplist_registry_entries(void);
557
f7f27309 558#endif