1 #ifndef __AUL_AMD_APPINFO_H_
2 #define __AUL_AMD_APPINFO_H_
14 AIT_ONBOOT, /* start on boot: boolean */
15 AIT_RESTART, /* auto restart: boolean */
26 #define APP_TYPE_UI "ui"
27 #define APP_TYPE_SERVICE "svc"
29 int appinfo_init(void);
30 void appinfo_fini(void);
32 int appinfo_insert(uid_t uid, const char *pkgid);
34 struct appinfo *appinfo_find(uid_t caller_uid, const char *appid);
35 const char *appinfo_get_value(const struct appinfo *c, enum appinfo_type type);
36 int appinfo_set_value(struct appinfo *c, enum appinfo_type, const char *val);
37 const char *appinfo_get_filename(const struct appinfo *c);
38 int appinfo_get_boolean(const struct appinfo *c, enum appinfo_type type);
40 typedef void (*appinfo_iter_callback)(void *user_data,
41 const char *filename, struct appinfo *c);
42 void appinfo_foreach(uid_t uid, appinfo_iter_callback cb, void *user_data);
43 void appinfo_reload(void);
45 #endif /* __AUL_AMD_APPINFO_H_ */