1 /* $Id: tags.h,v 1.13 2002/09/06 19:13:08 n8gray Exp $ */
3 #ifndef NEDIT_TAGS_H_INCLUDED
4 #define NEDIT_TAGS_H_INCLUDED
8 #include <X11/Intrinsic.h>
12 typedef struct _tagFile
{
13 struct _tagFile
*next
;
20 extern tagFile
*TagsFileList
; /* list of loaded tags files */
21 extern tagFile
*TipsFileList
; /* list of loaded calltips tag files */
23 /* file_type and search_type arguments are to select between tips and tags,
24 and should be one of TAG or TIP. TIP_FROM_TAG is for ShowTipString. */
25 enum mode
{TAG
, TIP_FROM_TAG
, TIP
};
27 int AddRelTagsFile(const char *tagSpec
, const char *windowPath
,
29 /* tagSpec is a colon-delimited list of filenames */
30 int AddTagsFile(const char *tagSpec
, int file_type
);
31 int DeleteTagsFile(const char *tagSpec
, int file_type
);
32 int LookupTag(const char *name
, const char **file
, int *lang
,
33 const char **searchString
, int * pos
, const char **path
,
36 /* Routines for handling tags or tips from the current selection */
37 void FindDefinition(WindowInfo
*window
, Time time
, const char *arg
);
38 void FindDefCalltip(WindowInfo
*window
, Time time
, const char *arg
);
40 /* Display (possibly finding first) a calltip. Search type can only be
41 TIP or TIP_FROM_TAG here. */
42 int ShowTipString(WindowInfo
*window
, char *text
, Boolean anchored
,
43 int pos
, Boolean lookup
, int search_type
, int hAlign
, int vAlign
,
46 #endif /* NEDIT_TAGS_H_INCLUDED */