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 */
24 int appinfo_init(void);
25 void appinfo_fini(void);
27 int appinfo_insert(uid_t uid, const char *pkgid);
29 const struct appinfo *appinfo_find(uid_t caller_uid, const char *appid);
30 const char *appinfo_get_value(const struct appinfo *c, enum appinfo_type type);
31 const char *appinfo_get_filename(const struct appinfo *c);
32 int appinfo_get_boolean(const struct appinfo *c, enum appinfo_type type);
34 typedef void (*appinfo_iter_callback)(void *user_data,
35 const char *filename, struct appinfo *c);
36 void appinfo_foreach(uid_t uid, appinfo_iter_callback cb, void *user_data);
37 void appinfo_reload(void);
39 #endif /* __AUL_AMD_APPINFO_H_ */