From 1566b6faa8534118c3566188181367cd0868468f Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 9 Nov 2023 23:19:53 +0100 Subject: Added partial matching and introduced threads --- examples/dte/tag.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/dte/tag.h (limited to 'examples/dte/tag.h') diff --git a/examples/dte/tag.h b/examples/dte/tag.h new file mode 100644 index 0000000..eddc04a --- /dev/null +++ b/examples/dte/tag.h @@ -0,0 +1,23 @@ +#ifndef TAG_H +#define TAG_H + +#include +#include "ctags.h" +#include "msg.h" +#include "util/macros.h" +#include "util/ptr-array.h" +#include "util/string-view.h" + +typedef struct { + char *filename; + char *buf; + size_t size; + time_t mtime; +} TagFile; + +void add_message_for_tag(MessageArray *messages, Tag *tag, const StringView *dir) NONNULL_ARGS; +size_t tag_lookup(TagFile *tf, const StringView *name, const char *filename, MessageArray *messages) NONNULL_ARG(1, 2, 4); +void collect_tags(TagFile *tf, PointerArray *a, const StringView *prefix) NONNULL_ARGS; +void tag_file_free(TagFile *tf) NONNULL_ARGS; + +#endif -- cgit v1.2.3