wlmaker
Loading...
Searching...
No Matches
desktop-parser.h
Go to the documentation of this file.
1/* ========================================================================= */
45#ifndef __WLMAKER_DESKTOP_PARSER_H__
46#define __WLMAKER_DESKTOP_PARSER_H__
47
48#include <libbase/libbase.h>
49#include <stdbool.h>
50#include <stdint.h>
51
52#ifdef __cplusplus
53extern "C" {
54#endif // __cplusplus
55
56struct desktop_parser;
57
60 DESKTOP_ENTRY_TYPE_UNKNOWN = 0,
61 DESKTOP_ENTRY_TYPE_APPLICATION = 1,
62 DESKTOP_ENTRY_TYPE_LINK = 2,
63 DESKTOP_ENTRY_TYPE_DIRECTORY = 3,
64};
65
70
72 bool hidden;
77
80
82 char *name_ptr;
84 char *exec_ptr;
88 char *path_ptr;
91};
92
101struct desktop_parser *desktop_parser_create(const char *locale_ptr);
102
108void desktop_parser_destroy(struct desktop_parser *parser);
109
120 const struct desktop_parser *parser,
121 const char *fname_ptr,
122 struct desktop_entry *entry_ptr);
123
134 const struct desktop_parser *parser,
135 const char *string_ptr,
136 struct desktop_entry *entry_ptr);
137
143void desktop_parser_entry_release(struct desktop_entry *entry_ptr);
144
146extern const bs_test_set_t desktop_parser_test_set;
147
148#ifdef __cplusplus
149} // extern "C"
150#endif // __cplusplus
151
152#endif // __WLMAKER_DESKTOP_PARSER_H__
153/* == End of desktop-parser.h ============================================== */
const bs_test_set_t desktop_parser_test_set
Definition desktop-parser.c:625
int desktop_parser_string_to_entry(const struct desktop_parser *parser, const char *string_ptr, struct desktop_entry *entry_ptr)
Definition desktop-parser.c:263
desktop_entry_type
Definition desktop-parser.h:59
void desktop_parser_entry_release(struct desktop_entry *entry_ptr)
Definition desktop-parser.c:275
int desktop_parser_file_to_entry(const struct desktop_parser *parser, const char *fname_ptr, struct desktop_entry *entry_ptr)
Definition desktop-parser.c:251
struct desktop_parser * desktop_parser_create(const char *locale_ptr)
Definition desktop-parser.c:191
void desktop_parser_destroy(struct desktop_parser *parser)
Definition desktop-parser.c:236
Definition desktop-parser.h:67
char * try_exec_ptr
Definition desktop-parser.h:86
char * exec_ptr
Definition desktop-parser.h:84
enum desktop_entry_type type
Definition desktop-parser.h:69
char * name_ptr
Definition desktop-parser.h:82
bool terminal
Definition desktop-parser.h:76
int8_t name_priority
Definition desktop-parser.h:79
bool no_display
Definition desktop-parser.h:74
char * path_ptr
Definition desktop-parser.h:88
bool hidden
Definition desktop-parser.h:72
char ** category_ptrs
Definition desktop-parser.h:90
Definition desktop-parser.c:61