1 #ifndef __AUL_AMD_APPINFO_H_
2 #define __AUL_AMD_APPINFO_H_
12 AIT_ONBOOT, /* start on boot: boolean */
13 AIT_RESTART, /* auto restart: boolean */
21 int appinfo_init(struct appinfomgr **cf);
22 void appinfo_fini(struct appinfomgr **cf);
24 const struct appinfo *appinfo_insert(struct appinfomgr *cf, const char *filename);
25 void appinfo_delete(struct appinfomgr *cf, const char *filename);
27 const struct appinfo *appinfo_find(uid_t caller_uid, const char *appid);
28 const char *appinfo_get_value(const struct appinfo *c, enum appinfo_type type);
29 const char *appinfo_get_filename(const struct appinfo *c);
30 int appinfo_get_boolean(const struct appinfo *c, enum appinfo_type type);
32 typedef void (*appinfo_iter_callback)(void *user_data,
33 const char *filename, const struct appinfo *c);
34 void appinfo_foreach(struct appinfomgr *cf, appinfo_iter_callback cb, void *user_data);
36 #endif /* __AUL_AMD_APPINFO_H_ */