wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
tool
desktop-parser
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
53
extern
"C"
{
54
#endif
// __cplusplus
55
56
struct
desktop_parser
;
57
59
enum
desktop_entry_type
{
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
67
struct
desktop_entry
{
69
enum
desktop_entry_type
type
;
70
72
bool
hidden
;
74
bool
no_display
;
76
bool
terminal
;
77
79
int8_t
name_priority
;
80
82
char
*
name_ptr
;
84
char
*
exec_ptr
;
86
char
*
try_exec_ptr
;
88
char
*
path_ptr
;
90
char
**
category_ptrs
;
91
};
92
101
struct
desktop_parser
*
desktop_parser_create
(
const
char
*locale_ptr);
102
108
void
desktop_parser_destroy
(
struct
desktop_parser
*parser);
109
119
int
desktop_parser_file_to_entry
(
120
const
struct
desktop_parser
*parser,
121
const
char
*fname_ptr,
122
struct
desktop_entry
*entry_ptr);
123
133
int
desktop_parser_string_to_entry
(
134
const
struct
desktop_parser
*parser,
135
const
char
*string_ptr,
136
struct
desktop_entry
*entry_ptr);
137
143
void
desktop_parser_entry_release
(
struct
desktop_entry
*entry_ptr);
144
146
extern
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 ============================================== */
desktop_parser_test_set
const bs_test_set_t desktop_parser_test_set
Definition
desktop-parser.c:625
desktop_parser_string_to_entry
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
desktop_entry_type
Definition
desktop-parser.h:59
desktop_parser_entry_release
void desktop_parser_entry_release(struct desktop_entry *entry_ptr)
Definition
desktop-parser.c:275
desktop_parser_file_to_entry
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
desktop_parser_create
struct desktop_parser * desktop_parser_create(const char *locale_ptr)
Definition
desktop-parser.c:191
desktop_parser_destroy
void desktop_parser_destroy(struct desktop_parser *parser)
Definition
desktop-parser.c:236
desktop_entry
Definition
desktop-parser.h:67
desktop_entry::try_exec_ptr
char * try_exec_ptr
Definition
desktop-parser.h:86
desktop_entry::exec_ptr
char * exec_ptr
Definition
desktop-parser.h:84
desktop_entry::type
enum desktop_entry_type type
Definition
desktop-parser.h:69
desktop_entry::name_ptr
char * name_ptr
Definition
desktop-parser.h:82
desktop_entry::terminal
bool terminal
Definition
desktop-parser.h:76
desktop_entry::name_priority
int8_t name_priority
Definition
desktop-parser.h:79
desktop_entry::no_display
bool no_display
Definition
desktop-parser.h:74
desktop_entry::path_ptr
char * path_ptr
Definition
desktop-parser.h:88
desktop_entry::hidden
bool hidden
Definition
desktop-parser.h:72
desktop_entry::category_ptrs
char ** category_ptrs
Definition
desktop-parser.h:90
desktop_parser
Definition
desktop-parser.c:61
Generated by
1.17.0