wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
tool
desktop-parser
desktop-parser.h
Go to the documentation of this file.
1
/* ========================================================================= */
46
#ifndef __WLMAKER_DESKTOP_PARSER_H__
47
#define __WLMAKER_DESKTOP_PARSER_H__
48
49
#include <libbase/libbase.h>
50
#include <stdbool.h>
51
#include <stdint.h>
52
53
#ifdef __cplusplus
54
extern
"C"
{
55
#endif
// __cplusplus
56
57
struct
desktop_parser
;
58
60
enum
desktop_entry_type
{
61
DESKTOP_ENTRY_TYPE_UNKNOWN = 0,
62
DESKTOP_ENTRY_TYPE_APPLICATION = 1,
63
DESKTOP_ENTRY_TYPE_LINK = 2,
64
DESKTOP_ENTRY_TYPE_DIRECTORY = 3,
65
};
66
68
struct
desktop_entry
{
70
enum
desktop_entry_type
type
;
71
73
bool
hidden
;
75
bool
no_display
;
77
bool
terminal
;
78
80
int8_t
name_priority
;
81
83
char
*
name_ptr
;
85
char
*
exec_ptr
;
87
char
*
try_exec_ptr
;
89
char
*
path_ptr
;
91
char
**
category_ptrs
;
92
};
93
102
struct
desktop_parser
*
desktop_parser_create
(
const
char
*locale_ptr);
103
109
void
desktop_parser_destroy
(
struct
desktop_parser
*parser);
110
120
int
desktop_parser_file_to_entry
(
121
const
struct
desktop_parser
*parser,
122
const
char
*fname_ptr,
123
struct
desktop_entry
*entry_ptr);
124
134
int
desktop_parser_string_to_entry
(
135
const
struct
desktop_parser
*parser,
136
const
char
*string_ptr,
137
struct
desktop_entry
*entry_ptr);
138
144
void
desktop_parser_entry_release
(
struct
desktop_entry
*entry_ptr);
145
147
extern
const
bs_test_set_t
desktop_parser_test_set
;
148
149
#ifdef __cplusplus
150
}
// extern "C"
151
#endif
// __cplusplus
152
153
#endif
// __WLMAKER_DESKTOP_PARSER_H__
154
/* == End of desktop-parser.h ============================================== */
desktop_parser_test_set
const bs_test_set_t desktop_parser_test_set
Definition
desktop-parser.c:763
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:332
desktop_entry_type
desktop_entry_type
Definition
desktop-parser.h:60
desktop_parser_entry_release
void desktop_parser_entry_release(struct desktop_entry *entry_ptr)
Definition
desktop-parser.c:344
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:320
desktop_parser_create
struct desktop_parser * desktop_parser_create(const char *locale_ptr)
Definition
desktop-parser.c:260
desktop_parser_destroy
void desktop_parser_destroy(struct desktop_parser *parser)
Definition
desktop-parser.c:305
desktop_entry
Definition
desktop-parser.h:68
desktop_entry::try_exec_ptr
char * try_exec_ptr
Definition
desktop-parser.h:87
desktop_entry::exec_ptr
char * exec_ptr
Definition
desktop-parser.h:85
desktop_entry::type
enum desktop_entry_type type
Definition
desktop-parser.h:70
desktop_entry::name_ptr
char * name_ptr
Definition
desktop-parser.h:83
desktop_entry::terminal
bool terminal
Definition
desktop-parser.h:77
desktop_entry::name_priority
int8_t name_priority
Definition
desktop-parser.h:80
desktop_entry::no_display
bool no_display
Definition
desktop-parser.h:75
desktop_entry::path_ptr
char * path_ptr
Definition
desktop-parser.h:89
desktop_entry::hidden
bool hidden
Definition
desktop-parser.h:73
desktop_entry::category_ptrs
char ** category_ptrs
Definition
desktop-parser.h:91
desktop_parser
Definition
desktop-parser.c:93
Generated by
1.17.0