Revision 17152,
1.7 KB
checked in by ghudson, 23 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r17151,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | #ifndef MENU_FENTRY_H |
---|
2 | #define MENU_FENTRY_H |
---|
3 | |
---|
4 | #include <sys/stat.h> |
---|
5 | #include <unistd.h> |
---|
6 | |
---|
7 | BEGIN_GNOME_DECLS |
---|
8 | |
---|
9 | typedef struct _MenuFinfo MenuFinfo; |
---|
10 | typedef struct _FileRec FileRec; |
---|
11 | typedef struct _DirRec DirRec; |
---|
12 | typedef struct _MFile MFile; |
---|
13 | |
---|
14 | struct _MenuFinfo { |
---|
15 | char *menudir; |
---|
16 | gboolean applets; |
---|
17 | gboolean launcher_add; |
---|
18 | gboolean favourites_add; |
---|
19 | char *dir_name; |
---|
20 | char *pixmap_name; |
---|
21 | gboolean fake_menu; |
---|
22 | gboolean title; |
---|
23 | FileRec *fr; |
---|
24 | }; |
---|
25 | |
---|
26 | struct _MFile { |
---|
27 | char *name; |
---|
28 | gboolean merged; |
---|
29 | gboolean verified; |
---|
30 | }; |
---|
31 | |
---|
32 | enum { |
---|
33 | FILE_REC_FILE, /*.desktop file record*/ |
---|
34 | FILE_REC_DIR, /*directory*/ |
---|
35 | FILE_REC_EXTRA, /*just check the mtime*/ |
---|
36 | FILE_REC_SEP |
---|
37 | }; |
---|
38 | |
---|
39 | struct _FileRec { |
---|
40 | int type; |
---|
41 | gboolean merged; |
---|
42 | char *name; |
---|
43 | char *comment; |
---|
44 | char *fullname; |
---|
45 | char *icon; |
---|
46 | char *goad_id; |
---|
47 | char *tryexec_path; |
---|
48 | DirRec *parent; |
---|
49 | time_t mtime; |
---|
50 | time_t last_stat; |
---|
51 | }; |
---|
52 | |
---|
53 | struct _DirRec { |
---|
54 | FileRec frec; |
---|
55 | time_t dentrymtime; |
---|
56 | time_t dentrylast_stat; |
---|
57 | time_t merge_mtime; |
---|
58 | gboolean force_reread; |
---|
59 | GSList *tryexecs; |
---|
60 | GSList *recs; /*records for directories*/ |
---|
61 | GSList *mfl; /*records of menus using this record*/ |
---|
62 | }; |
---|
63 | |
---|
64 | char * get_applet_goad_id_from_dentry(GnomeDesktopEntry *ii); |
---|
65 | |
---|
66 | GSList * get_mfiles_from_menudir(const char *menudir); |
---|
67 | |
---|
68 | FileRec * fr_read_dir(DirRec *dr, const char *mdir, struct stat *dstat, struct stat *merge_dstat, int sublevels); |
---|
69 | FileRec * fr_replace(FileRec *fr); |
---|
70 | FileRec * fr_check_and_reread(FileRec *fr); |
---|
71 | FileRec * fr_get_dir(const char *mdir); |
---|
72 | gboolean fr_is_subdir (const char *dir, const char *superdir, int superdir_len); |
---|
73 | char * fr_get_mergedir (const char *dir); |
---|
74 | void fr_force_reread(void); |
---|
75 | GSList* fr_get_all_dirs (void); |
---|
76 | |
---|
77 | void init_fr_chunks (void); |
---|
78 | |
---|
79 | void free_mfile (MFile *mfile); |
---|
80 | void free_mfile_list (GSList *list); |
---|
81 | |
---|
82 | END_GNOME_DECLS |
---|
83 | |
---|
84 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.