aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_apps_cache.h
blob: 1ae1ff307d07ea74a7552aefb66ad57f9a9a7ae0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
 */
#ifdef E_TYPEDEFS

typedef struct _E_App_Cache E_App_Cache;

#else
#ifndef E_APPS_CACHE_H
#define E_APPS_CACHE_H

struct _E_App_Cache
{
   char               *name; /* app name */
   char               *generic; /* generic app name */
   char               *comment; /* a longer description */
   char               *exe; /* command to execute, NULL if directory */
   
   char               *file; /* the .eap filename */
   unsigned long long  file_mod_time; /* the last modified time of the file */
   
   char               *win_name; /* window name */
   char               *win_class; /* window class */
   char               *win_title; /* window title */
   char               *win_role; /* window role */
   
   char               *icon_class; /* icon_class */
   
   Evas_List          *subapps; /* if this a directory, a list of more E_App's */
   
   unsigned char       startup_notify; /* disable while starting etc. */
   unsigned char       wait_exit; /* wait for app to exit before execing next */

   unsigned char       is_link; /* cached .order logic info */
   unsigned char       is_dir; /* cached stat info */
   
   /* these are generated post-load */
   Evas_Hash          *subapps_hash; /* a quick lookup hash */
};

EAPI int          e_app_cache_init(void);
EAPI int          e_app_cache_shutdown(void);

EAPI E_App_Cache *e_app_cache_load(char *path);
EAPI E_App_Cache *e_app_cache_generate(E_App *a);
EAPI void         e_app_cache_free(E_App_Cache *ac);
EAPI int          e_app_cache_save(E_App_Cache *ac, char *path);

#endif
#endif